Skip to content
Dmitry Romashov edited this page May 17, 2023 · 10 revisions

Welcome to the ticket_store wiki!

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

Chert-o-polokh - Сlient's ticket store

Scenario 1: As a Client I want to be able to buy ticket to the show

  1. Navigate to https://demo.chertopolokh.ru
  2. Click "BUY TICKETS" for Demo artist event
  3. The following pop-up message should be displayed

Screenshot from 2023-05-16 20-51-49

  1. Click "BUY TICKETS"
  2. User should be redirected to the YooMoney page with the credit card and email information form
  3. 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'

  1. You should get the email with tickets for demo artist in attachments

Turnstile - Supervisor's application for ticket verification

Scenario 2: As a Supervisor I want to be able to verify valid ticket barcode

  1. Navigate to https://demo.chertopolokh.ru/turnstile from the mobile device
  2. There are two buttons at the bottom of the page - Scan ticket and Manual mode
  3. Press 'Scan ticket'
  4. There is a button 'Start' on the display, tap it
  5. Allow this web application to access the camera on this device
  6. Scan ticket from the previous scenario
  7. 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

  1. Navigate to https://demo.chertopolokh.ru/turnstile from the mobile device
  2. Press 'Scan ticket'
  3. There is a button 'Start' on the display, tap it
  4. Allow this web application to access the camera on this device
  5. Generate random barcode via https://barcode.tec-it.com/
  6. Scan invalid barcode
  7. 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

  1. Navigate to https://demo.chertopolokh.ru/turnstile from the mobile device
  2. Press 'Manual mode'
  3. Type the ticket number from the Scenario 1
  4. 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

  1. Navigate to https://demo.chertopolokh.ru/turnstile from the mobile device
  2. Press 'Manual mode'
  3. Type the random number as a ticket number
  4. Verify that you have sign that this ticket is not valid

Admin panel - App for tracking ticket sales statistics

Scenario 6: As a Merchant I want to be able to see the results of the sales

  1. Navigate to https://demo.chertopolokh.ru/kabinet/ with [email protected] login and 12345678 password
  2. Navigate to Main dashboard
  3. 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