Customize the assertion timeout
Medium70 pts
- Custom Timeout
- Async Waiting
- Assertion Config
Practice app · Order Tracker
Asynchronous UI that appears, changes and disappears on timers — for explicit, implicit and fluent waits.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Pass custom timeouts to assertions to handle delayed element appearances and asynchronous state changes.
Your Task
- 1Navigate to the practice order tracker page at TEST_URL.
- 2Locate the delivery instructions button (#delayed-button). Note that it is initially disabled for 3 seconds while awaiting carrier sync.
- 3Wait for the button to become enabled and click it to reveal the confirmation message.
- 4Assert that the confirmation message (#delayed-result) becomes visible using a custom assertion timeout (such as 10 seconds).
Validation Checks
- Practice order tracker page is loaded at TEST_URL
- Delivery instructions button (#delayed-button) is clicked once enabled
- Custom timeout is supplied to the assertion
- Confirmation message (#delayed-result) is verified visible
- At least 1 assertion passes
Playwright · Playwright Practice Track · Assertions