Logo: Relish

  1. Sign in

Project: Test

Inventory basic

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

In order to manage my service
As a restaurant
I should be able to manage and view my inventory

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
Given
I select inventory plugin on tfm3
And
I select create new service on tfm3
And
I create a service "service-$randomName" with capacity "10" from "05:00" to "6:00" last reservation "05: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 next day on tfm3
And
I assert service "service-$randomName" 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 select a meal slot for "05:00" on portal booking wizard
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
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 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 "05:00" available on portal
Edit a new service
And
I select inventory plugin on tfm3
And
I select create new service on tfm3
And
I create a service "service-$randomName" with capacity "10" from "06:00" to "10:00" last reservation "09: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 inventory action "edit" for inventory name "service-$randomName" on tfm3
And
I fill service name with "servicebis-$randomName" on tfm3
And
I publish the service on tfm3
And
I wait for loading screen to finish on tfm3
And
I assert inventory exist with name "servicebis-$randomName" on tfm3
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 "servicebis-$randomName" 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

Last published over 2 years ago by rayes.