To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorEnquiry form submission
In order to submit an enquiry form
As a user
I need to enter my details into the form's fields
- Scenarios
-
- Submit an Enquiry form for flights to London
- Submit an Enquiry form for flights from Sydney to London, using autocomplete for departure and destination
- Submit an Enquiry form for a holiday package in Melbourne
- Check that changing contact type to email changes the required field on an Enquiry form
- Check that selecting I do know my dates shows the departing and return date fields
- Check that inputting incorrect data, prompts validation
- Check that the terms of use link leads to the correct page
- Check that the privacy policy link leads to the correct page
- 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 - 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"
- 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 - 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
- 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"
- 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"
- Check that the terms of use link leads to the correct page
-
- 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"
- Check that the privacy policy link leads to the correct page
-
- 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 7 years ago by BradForrest.