Testing

DevLaunchPad ships with automated tests to validate your webapp.

To execute them all, run npx playwright test.

Tests use the Playwright test framework.

Running individual tests

All tests are located in the e2e directory.

Run a single test suite with this command:

npx playwright test e2e/test-name.spec.ts

You can also run an individual test like this:

npx playwright test -g 'Buy pro from hero section'

Not only does this validate your application, but it's an easy way to simulate user behaviour while developing your webapp.

Feature testing

Some tests validate features that are enabled or disabled with feature flags (e.g. Payments, Sign in).

DevLaunchPad reads these flags and automatically skips tests for disabled features.

Extending

Tests are located in e2e. Modify exists tests suites or add new ones. They'll automatically be picked up when you run npx playwright test.