Workflow Files
BAP workflows are YAML files that define deterministic browser test sequences:Running Workflows
Assertions
Workflows support several assertion types:| Assertion | Description | Example |
|---|---|---|
url | Check current URL | url: contains:/dashboard |
element | Verify element exists | element: text:Welcome |
title | Check page title | title: contains:Dashboard |
screenshot | Take screenshot for visual review | screenshot: login-result.png |
URL Assertions
Element Assertions
CI Integration
GitHub Actions
Capturing Screenshots on Failure
.bap/ directory by default.
Workflow with Extraction Validation
Combine workflows withextract to validate page content:
Programmatic Testing
For integration with existing test frameworks, use the TypeScript SDK:Tracing Failed Tests
When a test fails, usebap trace to inspect what happened: