Skip to main content

Workflow Files

BAP workflows are YAML files that define deterministic browser test sequences:

Running Workflows

Assertions

Workflows support several assertion types:

URL Assertions

Element Assertions

CI Integration

GitHub Actions

Capturing Screenshots on Failure

Screenshots are saved to the .bap/ directory by default.

Workflow with Extraction Validation

Combine workflows with extract to validate page content:

Programmatic Testing

For integration with existing test frameworks, use the TypeScript SDK:

Tracing Failed Tests

When a test fails, use bap trace to inspect what happened:
The replay generates a self-contained HTML file with a timeline viewer showing every request, its timing, and result summary.