Generate a New Feature
Describe a shopper journey in one plain-English sentence, review the Gherkin TestVibe drafts from it, save the feature, generate the Playwright test, and watch it verified green against the live app — closing on the generated code itself.
Generate a new feature when you know what behavior you want to cover but do not want to write the first Gherkin draft from scratch.
TestVibe can help turn a user goal into a feature file with scenarios and steps that you can review, edit, and generate into Playwright code.
Before You Start
Prepare:
| Item | Why it matters |
|---|---|
| Target group | The feature needs a place in the Test Suite. |
| Feature goal | The agent needs a clear behavior to draft. |
| Target site URL | Generation may inspect or reason about the application. |
| Test data | The scenario should use repeatable data or explain how to reach it. |
Steps
- Open the Test Suite.
- Select the group where the new feature belongs.
- Choose the action to create or generate a feature.
- Describe the behavior you want to cover.
- Confirm the target site URL.
- Start generation.
- Watch the generation progress view.
- Review the generated feature before relying on it.
If TestVibe opens an editable draft first, improve the draft before starting generation.
Write A Good Feature Request
Good requests are specific:
| Good | Too vague |
|---|---|
Create a feature for an admin inviting a new team member and seeing a success message. | Test admin stuff. |
Cover filtering invoices by overdue status and verifying only overdue invoices are shown. | Check invoices. |
Generate a password reset scenario for a valid email address. | Password reset works. |
Include the visible outcome that proves success.
Review The Draft
After generation, check:
| Review | Question |
|---|---|
| Feature name | Does it describe the product behavior clearly? |
| Scenarios | Is each scenario focused on one outcome? |
| Steps | Are the steps visible and repeatable? |
| Assertions | Does every scenario prove something with a Then? |
| Test data | Can the data exist every time the test runs? |
Edit the feature before generating Playwright code if the intent is not right yet.
Next
When the feature reads well, continue to Generate Playwright code.