Write Good Test Instructions
Write clear Gherkin and test instructions that help TestVibe generate reliable Playwright code.
The Simple Formula
Part
Purpose
Scenario: User filters invoices by overdue status
Given the user is on the invoices page
When the user filters invoices by "Overdue"
Then only overdue invoices should be shown
And the overdue filter should remain selectedWhat To Include
Include
Example
What To Avoid
Weak
Better
Keep Scenarios Focused
Focused
Too broad
Write For Repeatability
Good Before And After
Next
Last updated
Was this helpful?
