Skip to content

Commit c2592dc

Browse files
committed
Configure project to use tags
1 parent c9ee1a1 commit c2592dc

6 files changed

Lines changed: 15 additions & 1 deletion

File tree

cypress.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,9 @@ export default defineConfig({
1515

1616
return config
1717
},
18+
env: {
19+
omitFiltered: true,
20+
filterSpecs: true
21+
},
1822
},
1923
})

cypress/e2e/engagesphere/cookies/cookies.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
Feature: Cookies Consent Banner
22

3+
@engagesphere
34
Scenario: consents to the cookie's policies
45
Given I access the EngageSphare app without any cookies set
56
And I see the cookies consent banner
67
When I click the Accept button
78
Then the cookies banner is closed
89
And the cookieConsent cookie is set with the value accepted
910

11+
@engagesphere
1012
Scenario: declines to the cookie's policies
1113
Given I access the EngageSphare app without any cookies set
1214
And I see the cookies consent banner

cypress/e2e/engagesphere/greeting/greeting.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ Feature: Greeting
33
Background: access EngageSphere with the cookies consent banner already accepted
44
Given I access the EngageSphare app having already accepted the cookies banner
55

6+
@engagesphere
67
Scenario: shows the default greeting
78
Then I see the following greeting: Hi there!
89

10+
@engagesphere @smoke
911
Scenario: shows a customized greeting
1012
When I type "<name>" in the name input field
1113
Then I see the following greeting: Hi "<name>"!

cypress/e2e/engagesphere/itemsPerPage/itemsPerPage.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Feature: Items per page
22

3+
@engagesphere
34
Scenario: shows the correct number per page
45
Given I access the EngageSphare app having already accepted the cookies banner
56
When I filter by "<number>" items per page

cypress/e2e/hackerstories/lastSearches/lastSearches.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
Feature: Last Searches
22

3+
@hackerstories
34
Scenario: shows the last five searched terms as buttons
45
Given I access the Hacker Stories web app
56
When I search for these terms

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
"main": "cypress.config.js",
55
"scripts": {
66
"cy:open": "cypress open",
7-
"test": "cypress run"
7+
"test": "cypress run",
8+
"test:smoke": "cypress run --env tags='@smoke'",
9+
"test:not:smoke": "cypress run --env tags='not @smoke'",
10+
"test:engagesphere": "cypress run --env tags='@engagesphere'",
11+
"test:hackerstories": "cypress run --env tags='@hackerstories'"
812
},
913
"keywords": [
1014
"testing",

0 commit comments

Comments
 (0)