Logo: Relish

  1. Sign in

Project: My-project2

Flights to London

In order to test the Flights to London page
As a user
I need to enter search parameters into the form

Scenarios
Given
I am on "/flights/to-london"
And
I fill in "edit-startcitystr" with "Sydney"
And
I select "SYD" from autocomplete box
Then
I fill in "edit-endcitystr" with "London"
And
I select "LON" from autocomplete box
And
I fill in "edit-startcitystr" with "Sydney"
And
I select "SYD" from autocomplete box
Then
I fill in "edit-endcitystr" with "London"
And
I select "LON" from autocomplete box
Then
I click element with css ".ui-datepicker-today"
Then
I click element with css ".ui-datepicker-today"
Then
I click element with css "#edit-passengers > legend"
And
I click element with css ".form-item-numAdults > div > input.button.plus"
And
I click element with css ".form-item-numChildren > div > input.button.plus"
And
I click element with css ".form-item-numInfants > div > input.button.plus"
Then
I click element with css ".fc-soar .form-submit"
Then
I wait for the page to load
  • @flights
  • @validation
Check that if there is only one result in start city it is automatically selected after a given time
Given
I am on "/flights/to-london"
And
I fill in "edit-startcitystr" with "Sydney, New"
And
I wait for a period of time

Last published about 5 years ago by BradForrest.