CICD-083 · Run browser tests in CI
Encyclopedia · Tests and quality checks · All snippets
Previous · CICD-082 · Next · CICD-084
1. Where it fits
- Placement Bash run step following checkout, or equivalent lab terminal.
- Prerequisites repository with test fixtures and task-specific quality dependencies.
- Platforms local-linux, github-actions, gitea-actions.
2. Copy the snippet
bash
npx --no-install playwright install --with-deps chromium
npx --no-install playwright test --project=chromium3. How it works
The shell predicate makes the expected state explicit and returns a nonzero status when it is not satisfied.
4. Verify the result
Install locked dependencies and provide a Playwright configuration with a Chromium project.
Validation syntax-validated (Bash parse). Status definitions.