Skip to content

Commit

Permalink
chore: temporary remove form completion tests
Browse files Browse the repository at this point in the history
  • Loading branch information
luifr10 committed Aug 4, 2024
1 parent 30952e5 commit bc5225c
Showing 1 changed file with 0 additions and 47 deletions.
47 changes: 0 additions & 47 deletions uuv/e2e/keyboard.feature
Original file line number Diff line number Diff line change
Expand Up @@ -25,50 +25,3 @@ Feature: Keyboard Navigation
Then the next keyboard element focused should be a link named "Weather App's Logo"
And the next keyboard element focused should be a link named "Home"
And the next keyboard element focused should be a button named "Get started"

Scenario: Verify new town form keyboard navigation - short mode
Given I visit path "http://localhost:4200/?isStarted=true"
When I click on button named "Add new town"
And I start a keyboard navigation from the top of the page
Then the next keyboard element focused should be a link named "Weather App's Logo"
And the next keyboard element focused should be a link named "Home"
And the next keyboard element focused should be a text box named "Town name"
And the next keyboard element focused should be a spin button named "Latitude"
And the next keyboard element focused should be a spin button named "Longitude"
And the next keyboard element focused should be a text box named "Description"
And the next keyboard element focused should be a button named "Back to town list"
And the next keyboard element focused should be a button named "Submit new town form"

Scenario: Fill new town form with keyboard - short mode
Given I visit path "http://localhost:4200/?isStarted=true"
And I mock a request GET on url "http://localhost:4200/assets/data/mock.json" named "mock-new-town" with fixture mock-new-town.json
And I mock a request POST on url "http://localhost:4200/api" named "mock-post-new-town" with content "Success"

When I click on button named "Add new town"
And I start a keyboard navigation from the top of the page
And the next keyboard element focused should be a link named "Weather App's Logo"
And the next keyboard element focused should be a link named "Home"

And the next keyboard element focused should be a text box named "Town name"
And I type the sentence "Paris"

And the next keyboard element focused should be a spin button named "Latitude"
And I type the sentence "10"

And the next keyboard element focused should be a spin button named "Longitude"
And I type the sentence "123"

And the next keyboard element focused should be a text box named "Description"
And I type the sentence "Simple Description"

And the next keyboard element focused should be a button named "Back to town list"

And the next keyboard element focused should be a button named "Submit new town form"

And I click

Then I should see a list named "Available Towns" and containing
| Douala |
| Tunis |
| Limoges |
| Paris |

0 comments on commit bc5225c

Please sign in to comment.