A development team is working on a user story for an online shopping cart feature. The user story states that when a user adds an item to the cart, the item should be visible in the cart. Which of the following BDD scenarios correctly represents this behavior?

Given the user is on the product page, When the user clicks the Add to Cart button, Then the item is successfully added.
Given the user is logged in, When the user clicks the Add to Cart button, Then the cart updates.
Given the user is on the product page, When the user clicks the Add to Cart button, Then the item should appear in the shopping cart.
Given the user has items in the cart, When the user clicks the Checkout button, Then the order is confirmed.
Verified Answer
Correct Option - c

To get all Infosys Certified Advanced Level Agile Technical Tester (ATT) Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram