Automation lab Aú E2E Workflows (E2E_WORKFLOWS)

Lab 111: Hotel Flow E2E: Check-in -> Guest Registration -> Check-out -> Services -> Payment

Practice a realistic hotel front-desk E2E flow with multiple forms (about 10 fields), status transitions, service fees, and payment.

intermediate intermediate
intermediate

Objectives

Use for test scripts
  • Automate a long E2E flow across multiple forms and pages.
  • Use stable selectors (data-testid) and avoid flaky locators.
  • Validate required fields, date constraints, and ID formats.
  • Assert price calculations: room nights + deposits + service fees + taxes + discounts.
  • Verify status transitions: RESERVED -> CHECKED_IN -> CHECKED_OUT -> PAID.

Sandbox

E2E Workflows | e2e-workflows | intermediate | active

Hotel Flow E2E: Check-in -> Guest Registration -> Check-out -> Services -> Payment

Practice a realistic hotel front-desk flow with check-in, services, check-out, and payment.

Hotel front desk Billing + totals Status workflow

Learning objectives

  • Automate a long E2E flow across multiple forms and pages.
  • Use stable selectors (data-testid) and avoid flaky locators.
  • Validate required fields, date constraints, and ID formats.
  • Assert price calculations and totals.
  • Verify status transitions through payment.

Steps

  1. Login as Receptionist and confirm check-in.
  2. Add services during the stay.
  3. Confirm check-out with fees.
  4. Complete payment and verify receipt.

Expected results

  • Check-in requires all mandatory fields and valid formats.
  • Services update billing totals in real time.
  • Check-out locks services and updates status.
  • Payment requires amount >= grand total and calculates change.
  • Timeline logs CHECKED_IN, SERVICE_ADDED, CHECKED_OUT, PAID.

Practice sandbox

Front desk flow with rooms, services, checkout fees, and payment.

Live

Active user

Not signed in.

Guest

Check-in form

Create a stay by registering the guest and booking details.

Room nights and totals are calculated after check-in.

Check-out

Available after CHECKED_IN.

Stay detail

Status: -

-

No active stay.

Service Qty Unit price Total

Billing summary

Room total 0 VND
Service total 0 VND
Checkout fees 0 VND
Tax (8%) 0 VND
Discount 0 VND
Deposit 0 VND
Grand total 0 VND

Timeline

0 events

    Payment

    Available after CHECKED_OUT.

    Change 0 VND
    Ready.