-
Notifications
You must be signed in to change notification settings - Fork 16
/
weather-app.feature
47 lines (41 loc) · 1.73 KB
/
weather-app.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
36
37
38
39
40
41
42
43
44
45
46
47
Feature: Weather App example
Background:
Given I visit path "https://e2e-test-quest.github.io/weather-app/"
Scenario: Homepage
# Verify elements on landing page
Then I should see a title named "Welcome to Weather App"
And I should see a button named "Get started"
Scenario: Weather - "Nothing to display" must be displayed
# Click on <Get started> button
When I click on button named "Get started"
# Check that there's nothing to display because there is no town selected.
Then I should see a title named "Nothing to display"
Scenario: Weather - Town List must be ok
# Click on <Get started> button
When I click on button named "Get started"
# Checks the list of available towns.
Then I should see a list named "Available Towns" and containing
| Douala |
| Tunis |
| Limoges |
Scenario: TownSelection - Douala
# Click on <Get started> button
When I click on button named "Get started"
# Select Douala town
And within a list named "Available Towns"
And I click on element with role "listitem" and name "Douala"
# Check the weather details for Douala town
Then within the element with aria-label "Weather of Douala"
And I should see a title named "Douala"
And I should see an element with content "min: 10.8 °c"
Scenario: TownResearch
# Click on <Get started> button
When I click on button named "Get started"
# Type sentence "i" on input field
And I type the sentence "i" in the text box named "Search for a town"
# Click on <Filter> button
And I click on button named "Filter"
# Checks the list of available towns.
Then I should see a list named "Available Towns" and containing
| Tunis |
| Limoges |