Logo: Relish

  1. Sign in

Project: My-project2

Specialist Enquiry Routing

In order to test special enquiry conditions
As a user
I need to submit enquiry forms with special conditions

Scenarios
  • @enquirydate
Submitting an enquiry form with less than 5 days from current date causes a popup message to appear
Given
I am on "/flights/london/sydney"
When
I fill in "edit-submitted-names-first-name" with "test.mavericks"
And
I fill in "edit-submitted-names-last-name" with "test.mavericks"
And
I fill in "edit-submitted-phone-and-postcode-telephone" with "0400000000"
And
I fill in "edit-submitted-phone-and-postcode-postcode" with "1000"
Then
I fill in "flights-dest-str-string-destination" with "London"
And
I select "LCY" from autocomplete box
Then
I fill in "flights-dest-str-string-destination" with "London"
And
I select "LCY" from autocomplete box
And
I fill in "edit-submitted-any-questions-or-comments" with "test.mavericks"
And
I click element with css "#depart-date-webform-client-form-178516178516-21"
And
I click element with css ".ui-state-highlight"
And
I click element with css "#return-date-webform-client-form-178516178516-21"
And
I click element with css ".ui-state-highlight"
Then
I wait for a period of time
Then
I should see text matching "Important Notice"
  • @active-travel
Testing that Active travel has the correct enquiry routing via a hidden field value
Given
I am on "/experts/active-travel"
Then
I wait for a period of time
Then
the "submitted[keyword]" hidden field should contain "fcat.fcau"
Given
I am on "location"
Then
I wait for a period of time
Then
the "submitted[keyword]" hidden field should contain "businessfirstclass"
Then
the ".header-fc-phone-number" element should contain "1300038785"
Then
I should see an ".number-1300038785" element
Then
the "plid" hidden field should contain "5HJjkZv"
Examples:
location
/flights/class-of-travel/business-class
/flights/london/business
/flights/london/sydney/business
/flights/sydney/brisbane/business
/flights/sydney/business
/flights/class-of-travel/first-class
/experts/first-business-flights
/experts/first-and-business/news/top-10-luxury-hotels-in-europe
  • @mixed-class
Testing that mixed class flights have the correct enquiry routing via a hidden field value
Given
I am on "location"
Then
the "submitted[keyword]" hidden field should contain "businessfirstclass"
Then
the ".header-fc-phone-number" element should contain "1300038785"
Then
I should see an ".number-1300038785" element
Then
the "plid" hidden field should contain "FeZd4z1"
Examples:
location
/promotions/mixed-class-flights
Given
I am on "location"
Then
the "submitted[keyword]" hidden field should contain "fcl.rtw"
Then
the ".header-fc-phone-number" element should contain "1300550416"
Then
I should see an ".number-1300550416" element
Then
the "plid" hidden field should contain "msvUeZ"
Examples:
location
/promotions/double-dip-flights
/promotions/triple-dip-flights
/experts/round-the-world
Given
I am on "location"
Then
the "submitted[keyword]" hidden field should contain "group"
Then
the ".header-fc-phone-number" element should contain "1300927587"
Then
I should see an ".number-1300927587" element
Examples:
location
/experts/group-travel
/holidays/groups
Given
I am on "location"
Then
the "submitted[keyword]" hidden field should contain "honeymoon"
Then
the ".header-fc-phone-number" element should contain "1300405158"
Then
I should see an ".number-1300405158" element
Examples:
location
/holidays/wedding-honeymoon
/experts/honeymoon
Given
I am on "location"
Then
the "submitted[keyword]" hidden field should contain "fc.cruiseexperts"
Then
the ".header-fc-phone-number" element should contain "1300726597"
Then
I should see an ".number-1300726597" element
Then
the "plid" hidden field should contain "mhvNAgP"
Examples:
location
/experts/cruise
/cruises/types-of-cruises
/cruises/be-inspired
/cruises/world-cruises
/cruises/ocean
/cruises/corporate-cruises
/cruises/tours
/cruises/wedding-honeymoon
/cruises/singles
/cruises/gay-lesbian
/cruises/seniors
/cruises/be-inspired/christmas-markets

Last published over 4 years ago by BradForrest.