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 collaboratorAdmin adds hotel
- Background
-
- Given
- an admin
- And
-
the following countries:
name iso code Lithuania 3166-2:LT United States 3166-2:US - And
- I am on the sign in page
- And
- I provide appropriate credentials
- And
- I click "sign in"
- When
- I follow "add a hotel"
- And
-
I fill in the following:
Name The Standard Description 18 Story tower arching over the highline downtown Headline This is the Standard Introduction Welcome to the standard hotel[physical_address_attributes][line_1] 848 Washington at 13th Street hotel[physical_address_attributes][line_2] More address info hotel[physical_address_attributes][line_3] Even more address info hotel[physical_address_attributes][city] New York hotel[physical_address_attributes][state_or_province] NY hotel[physical_address_attributes][postal_code] 10014 Primary Email [email protected] Primary Phone (212) 645-4646 Primary Fax (212) 645-5656 - And
- I select "United States" from "Country" within the "#public_info" id
- And
-
I fill in the following:
hotel[billing_address_attributes][line_1] 848 Washington at 13th Street hotel[billing_address_attributes][line_2] More address info hotel[billing_address_attributes][line_3] Even more address info hotel[billing_address_attributes][city] New York hotel[billing_address_attributes][state_or_province] New York hotel[billing_address_attributes][postal_code] 10014 - And
- I select "United States" from "Country" within the "#billing_info" id
- And
- I select "Net 60" from "Billing Terms"
- And
-
I fill in the following:
Total rooms available 4 Minimum stay (nights) 3
- Scenarios
-
- creating with a contact
-
- When
- I follow "add another contact"
- And
-
I fill in the following within the "#contact_info" id:
Name Bob Dobbs Email [email protected] Phone 555-555-555 - And
- I fill in "Role" with "concierge"
- And
- I click "create hotel"
- Then
- that hotel's currency type is "USD"
- Then
- I should be on that hotel's page
- And
- I should see "Hotel successfully created."
- And
- that hotel has the appropriate fields populated
- creating without a contact
-
- When
- I click "create hotel"
- Then
- I should see "must have at least one contact"
Last published over 7 years ago by Faraaz Khan.