Skip to main content

Coupon Apply Button Disappears Into Web Component

HardCheckoutShadow DOM

Mission

  • Incident

    When commerce controls disappear inside a component boundary, brittle tests stop protecting checkout changes

  • Goal

    Reach the real coupon action through the component boundary and verify the surfaced status ends in done

  • Pass condition

    Trigger the real coupon apply primary action inside the shadow boundary

What counts

  • Trigger the real coupon apply primary action inside the shadow boundary
  • idle -> running -> done lifecycle
  • coupon success banner confirms SPRING10 was applied
Constraints1 rules + 1 mutation note

Rules

  • Do not click decoy actions outside the nested apply control

Mutation

  • Apply button path changes between baseline and mutated shadow hierarchy
Hint 1

Action: Trigger the real coupon apply primary action inside the shadow boundary.

Hint 2

Assertion: Assert idle -> running -> done lifecycle.

Hint 3

Assertion: Assert coupon success banner confirms SPRING10 was applied.

0 Online

Code

Auto
Saved
Ln 1, Col 1
You need to log in / sign up to run or submit
Promo code

Apply a discount before completing checkout.

Statusidle
Order summary
Subtotal$84.00
Discount$0.00
Total$84.00

Savings will appear after validation.