Use built-in page and context fixtures
Medium70 pts~25 min
- Secure Checkout
Practice app · Secure Checkout
A payment widget inside an iframe and a nested iframe structure.
Your starter code already declares TEST_URL — never hardcode a host.
Objective
Use built-in page and context fixtures. Practise it against the Secure Checkout practice application (A payment widget inside an iframe and a nested iframe structure.).
Your task
- 1Open the practice application at the test URL shown above and wait for it to finish loading.
- 2Inspect the page to find the elements you need — key elements include
#main-heading,#payment-frame,#card-number. - 3Write and run a test that demonstrates: use built-in page and context fixtures.
- 4Finish with at least one assertion on a user-visible outcome, not an internal detail.
Acceptance criteria
- The test runs to completion without errors.
- The test contains at least one passing assertion on a user-visible outcome.
Playwright · SDET · Fixtures