Automation lab Aú E2E Workflows (E2E_WORKFLOWS)

Lab 109: Expert: Return/Refund workflow with async approval + inventory reconciliation

Return/refund workflow with async processing, approvals, and inventory reconciliation.

expert expert
expert

Objectives

Use for test scripts
  • Execute multi-role return approvals and warehouse receipt steps.
  • Validate return eligibility rules and evidence requirements.
  • Assert async job effects on refund and inventory.
  • Verify timeline and audit signals across transitions.

Sandbox

E2E Workflows | e2e-workflows | expert | active

Expert: Return/Refund workflow with async approval + inventory reconciliation

Multi-role return flow with approvals, async refund processing, and inventory reconciliation.

Return approvals Async processing Inventory reconciliation

Learning objectives

  • Execute multi-role return approvals and warehouse steps.
  • Validate return eligibility and evidence requirements.
  • Observe async job effects on refund and stock.
  • Assert timeline events and audit signals.

Steps

  1. Buyer purchases product P011 and gets status PAID.
  2. Admin marks the order DELIVERED.
  3. Buyer submits a return request with reason and evidence.
  4. Admin approves the return.
  5. Warehouse receives the item and async job refunds + restocks.

Expected results

  • Return requests require reason and evidence.
  • Status transitions follow the return workflow.
  • Async job updates the order to REFUNDED.
  • Refund transaction id is visible in the UI.
  • Inventory increases by one exactly once.

Practice sandbox

Return workflow with Buyer, Admin, and Warehouse roles.

Live

Active user

Not signed in.

Guest

Order summary

Product P011 stock: 50

-

Order code: -

Buyer: -

Return reason: -

Evidence: -

Refund method: -

Admin review

Return request (buyer)

Eligible within 7 days

Warehouse + async job

IDLE

Job ID: -

Attempts: 0

Refund + inventory

-

Refund transaction: -

Refund method: -

Wallet balance: 0

Timeline

0 events
    Ready.

    Assertions to practice

    • Return request blocked when missing evidence or outside the window.
    • Async job updates order to REFUNDED and restocks once.
    • RBAC blocks other buyers from the return request.