Skip to content

Commit a780bd4

Browse files
committed
Remove step duplication from feature
By using the `Background` Gherkin keyword
1 parent 2790124 commit a780bd4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

cypress/e2e/engagesphere/greeting/greeting.feature

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
Feature: Greeting
22

3-
Scenario: shows the default greeting
3+
Background: access EngageSphere with the cookies consent banner already accepted
44
Given I access the EngageSphare app having already accepted the cookies banner
5+
6+
Scenario: shows the default greeting
57
Then I see the following greeting: Hi there!
68

79
Scenario: shows a customized greeting
8-
Given I access the EngageSphare app having already accepted the cookies banner
910
When I type "<name>" in the name input field
1011
Then I see the following greeting: Hi "<name>"!
1112
And I see the following icon: "<icon>"

0 commit comments

Comments
 (0)