Install
Chaos Maker has one shared core package and one adapter package per test framework. Install core plus the adapter used by your test suite.
Package installs
Section titled “Package installs”# Playwrightnpm install @chaos-maker/core @chaos-maker/playwright
# Cypressnpm install @chaos-maker/core @chaos-maker/cypress
# WebdriverIOnpm install @chaos-maker/core @chaos-maker/webdriverio
# Puppeteernpm install @chaos-maker/core @chaos-maker/puppeteerFramework entry points
Section titled “Framework entry points”| Framework | Package | Injection timing |
|---|---|---|
| Playwright | @chaos-maker/playwright | Before page.goto() |
| Cypress | @chaos-maker/cypress | Before cy.visit() |
| WebdriverIO | @chaos-maker/webdriverio | After browser.url() |
| Puppeteer | @chaos-maker/puppeteer | Before page.goto() for network and WebSocket chaos |
Verify install
Section titled “Verify install”Build the package that owns your tests, then run one smoke test with a fixed seed and a getChaosLog() assertion. If a failure occurs, copy the seed into the test to replay the same probability decisions.