BDD Exports
OpenQA provides integrations for Playwright-BDD and Cucumber.js.Playwright-BDD
Quick Import
- Registers a catch-all step that handles any Gherkin step
- Routes all steps to the AI agent
Named Exports
createAIStep()
Create a custom AI step with specific options:| Option | Type | Default | Description |
|---|---|---|---|
verbose | boolean | true | Enable logging |
agentType | string | 'claude' | Agent type |
provider | string | - | LLM provider |
model | string | - | Model name |
pattern | RegExp | /^(.*)$/ | Step pattern |
AIStep
Pre-configured step that matches any text:Cucumber.js
Quick Import
- Browser lifecycle (launch/close)
- Catch-all step definitions
- AI agent integration

