Review and improve scenarios with AI
The scenario editor on the Features page and in the issue view has AI help built in. It works on the scenario you’re editing; nothing changes until you accept a suggestion and save.
Review with AI
Section titled “Review with AI”Select Review with AI in the scenario editor. The AI review combines a Gherkin check with an AI review and shows:
- Findings, sorted by severity (errors, then warnings, then tips), each with the step line it’s about. The Gherkin check finds problems such as a When after a Then, a missing When or Then, too many steps, a scenario starting with And, duplicate steps, UI details in steps, and Examples columns that don’t match the placeholders. The AI adds advice on good BDD practice: one behaviour per scenario, declarative steps that say what rather than how, a clear outcome, good naming and consistent wording.
- A refined version of the steps that fixes the findings, checked with the Gherkin parser in the project’s language.
- Reused steps: steps in the refined version that are already used elsewhere in the project, so the same behaviour keeps the same wording.
Accept the refined steps, or use the findings to edit the scenario yourself, then save.
Generate Examples tables
Section titled “Generate Examples tables”For a Scenario Outline, select Generate Examples with AI. The steps must contain <placeholders>.
The AI suggests up to 8 new rows for the Examples table, each labelled as a happy path, edge case or negative case, with the reason for it. Rows you already have are kept and not repeated, and the table uses the project’s Gherkin language. Steps with the new Examples table shows the result next to your current steps, so you can accept or discard it.
You can also turn a scenario into a Scenario Outline from its Examples table. See Create a Scenario Outline.
Without AI: step suggestions and similar scenarios
Section titled “Without AI: step suggestions and similar scenarios”Two helpers in the editor don’t use AI, so they work on every site and use no AI allowance:
- Step suggestions: as you type a step, the step autocomplete lists the closest matching steps already used in the project, most used first.
- Find similar scenarios: from a scenario’s … menu, lists scenarios in the project with similar names and steps, with a similarity score. Check it before adding a scenario, to reuse or extend one that already exists. To clean up a whole project, use Find duplicate scenarios.