Logo: Relish

  1. Sign in

Project: Hotel

Admin manages images for hotel

  • @javascript
Scenarios
Scenario
Given
I am signed in as an admin
And
a recently added hotel
And
I am viewing that hotel
When
I add an image
Then
I see a thumbnail for that image
When
I add an attribution for that image
Then
I can see that attribution
When
I am viewing that hotel
Then
I see the image I just uploaded
When
I am viewing the list of hotels
Then
I see that image in the list
reordering
Given
I am signed in as an admin
And
a hotel with the following images:
frontdoor.jpg
plastic_cake.jpg
gargoyle.jpg
pillow_mint.jpg
And
I am managing the images for that hotel
When
I move "gargoyle.jpg" to the top
Then
I see the following image list:
gargoyle.jpg
frontdoor.jpg
plastic_cake.jpg
pillow_mint.jpg
When
I return to the page
Then
I still see the following image list:
gargoyle.jpg
frontdoor.jpg
plastic_cake.jpg
pillow_mint.jpg
delete
Given
I am signed in as an admin
And
a hotel with an image
And
I am managing the images for that hotel
When
I delete that image
Then
I don't see that thumbnail
When
I am viewing the list of hotels
Then
I don't see that image in the list

Last published over 5 years ago by Faraaz Khan.