From 0ba176aa5e603cc9452c5afd7029437666b013e3 Mon Sep 17 00:00:00 2001 From: Bugster Bot Date: Thu, 31 Jul 2025 13:03:24 +0000 Subject: [PATCH 1/2] Bugster update for 30336045ea177039efffba8f9c2d1d5e3fe0a708 --- .bugster/.update_state.json | 5 ++++ .bugster/tests/cart/1_view_cart_contents.yaml | 10 +++++++- .../tests/cart/2_remove_item_from_cart.yaml | 12 ++++++++-- .../cart/3_apply_promo_code_to_cart.yaml | 18 +++++++++++++++ ...ply_valid_promo_code_to_shopping_cart.yaml | 17 ++++++++++++++ ..._stickers_page_displays_product_cards.yaml | 23 +++++++++++++++++++ 6 files changed, 82 insertions(+), 3 deletions(-) create mode 100644 .bugster/.update_state.json create mode 100644 .bugster/tests/cart/3_apply_promo_code_to_cart.yaml create mode 100644 .bugster/tests/cart/4_apply_valid_promo_code_to_shopping_cart.yaml create mode 100644 .bugster/tests/stickers/1_verify_stickers_page_displays_product_cards.yaml diff --git a/.bugster/.update_state.json b/.bugster/.update_state.json new file mode 100644 index 0000000..2001af5 --- /dev/null +++ b/.bugster/.update_state.json @@ -0,0 +1,5 @@ +{ + "timestamp": "2025-07-31T13:03:24.201913", + "commit_hash": "30336045ea177039efffba8f9c2d1d5e3fe0a708", + "branch": "HEAD" +} \ No newline at end of file diff --git a/.bugster/tests/cart/1_view_cart_contents.yaml b/.bugster/tests/cart/1_view_cart_contents.yaml index 84510fb..05795f3 100644 --- a/.bugster/tests/cart/1_view_cart_contents.yaml +++ b/.bugster/tests/cart/1_view_cart_contents.yaml @@ -7,4 +7,12 @@ steps: - Navigate to the cart page - Verify product appears in the cart list - Verify product details (name, color, size, price) are correct -expected_result: Cart page displays all added items with correct details +- Verify the item count badge displays correctly in the order summary +- Verify estimated delivery date is shown +- Check if free delivery banner appears when subtotal is below $50 +- Confirm order summary shows correct subtotal, tax (8%), and shipping costs +- "Verify the proceed to checkout button color is green if subtotal \u2265 $100, blue\ + \ otherwise" +expected_result: Cart page displays all added items with correct details, order summary + showing item count, estimated delivery date, subtotal, tax, shipping cost (free + if over $50), and dynamic banners based on cart value diff --git a/.bugster/tests/cart/2_remove_item_from_cart.yaml b/.bugster/tests/cart/2_remove_item_from_cart.yaml index 47b43ab..e6f6768 100644 --- a/.bugster/tests/cart/2_remove_item_from_cart.yaml +++ b/.bugster/tests/cart/2_remove_item_from_cart.yaml @@ -5,7 +5,15 @@ task: Verify users can remove items from their cart steps: - Add a product to cart from the homepage - Navigate to the cart page +- Verify the item count badge shows the correct number of items +- Verify the estimated delivery date is displayed - Click the remove button on a cart item - Verify the item is removed from the cart -- Verify cart total is updated -expected_result: Item is removed from cart and cart is updated +- Verify cart item count badge is updated +- Verify subtotal is updated +- Verify tax amount is recalculated +- "Verify shipping cost is updated (free if subtotal \u2265 $50)" +- Verify free delivery banner appears if subtotal < $50 +expected_result: Item is removed from cart, cart total is updated, and all related + cart elements are refreshed including subtotal, tax, shipping cost, item count badge, + and estimated delivery date diff --git a/.bugster/tests/cart/3_apply_promo_code_to_cart.yaml b/.bugster/tests/cart/3_apply_promo_code_to_cart.yaml new file mode 100644 index 0000000..9c2cac4 --- /dev/null +++ b/.bugster/tests/cart/3_apply_promo_code_to_cart.yaml @@ -0,0 +1,18 @@ +name: Apply promo code to cart +page: Cart +page_path: app/cart/page.tsx +task: Verify that users can apply and remove promo codes in their shopping cart +steps: +- Add a product to cart from the homepage +- Navigate to the cart page +- Verify the promo code section is displayed in the order summary +- Enter a valid promo code (e.g., 'SAVE10') in the input field +- Click the 'Apply' button +- Verify a success toast message appears confirming the promo code was applied +- Verify the applied promo code is displayed with its description +- Verify a 'Remove' button appears next to the applied promo code +- Click the 'Remove' button +- Verify a success toast message appears confirming the promo code was removed +- Verify the promo code input field reappears +expected_result: User can apply a valid promo code and see it reflected in the order + summary diff --git a/.bugster/tests/cart/4_apply_valid_promo_code_to_shopping_cart.yaml b/.bugster/tests/cart/4_apply_valid_promo_code_to_shopping_cart.yaml new file mode 100644 index 0000000..7fc8fca --- /dev/null +++ b/.bugster/tests/cart/4_apply_valid_promo_code_to_shopping_cart.yaml @@ -0,0 +1,17 @@ +name: Apply valid promo code to shopping cart +page: Shopping Cart +page_path: app/cart/order-summary.tsx +task: Test the functionality of applying a valid promo code in the shopping cart +steps: +- Navigate to the shopping cart page +- Observe the order summary section +- Find the promo code section +- Enter 'SAVE10' in the promo code input field +- Click the 'Apply' button +- Wait for the promo code to be applied +- Verify that a success toast message appears +- Verify that the applied promo code appears with a green checkmark +- Verify that the promo code description '10% off' is displayed +- Verify that the 'Remove' button is now visible +expected_result: The user should be able to apply a valid promo code, see a success + message, and see the promo code details displayed. diff --git a/.bugster/tests/stickers/1_verify_stickers_page_displays_product_cards.yaml b/.bugster/tests/stickers/1_verify_stickers_page_displays_product_cards.yaml new file mode 100644 index 0000000..90f05e1 --- /dev/null +++ b/.bugster/tests/stickers/1_verify_stickers_page_displays_product_cards.yaml @@ -0,0 +1,23 @@ +name: Verify Stickers Page Displays Product Cards +page: StickersPage +page_path: app/stickers/page.tsx +task: Verify that the Stickers page correctly displays all sticker products with their + information +steps: +- Navigate to the stickers page +- Verify the page heading 'Stickers Collection' is displayed +- Verify the subheading 'Discover our amazing collection of high-quality stickers' + is displayed +- Verify that 6 sticker product cards are displayed on the page +- Verify the 'Circle Sticker Pack' product is displayed with price $12.99 +- Verify the 'Star Sticker Collection' product is displayed with price $15.99 +- Verify the 'Emoji Sticker Set' product is displayed with price $10.99 +- Verify the 'Nature Sticker Pack' product is displayed with price $14.99 +- Verify the 'Geometric Sticker Set' product is displayed with price $13.99 +- Verify the 'Holographic Sticker Pack' product is displayed with price $18.99 +- Click on a color option for any product +- Verify the selected color is highlighted +- Click the 'Add to Cart' button for a product +- Verify a success toast message appears confirming the item was added to cart +expected_result: The page should display all 6 sticker products with their names, + prices, descriptions, and color options From 487e2d41c00d0e759f579669841d252e72897380 Mon Sep 17 00:00:00 2001 From: "bugster-dev[bot]" <184734809+bugster-dev[bot]@users.noreply.github.com> Date: Sun, 5 Oct 2025 10:37:09 +0000 Subject: [PATCH 2/2] Apply selected test changes from PR --- .bugster/tests/cart/1_view_cart_contents.yaml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/.bugster/tests/cart/1_view_cart_contents.yaml b/.bugster/tests/cart/1_view_cart_contents.yaml index 05795f3..84510fb 100644 --- a/.bugster/tests/cart/1_view_cart_contents.yaml +++ b/.bugster/tests/cart/1_view_cart_contents.yaml @@ -7,12 +7,4 @@ steps: - Navigate to the cart page - Verify product appears in the cart list - Verify product details (name, color, size, price) are correct -- Verify the item count badge displays correctly in the order summary -- Verify estimated delivery date is shown -- Check if free delivery banner appears when subtotal is below $50 -- Confirm order summary shows correct subtotal, tax (8%), and shipping costs -- "Verify the proceed to checkout button color is green if subtotal \u2265 $100, blue\ - \ otherwise" -expected_result: Cart page displays all added items with correct details, order summary - showing item count, estimated delivery date, subtotal, tax, shipping cost (free - if over $50), and dynamic banners based on cart value +expected_result: Cart page displays all added items with correct details