Junior~10 minForm validationtoHaveTextEnd-to-end flow
Checkout form validation
App: SwagShop, a practice e-commerce demo store (Saucedemo-style). Login: standard_user, locked_out_user, problem_user, performance_glitch_user / secret_sauce.
Interview scenario
"The checkout form must not let anyone through without a postal code. Write a test that proves the validation works, then fixes the input and continues to the overview page."
Acceptance criteria
- Log in, add any item, go to the cart and click Checkout.
- Fill first and last name but leave Zip/Postal Code empty, click Continue.
- Assert the error "Error: Postal Code is required".
- Fill the postal code, click Continue and assert you reach "Checkout: Overview".
🔒 This lab is part of full access
Unlock the live editor, the scenario checks and the reference solutions in Playwright and Selenium Java for all 25 labs, plus every interview answer. One payment of ₹999, lifetime access.