-
Notifications
You must be signed in to change notification settings - Fork 1
Home
The application contains from the 3 part
- Chert-o-polokh - Сlient's ticket store
- Turnstile - Supervisor's application for ticket verification
- Admin panel - App for tracking ticket sales statistics
Scenario 1: As a Client I want to be able to buy ticket to the show
- Navigate to https://demo.chertopolokh.ru
- Click "BUY TICKETS" for Demo artist event
- The following pop-up message should be displayed
- Click "BUY TICKETS"
- User should be redirected to the YooMoney page with the credit card and email information form
- Fill the credit card and email information and make payment 6.1. You can use the following curl request for the emulation real payment:
curl --location --request POST 'https://demo.chertopolokh.ru/store_api/api/payments'
--header 'Content-Type: application/x-www-form-urlencoded'
--data-urlencode 'email=[email protected]'
--data-urlencode 'withdraw_amount=2'
--data-urlencode 'label=Demo artist'
- You should get the email with tickets for demo artist in attachments
Scenario 2: As a Supervisor I want to be able to verify valid ticket barcode
- Navigate to https://demo.chertopolokh.ru/turnstile from the mobile device
- There are two buttons at the bottom of the page - Scan ticket and Manual mode
- Press 'Scan ticket'
- There is a button 'Start' on the display, tap it
- Allow this web application to access the camera on this device
- Scan ticket from the previous scenario
- Verify that you have sign that this ticket is valid
Scenario 3: As a Supervisor I want to be able to decline invalid ticket barcode
- Navigate to https://demo.chertopolokh.ru/turnstile from the mobile device
- Press 'Scan ticket'
- There is a button 'Start' on the display, tap it
- Allow this web application to access the camera on this device
- Generate random barcode via https://barcode.tec-it.com/
- Scan invalid barcode
- Verify that you have sign that this ticket is not valid
Scenario 4: As a Supervisor I want to be able to verify valid ticket number
- Navigate to https://demo.chertopolokh.ru/turnstile from the mobile device
- Press 'Manual mode'
- Type the ticket number from the Scenario 1
- Verify that you have sign that this ticket is valid
Scenario 5: As a Supervisor I want to be able to decline invalid ticket number
- Navigate to https://demo.chertopolokh.ru/turnstile from the mobile device
- Press 'Manual mode'
- Type the random number as a ticket number
- Verify that you have sign that this ticket is not valid
Scenario 6: As a Merchant I want to be able to see the results of the sales
- Navigate to https://demo.chertopolokh.ru/kabinet/ with [email protected] login and 12345678 password
- Navigate to Main dashboard
- Verify that user can see two widget - Total Sum of Payments and Last 10 Payments
- Total Sum of Payments - total sum of all payments from all tickets
- Last 10 Payments - last 10 payments from end users