Developer
We use Playwright to test our components and verify workflows on the UI. To learn more, see the official website documentation.
To run the UI tests locally:
PLAYWRIGHT_TEST_BASE_URL='https://catalyst-demo.site' || 'http://localhost:3000'# Optional: Some tests will fail without these credentials.# The environment variables allow automatic creation of customer accounts. These will cleanup themselves after the tests are done.BIGCOMMERCE_ACCESS_TOKEN="<access-token>"BIGCOMMERCE_STORE_HASH="<store-hash>"
cd core/
pnpm exec playwright test tests/ui/ --project=tests-chromium
pnpm exec playwright tests/visual-regression/components/badge.spec.ts --project=tests-chromium