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

[PWA-2672] Product prices is informed by the outdated field #3760

Merged
merged 8 commits into from
Apr 22, 2022

Conversation

tjwiebell
Copy link
Contributor

Description

Several places throughout the app that still query for a deprecated price field that does not reflect discounted pricing in Shared Catalogs

Actual Behavior:

when product price is adjusted with a sales promotion (special price, % discount on catalog etc) it's not reflected on the storefront
Original product price is displayed, not a discounted one
Expected behavior:

Discounted price is displayed in the catalog (not the original one)
No price discount indication on the storefront (part of PWA-1117)

Related Issue

  • Closes [PWA-2672] Product prices is informed by the outdated field

Acceptance

Verification Stakeholders

Specification

Verification Steps

Test scenario(s) for direct fix/feature

Test Plan
Wiki - https://docs.magento.com/user-guide/catalog/product-price-special.html
Precondition setup -

Create a simple product A and configurable product A with special price.
Create a simple product B and configurable product B with special price only for logged in customer group only.
Setup a catalog price rule as mentioned in wiki for particular date range across storefront
Execute -

Go to Venia store front and verify products show proper prices as per pre-conditions on -
search results
Search suggestion
Category page
Product details page
Mini cart
Cart page
Edit product card on cart page
Checkout
Order confirmation
Order history
Wishlist
Verify on store view 1 and 2 both.
Add special price product to cart and try applying coupon code, gift cards and place order.
Precondition setup -

Setup a catalog price rule as mentioned in wiki for particular date range across storefront but only for selected products.
Execute -

Go to Venia store front and verify products show proper prices as per pre-conditions and all pages mentioned in above scenario as applicable
Cypress Test coverage
NO ui change so expecting all changes to be covered in unit and/or api functional test. If at all needed there is discount summary cypress integration test which can be updated.

Test scenario(s) for any existing impacted features/areas

Test scenario(s) for any Magento Backend Supported Configurations

Is Browser/Device testing needed?

Any ad-hoc/edge case scenarios that need to be considered?

Screenshots / Screen Captures (if appropriate)

Breaking Changes (if any)

Checklist

  • I have added tests to cover my changes, if necessary.
  • I have added translations for new strings, if necessary.
  • I have updated the documentation accordingly, if necessary.

@pwa-studio-bot
Copy link
Collaborator

pwa-studio-bot commented Apr 13, 2022

Messages
📖

Associated JIRA tickets: PWA-1117.

📖 DangerCI Failures related to missing labels/description/linked issues/etc will persist until the next push or next pr-test build run (assuming they are fixed).
📖

Access a deployed version of this PR here. Make sure to wait for the "pwa-pull-request-deploy" job to complete.

Generated by 🚫 dangerJS against b046a3f

@tjwiebell tjwiebell added the version: Patch This changeset includes backwards compatible bug fixes. label Apr 13, 2022
@tjwiebell
Copy link
Contributor Author

run cypress

@pwa-test-bot
Copy link

pwa-test-bot bot commented Apr 14, 2022

Successfully started codebuild job for cypress

@tjwiebell tjwiebell added version: Major This changeset includes incompatible API changes and its release necessitates a Major version bump. and removed version: Patch This changeset includes backwards compatible bug fixes. labels Apr 14, 2022
@tjwiebell
Copy link
Contributor Author

run cypress

@pwa-test-bot
Copy link

pwa-test-bot bot commented Apr 14, 2022

Successfully started codebuild job for cypress

michaelyu0123
michaelyu0123 previously approved these changes Apr 14, 2022
@michaelyu0123
Copy link
Contributor

run all tests

@pwa-test-bot
Copy link

pwa-test-bot bot commented Apr 14, 2022

Successfully started codebuild job for the following test suites:

cypress
lighthouse-desktop
lighthouse-mobile
pr-test
scaffold-pwa

@pwa-studio-bot
Copy link
Collaborator

pwa-studio-bot commented Apr 14, 2022

Warnings
⚠️ No tests were found for requested tag

Generated by 🚫 dangerJS against b046a3f

@michaelyu0123
Copy link
Contributor

run cypress

@pwa-test-bot
Copy link

pwa-test-bot bot commented Apr 18, 2022

Successfully started codebuild job for cypress

@dpatil-magento
Copy link
Contributor

run cypress

@pwa-test-bot
Copy link

pwa-test-bot bot commented Apr 19, 2022

Successfully started codebuild job for cypress

@dpatil-magento
Copy link
Contributor

@tjwiebell Please check this failing cypess test. Its throwing error toast. Same works on develop (checked locally).
NOTE - Other failing cypress test reported above is not related to this pr, you can ignore that one.

@tjwiebell
Copy link
Contributor Author

run cypress

@pwa-test-bot
Copy link

pwa-test-bot bot commented Apr 21, 2022

Successfully started codebuild job for cypress

@pwa-studio-bot
Copy link
Collaborator

pwa-studio-bot commented Apr 21, 2022

Warnings
⚠️ No tests were found for requested tag

Generated by 🚫 dangerJS against b046a3f

@dpatil-magento
Copy link
Contributor

run lighthouse-desktop

@pwa-test-bot
Copy link

pwa-test-bot bot commented Apr 22, 2022

Successfully started codebuild job for lighthouse-desktop

@dpatil-magento
Copy link
Contributor

run cypress @ci

@pwa-test-bot
Copy link

pwa-test-bot bot commented Apr 22, 2022

Successfully started codebuild job for cypress with tags @ci

@dpatil-magento
Copy link
Contributor

run lighthouse-mobile

@pwa-test-bot
Copy link

pwa-test-bot bot commented Apr 22, 2022

Successfully started codebuild job for lighthouse-mobile

@dpatil-magento
Copy link
Contributor

QA Approved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg:pagebuilder pkg:peregrine pkg:venia-ui Progress: done version: Major This changeset includes incompatible API changes and its release necessitates a Major version bump.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants