Logo: Relish

  1. Sign in

Project: Test

Inventory online/offline reservation

  • @inventory
  • @pom
  • @p1
  • @tfm3

In order to use my service
As a restaurant
I should be able to take on offline/online reservation on new service
and manage reservation conflict

Background Log in tfm
Given
I am on page "loginPage" in domain "tfmfront" on tfm3
And
I maximize windows size
And
I login on TFM3 with "you_know_nothing" credential on tfm3
Scenarios
Create a new service with offline/online reservation
Given
I select inventory plugin on tfm3
And
I select create new service on tfm3
And
I create a service "service-$randomName" with capacity "100" from "02:00" to "03:00" last reservation "02:30" for everyday with validity starting from "tomorrow" on tfm3
And
I wait for loading screen to finish on tfm3
And
I assert inventory exist with name "service-$randomName" on tfm3
And
I select reservation list plugin on tfm3
And
I select new reservation on tfm3
And
I take a reservation for "tomorrow" for "2" customer during "service-$randomName" for time "02:00" on tfm3
And
I fill reservation customer information with civility "mr" firstname "Milan" lastname "KUNDERA-$randomUpperName" phone "757904035" on tfm3
And
I create the reservation on tfm3
Given
there is a reservation fixture which was taken on "You know nothing tfm3" in domain "fr_FR portal" by "Guillaume_credential" for date "tomorrow" customer "2" for time "02h00"
And
an email with subject "Confirmation de votre réservation au restaurant You know nothing !" should have been sent to "[email protected]"
Given
I am on page "homePage" in domain "tfmfront" on tfm3
And
I select inventory plugin on tfm3
And
I select inventory action "delete" for inventory name "service-$randomName" on tfm3
Then
Text "Reservations in conflict" should be visible
And
I cancel all reservation conflict for this service on tfm3
And
I wait for loading screen to finish on tfm3
And
I assert there is no inventory with name "service-$randomName" on tfm3
And
I select reservation list plugin on tfm3
And
I close pop up on tfm3
And
I select next day on tfm3
And
I assert service "service-$randomName" does not exist on tfm3
When
I am on page "restaurantPage" in domain "fr_FR portal" with path "you-know-nothing" on Portal
And
I select the day tomorrow on portal booking wizard
And
I assert there is no time slot "02:00" available on portal

Last published over 2 years ago by rayes.