Logo: Relish

  1. Sign in

Project: My-project2

Enquiry form submission

In order to submit an enquiry form
As a user
I need to enter my details into the form's fields

Scenarios
  • @searchdate
Submit an Enquiry form for flights to London
Given
I am on the "location" page
When
I fill out the enquiry form
And
I click the submit button
Then
I should be on the "confirmation" page
And
I should see "Confirmation" in the "title"
Examples:
location
flights to auckland
tours in bali
accommodation in adelaide
mercure hotel in perth
holidays in adelaide
  • @autocomplete
  • @test
Submit an Enquiry form for flights from Sydney to London, using autocomplete for departure and destination
Given
I am on the "flights to auckland" page
Then
I fill out the enquiry form
Then
I fill in "flights-dest-str-string-departing" field with "Sydney" then select "YQY" from autocomplete box
Then
I fill in "flights-dest-str-string-destination" field with "London" then select "LCY" from autocomplete box
And
I click the submit button
Then
I wait for the page to load
Then
I should be on the "confirmation" page
And
I should see "Confirmation" in the "title"
  • @product
Submit an Enquiry form for a holiday package in Melbourne
Given
I am on the "location" page
Then
I fill out the enquiry form on a product page
And
I click the submit button
Then
I should be on the "confirmation" page
And
I should see "Confirmation" in the "title"
Examples:
location
holiday package in melbourne
tour package in los angeles
cruise package in the americas
general enquiry
  • @validation
Check that changing contact type to email changes the required field on an Enquiry form
Given
I am on the "flights to auckland" page
Then
I should see the "Phone" field is a required field
When
I select the "Email" radio
Then
I should see the "Email" field is a required field
When
I select the "Phone" radio
Then
I should see the "Phone" field is a required field
  • @validation
Check that selecting I do know my dates shows the departing and return date fields
Given
I am on the "flights to auckland" page
When
I am asked for my travel dates, I select "Yes" I know my travel dates
Then
I should see text matching "DEPARTING DATE"
Then
I should see text matching "RETURN DATE"
When
I am asked for my travel dates, I select "No" I don't know my travel dates
Then
I wait for a period of time
Then
I should not see text matching "DEPARTING DATE"
Then
I should not see text matching "RETURN DATE"
  • @validation
Check that inputting incorrect data, prompts validation
Given
I am on the "flights to auckland" page
When
I click the submit button
Then
I should see text matching "Please Enter Your First Name"
Then
I should see text matching "Please Enter Your Last Name"
Then
I should see text matching "Please Provide A Postcode"
Then
I should see text matching "Please Enter A Valid Telephone Number Including Area Code"
Given
I am on the "flights to auckland" page
And
I follow "terms of use"
Then
I should be on the "terms of use" page
Then
I should see "Terms of Use" in the "title"
Given
I am on the "flights to auckland" page
And
I follow "Privacy Policy"
Then
I should be on the "privacy" page
Then
I should see "Privacy Policy" in the "title"

Last published over 4 years ago by BradForrest.