- Run
yarn dev - Open http://localhost:8080 in your browser. The sandbox folder is served, with a minimal browser SDK setup.
- You can use global API via the devtools (see below) or locally modify index.html to experiment things.
We have a /manual-testing skill (source) to help you test your changes using the dev-server sandbox and agent-browser. This skill should be able to generate the test instructions for your PR.
Use this strategy to test the integration on Real applications.
- Install the developer extension
- Run
yarn dev - Open the Chrome DevTools browser SDK panel and check "Use dev bundles".
- Write a unit test.
- Run the spec directly with
yarn test:unit --spec packages/path/to/feature.spec.ts. - Use
it.only(...)ordescribe.only(...)temporarily when you need to focus further. ESLint prevents focused tests from being checked in. - Run
yarn testfor Vitest watch mode, oryarn test:unitfor a single full run. - Look at the terminal output; failure screenshots are written next to the failing spec under
__screenshots__.
Top-level describe blocks are run in a random order. Sometimes, an issue can only be reproduced with a given order. To reproduce a test run order:
- Check the
Running tests with seed "XXXX"message from the test output. - Run
yarn test:unit --seed XXXX.
See test/e2e/AGENTS.md for the full E2E testing guide (setup, writing tests, createTest builder, IntakeRegistry, best practices).
Quick commands:
yarn test:e2e:setup— first-time setup (builds packages and apps, then installs browsers for the workspace Playwright version)yarn test:e2e:setup:pinned— optional; installs Chromium, Firefox, and WebKit for Playwright 1.40.1 (required to run thefirefox-pinnedandwebkit-pinnedprojects; run after the usual setup when you need those projects locally)yarn test:e2e— run all E2E testsyarn test:e2e -g "pattern"— filter by nameyarn test:e2e --ui— Playwright UI mode
The firefox-pinned (FF 119) and webkit-pinned (WK 17.4) Playwright projects replicate
the old BrowserStack matrix locally via a pinned Playwright 1.40.1 run-server and a
translation proxy. Run them with:
yarn test:e2e --project=firefox-pinnedyarn test:e2e --project=webkit-pinned
If those projects fail because browsers are missing, run yarn test:e2e:setup:pinned once so the Playwright 1.40.1 browser binaries are installed alongside the default setup.
BS_USERNAME=<username> BS_ACCESS_KEY=<access_key> yarn test:unit:bs