Mid~12 minDisabled statesError messagesCross-page checks
Size is required before adding to bag
App: TrendKart, a practice fashion marketplace (Myntra-style). Login: No login needed.
Interview scenario
"On the product page, Add to Bag without a size should show an error. Cover that, then pick an in-stock size, add to bag, and check the bag shows the right item and size. Also assert that the out-of-stock size can't be selected."
Acceptance criteria
- Open the Roadway Men Slim Fit Casual Shirt (search shirt, click the card).
- Click ADD TO BAG without a size and assert "Please select a size".
- Assert size XL is disabled (out of stock).
- Select size M, add to bag, assert the bag count is 1, open the bag and assert size M.
🔒 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.