Senior~20 minBusiness-rule assertionstoBeCloseTotest.step
End-to-end order with price maths
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
"Senior round. Buy the Fleece Zip Jacket and the Classic Cotton Tee. On the overview page, don't trust the UI: compute the item total from the prices you saw, check tax is 8%, check the grand total, then finish the order."
Acceptance criteria
- Add Fleece Zip Jacket and Classic Cotton Tee, check out with any name and postal code.
- On the overview page, read each item price and assert Item total equals their sum.
- Assert Tax equals 8% of the item total (rounded to 2 decimals) and Total equals item total plus tax.
- Click Finish and assert "Thank you for your order!".
🔒 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.