Write and maintain Behavior-Driven Development tests with Gherkin and Cucumber. Use when defining acceptance scenarios, writing feature files, implementing step definitions, running Three Amigos sessions, or diagnosing BDD test quality issues. Keywords: bdd, gherkin, cucumber, given when then, feature files, step definitions, acceptance criteria, three amigos, example mapping.
Does it follow best practices?
Evaluation — 96%
↑ 1.04xAgent success when using this tile
Validation for skill structure
A mature SaaS application has accumulated a large BDD test suite over 2 years of development. The test suite now has 150+ scenarios and is becoming difficult to maintain. The team has noticed significant duplication in steps, scenarios that are very similar but slightly different, and some feature files that are getting unwieldy.
The QA lead wants to refactor the test suite to reduce maintenance overhead while preserving test coverage. They need to identify duplication patterns, consolidate similar scenarios, and reorganize the suite for better maintainability without losing test value.
Create the following deliverables:
Your solution should demonstrate systematic approaches to BDD test suite maintenance and duplication removal.
The following files are provided as inputs. Extract them before beginning.
=============== FILE: inputs/current-suite-problems.md ===============
=============== FILE: inputs/sample-duplicated-scenarios.feature =============== Feature: User Registration
Scenario: Register with valid email
Given I am on the registration page
When I enter email "user@example.com"
And I enter password "validpassword123"
And I click the register button
Then I should see "Registration successful"
And I should be logged in
And I should see my profile page
Scenario: Register with valid email and strong password
Given I am on the registration page
When I enter email "newuser@example.com"
And I enter password "StrongPassword456!"
And I click the register button
Then I should see "Registration successful"
And I should be logged in
And I should see my profile page
Scenario: Register with corporate email Given I am on the registration page When I enter email "employee@company.com" And I enter password "CorporatePass789" And I click the register button Then I should see "Registration successful" And I should be logged in And I should see my profile page