π Bug hunt
Find the 5 bugs in Nova Shop
Real testing is finding what's broken, not confirming what works. Sign in as buggy_user / Demo@123. Everything looks the same, but 5 behaviours are wrong on purpose. Write tests that fail for the buggy build and pass for the normal one.
Bug 1 Β· Products Β· sort
Sort by Price (low to high) and read the prices from top to bottom.
Show the answer
Prices are compared as text, so $109.99 and $129.99 come before $15.00. Assert that the numeric prices are in ascending order.
Bug 2 Β· Products Β· search
Search for the same word in lower case and with a capital letter.
Show the answer
Search is case-sensitive: βauroraβ finds nothing while βAuroraβ finds the headphones. The normal build ignores case.
Bug 3 Β· Header Β· cart badge
Put two of the same product in the cart and look at the badge.
Show the answer
The badge counts cart lines, not items: two of one product shows 1. It should match the βitemsβ count on the cart page.
Bug 4 Β· Cart Β· tax
Apply SAVE10 and recalculate the tax yourself.
Show the answer
Tax (8%) is charged on the subtotal before the discount instead of after it, so tax and total are too high whenever a coupon is applied.
Bug 5 Β· Checkout Β· order total
Choose Express delivery and compare the Place order button with the confirmation page.
Show the answer
The saved order drops the shipping charge: βTotal paidβ and the orders table are lower than the total you agreed to at checkout.