Files
vitest/test/browser
..

Browser Tests

# run full test with all providers and all browsers
pnpm run test

# run only playwright provider + all browsers
pnpm run test:playwright

# run only playwright provider + chromium
TEST_BROWSER=chromium pnpm run test:playwright

# run specific fixture (default is playwright provider + all browsers)
pnpm run test-fixtures --root ./fixtures/locators

# run specific fixture with selected provider and browser
PROVIDER=playwright TEST_BROWSER=firefox pnpm run test-fixtures --root ./fixtures/locators

Using docker playwright

Some test suites don't support running it remotely (fixtures/inspect and fixtures/insecure-context).

# Start playwright browser server
pnpm docker up -d

# Run tests with BROWSER_WS_ENDPOINT
BROWSER_WS_ENDPOINT=true pnpm run test:playwright