Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Promotions UAT testing #6799

Open
zenweasel opened this issue Feb 14, 2023 · 4 comments
Open

Promotions UAT testing #6799

zenweasel opened this issue Feb 14, 2023 · 4 comments
Assignees
Labels
Promotions Issues related to the Promotions project

Comments

@zenweasel
Copy link
Collaborator

Working from the UAT testing doc perform testing and open issues for any bugs found.

Scenario 1:

”As a merchant, I want to create a promotion to offer 10% of all eligible items in my cart, excluding products from Brand = Nike or Brand = The North Face.”

Scenario 2:

“As a merchant, I want to create a promotion to offer $10 off the merchandise subtotal (ie excludes shipping and tax) of all eligible items in my cart.”

Scenario 3

“As a merchant, I want to get 20% off any XXX brand products added to the cart.”

Scenario 4

“Get 10% OFF Clearance Items”

@zenweasel zenweasel added the Promotions Issues related to the Promotions project label Feb 14, 2023
@sujithvn
Copy link
Contributor

sujithvn commented Feb 15, 2023

Scenario 1

  • Completed the steps till checkout stage (creating new promotion, adding items to cart)
  • The Cart shows "total amount" with the discount applied to non-Nike and non-NorthFace items
  • ISSUE: Cannot proceed with checkout, no response/errors while clicking "checkout" button. Loom recording provided. Steps to reproduce Checkout issue for Scenario1 added below
  1. Delete the existing reaction database
  2. Ensure you have plugins.json updated to include sample-data plugin and also update .env file to include LOAD_SAMPLE_DATA=true
  3. Start the API with pnpm --filter=reaction run start:dev
  4. Stop the API with Ctrl-C and start the API again as above (this is temp workaround for sequence issue)
  5. Open the browser and navigate to http://localhost:4080 for Admin UI. Login with admin credentials
  6. Navigate to the Products and click on the first product - "Men's Waterproof Outdoor Rain Jacket”
  7. Set the vendor to "The North Face" and Save and Publish that product.
  8. Navigate to the Products and click on the second product - "Women's Outwear Sportswear Hoodie”
  9. Set the vendor to "Nike" and Save and Publish that product.
  10. Start Kinetic with pnpm run dev and open the browser and navigate to http://localhost:3000 for Kinetic UI. Login with admin credentials
  11. Follow the exact same steps in UAT document for Scenario1 Phase 1 to create a Promotion. Make sure all the existing promotions are "Disabled" as mentioned in General Setup.
  12. Wait for the promotion to be "active".
  13. Start Storefront with yarn dev and open the browser and navigate to the http://localhost:4000/ for storefront
  14. Add the “Men’s Casual Rugged Jacket” to the cart.
  15. If you go to the Cart page, you can observe the the total of “$44.99” reflects the %10 discount on the $49.99 price
  16. Go back to Homepage and verify that the vendor for “Men’s Waterproof Outdoor Rain Jacket” is set to “The North Face”
  17. Add this item to the cart
  18. If you go to the Cart page, you can observe the the total of “$94.98”
    Note that this item is not discounted and the total only reflects the %10 discount on the first item
    At this stage, the API console does NOT show any errors and only has the informational logs.
    There are NO errors in the browser console also (apart from the ones for missing images).
    If you click the "Checkout" button, there is no response/output/errors in both the browser console and API console.

Created an issue for this
#6803

@sujithvn
Copy link
Contributor

sujithvn commented Feb 15, 2023

Scenario 4

  • Updated the steps in phase2 of UAT document to trigger a priceType promotion
  • PASS - test passed as expected in the UAT document

@sujithvn
Copy link
Contributor

Scenario 2

  • PASS - test passed as expected in the UAT document

@sujithvn
Copy link
Contributor

Scenario 3

  • PASS - test passed as expected in the UAT document

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Promotions Issues related to the Promotions project
Projects
None yet
Development

No branches or pull requests

2 participants