AndreiBanu1 / Amazon_Testing_Framework

0 stars 0 forks source link

Create test cases for Wishlist Module #10

Open AndreiBanu1 opened 1 year ago

AndreiBanu1 commented 1 year ago

Wishlist Module: Test the wishlist functionality, including adding products to the wishlist, viewing and managing wishlist items, and sharing wishlists with others.

AndreiBanu1 commented 1 year ago
  1. Test adding a product to the wishlist:

    • Preconditions: User is logged in to their account and on the product details page.
    • Steps:
      1. Click on the "Add to Wishlist" or similar button on the product details page.
      2. Optionally, select a specific wishlist to add the product to, or create a new wishlist.
      3. Save the changes.
    • Expected Results: The product should be successfully added to the wishlist.
  2. Test viewing wishlist items:

    • Preconditions: User is logged in to their account and on the wishlist page.
    • Steps:
      1. Navigate to the wishlist page.
      2. Verify that the wishlist items are displayed correctly, including the product name, price, availability, and other relevant details.
    • Expected Results: The wishlist items should be displayed correctly.
  3. Test removing a product from the wishlist:

    • Preconditions: User is logged in to their account and on the wishlist page.
    • Steps:
      1. Locate the specific product in the wishlist.
      2. Click on the "Remove" or similar button to remove the product from the wishlist.
      3. Save the changes.
    • Expected Results: The product should be successfully removed from the wishlist.
  4. Test sharing a wishlist with others:

    • Preconditions: User is logged in to their account and on the wishlist page.
    • Steps:
      1. Find the option to share the wishlist with others.
      2. Enter the email addresses or other contact information of the recipients.
      3. Optionally, add a personalized message.
      4. Send the wishlist.
    • Expected Results: The wishlist should be successfully shared with the specified recipients.
  5. Test managing multiple wishlists:

    • Preconditions: User is logged in to their account and on the wishlist page.
    • Steps:
      1. Create multiple wishlists with different names.
      2. Add products to different wishlists.
      3. Verify that the products are added to the correct wishlists.
      4. Remove products from specific wishlists.
      5. Verify that the products are successfully removed from the selected wishlists.
    • Expected Results: The user should be able to manage multiple wishlists and perform actions on specific wishlists.
  6. Test adding a product to the wishlist from different pages:

    • Preconditions: User is logged in to their account and on different pages (e.g., search results page, category page, etc.).
    • Steps:
      1. Locate a product on the page.
      2. Click on the "Add to Wishlist" or similar button.
      3. Optionally, select a specific wishlist or create a new one.
      4. Save the changes.
    • Expected Results: The product should be successfully added to the wishlist from different pages.
  7. Test moving products between wishlists:

    • Preconditions: User is logged in to their account and on the wishlist page with multiple wishlists.
    • Steps:
      1. Locate a product in one wishlist.
      2. Find the option to move the product to another wishlist.
      3. Select the destination wishlist.
      4. Save the changes.
    • Expected Results: The product should be successfully moved to the selected wishlist.
  8. Test creating a new wishlist:

    • Preconditions: User is logged in to their account and on the wishlist page.
    • Steps:
      1. Find the option to create a new wishlist.
      2. Enter a name for the new wishlist.
      3. Save the changes.
    • Expected Results: A new wishlist with the specified name should be created successfully.