End-to-End Testing
LaunchFast uses Playwright for end-to-end tests. Tests live in the tests/ directory. As you add features, add or extend tests in this directory.
Running tests
Run E2E tests in development mode, which starts the dev server and runs Playwright against it:
npm run test:e2e:devAuthentication fixture
LaunchFast provides a login fixture for testing authenticated features without going through the login flow:
test('my test', async ({ page, login }) => {
const user = await login()
// you are now logged in
})Auto-cleanup
Test users are automatically deleted at the end of each test. This keeps the local database clean and ensures tests are isolated from one another.
Installing Playwright
If Playwright browsers are not installed, run:
npx playwright install