Logo: Relish

  1. Sign in

Project: Hotel

Destinations

Scenarios
Scenario
Given
the following destination with hotels:
name region_name hotel_count published
Kingsbridge Heights North America 1 false
Scandinavian Lows North America 2 true
And
an admin
And
I am signed in
When
I follow "Destinations"
Then
I should see the expected table:
Region Name Associated Hotels Published
North America Kingsbridge Heights 1
North America Scandinavian Lows 2 Yes
Admin views destination
Given
the following destination with hotels:
name hotel_count published
Kingsbridge Heights 1 false
Given
an admin
And
I am signed in
And
I am on the destinations page
When
I follow "Kingsbridge Heights"
Then
I should see that destination's information
  • @javascript
Admin adds destination
Given
I am signed in as an admin
And
some recently added hotels
And
I am on the destinations page
When
I create a destination
Then
I see the information for that destination
And
I see the associated hotels for that destination
  • @javascript
Admin adds destination with content blocks
Given
I am signed in as an admin
And
some recently added hotels
And
I am on the destinations page
When
I create a destination with content blocks
Then
I see the content blocks for that destination
Admin remove a destination
Given
I am signed in as an admin
And
a destination
And
I am on the destinations page
When
I remove that destination
Then
I no longer see that destination in the list

Last published over 5 years ago by Faraaz Khan.