-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvalidation_of_pages.feature
35 lines (30 loc) · 1.11 KB
/
validation_of_pages.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
Feature: Validation of pages
Scenario Outline: Search validation on few pages
Given Main page is open
When I enter '<product>' into the search field
And I click the search button
Then I see '<product>' on first '<num>' pages
Examples:
| product | num |
| Shoes | 3 |
Scenario Outline: Search validation on some pages
Given Main page is open
When I enter 'Shoes' into the search field
And I click the search button
And I go to results page '<page>'
Then I see the word 'Shoes' in each result heading
Examples:
| page |
| 3 |
| 4 |
| 5 |
Scenario Outline: Search validation from X page to Y page
Given Main page is open
When I enter 'Shoes' into the search field
And I click the search button
Then I see the words '<words>' in each result heading from '<from>' to '<to>'
Examples:
| words | from | to |
| Shoe,Shoes,Sneakers,Trail,Asics | 1 | 3 |
| Shoe,Shoes,Sneakers,Trail,Asics | 3 | 5 |
| Shoe,Shoes,Sneakers,Trail,Asics | 5 | 3 |