Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @NS-3754 @ManagerAuthorizer @IgnoreNO
- Feature: Create Alternative Id
- As a cashier
- I want to be able to create an alternative club id
- So that the customer can identify herself with that id and get bonus
- Background:
- Given LOS Service is available for any loyalty card
- Scenario: Create Alternative Club Id outside order
- Given POS client is in signed-on idle state
- And POS client is online towards alternative id webservice
- When user press button create alternative club id
- And customer card number dialog is presented
- And user enter valid bonus card information and press Enter
- And enter alternative club id dialog is presented
- And user enter reference number '1234567890' and press Enter
- Then alternative club id successfully created prompt is presented
- And user confirms info dialog by pressing OK
- And POS client should be in signed-on idle state
- Scenario: Create Alternative Club Id outside order and back out before entering customer card number
- Given POS client is in signed-on idle state
- When user press button create alternative club id
- And customer card number dialog is presented
- And user selects Cancel in alphanumeric prompt
- Then POS client should be in signed-on idle state
- Scenario: Create Alternative Club Id outside order and back out after entering customer card number
- Given POS client is in signed-on idle state
- When user press button create alternative club id
- And customer card number dialog is presented
- And user enter valid bonus card information and press Enter
- And enter alternative club id dialog is presented
- And user selects Cancel in alphanumeric prompt
- Then POS client should be in signed-on idle state
- And no interaction with alternative club id webservice has occured
- Scenario: Create Alternative Club Id during ongoing transaction with club card
- Given POS client is in mid-order state
- And POS client is online towards alternative id webservice
- When a loyalty card is scanned
- And user press button create alternative club id
- And enter alternative club id dialog is presented
- And user enter reference number '1234567890' and press OK
- Then alternative club id successfully created prompt is presented
- And user confirms info dialog by pressing Enter
- And POS client is in mid-order idle state
- Scenario: Create Alternative Club Id during ongoing transaction without club card
- Given POS client is in mid-order state
- And POS client is online towards alternative id webservice
- When user press button create alternative club id
- And customer card number dialog is presented
- And user enter valid bonus card information and press Enter
- And enter alternative club id dialog is presented
- And user enter reference number '1234567890' and press Enter
- Then alternative club id successfully created prompt is presented
- And user confirms info dialog by pressing Enter
- And POS client is in mid-order idle state
- Scenario: Create Alternative Club Id during ongoing transaction with invalid club card
- Given POS client is in mid-order state
- And POS client is online towards alternative id webservice
- When user press button create alternative club id
- And customer card number dialog is presented
- And user enter reference number '1234' and press Enter
- Then alternative club id invalid club card prompt is presented
- And user selects Cancel in alphanumeric prompt
- And POS client is in mid-order idle state
- Scenario: Create Alternative Club Id during ongoing transaction, back out after entering customer card number
- and check no interaction with alternative club id webservice has occurred
- Given POS client is in mid-order state
- And POS client is online towards alternative id webservice
- When user press button create alternative club id
- And customer card number dialog is presented
- And user enter valid bonus card information and press Enter
- And enter alternative club id dialog is presented
- And user selects Cancel in alphanumeric prompt
- Then POS client is in mid-order idle state
- And no interaction with alternative club id webservice has occured
- Scenario: Create Alternative Club Id during ongoing transaction with club card and partial payment
- Given POS client is in mid-order state
- And POS client is online towards alternative id webservice
- When a loyalty card is scanned
- And user press button create alternative club id
- And enter alternative club id dialog is presented
- And user enter reference number '1234567890' and press Enter
- And alternative club id successfully created prompt is presented
- And user confirms info dialog by pressing Enter
- And POS client is in mid-order idle state
- And user select Cash feature
- And dialog Cash payment is presented
- And user enter partial amount and press Enter
- Then POS client is in mid-order idle state
- Scenario: Create Alternative Club Id during ongoing transaction without club card and partial payment
- Given POS client is in mid-order state
- And POS client is online towards alternative id webservice
- And user press button create alternative club id
- And alternative club id enter club card prompt is presented
- And user enter valid bonus card information and press Enter
- And enter alternative club id dialog is presented
- And user enter reference number '1234567890' and press Enter
- And alternative club id successfully created prompt is presented
- And user confirms info dialog by pressing Enter
- And POS client is in mid-order idle state
- And user select Cash feature
- And dialog Cash payment is presented
- And user enter partial amount and press Enter
- Then POS client is in mid-order idle state
- Scenario: Create Alternative Club Id during ongoing transaction and enter id that exceeds max character limit
- Given POS client is in mid-order state
- And POS client is online towards alternative id webservice
- When user press button create alternative club id
- And alternative club id enter club card prompt is presented
- And user enter valid bonus card information and press Enter
- And enter alternative club id dialog is presented
- And user enter reference number 'a3sv2a1sv54as6v5a46svas1v3a2s1v32a1v65as4v6a4' and press Enter
- Then alternative club id max length input prompt is presented
- And user selects Cancel in alphanumeric prompt
- And POS client is in mid-order idle state
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement