Repository navigation
[ADD] website_sale_hide_all_prices: characterization tests - #529
Open
fw-bot-adhoc wants to merge 1 commit into
Open
fw-bot-adhoc wants to merge 1 commit into
fw-bot-adhoc wants to merge 1 commit into
Conversation
Cover how 'hide all prices' behaves in 19, with the setting on and off: the payment mail is not sent, no shop page shows the product price (grid, product page, comparison, cart, checkout and wishlist), the frontend session gets the flag, and checkout ends in a quotation request instead of a payment, also from the address form. X-original-commit: a3485d3
Contributor
Author
|
@ALopez-Adhoc @augusto-weiss this PR targets 20.0 and is the last of the forward-port chain. To merge the full chain, use
More info at https://github.com/odoo/odoo/wiki/Mergebot#forward-port |
Author
|
@ALopez-Adhoc @augusto-weiss this forward port of #521 is awaiting action (not merged or closed). |
2 similar comments
Author
|
@ALopez-Adhoc @augusto-weiss this forward port of #521 is awaiting action (not merged or closed). |
Author
|
@ALopez-Adhoc @augusto-weiss this forward port of #521 is awaiting action (not merged or closed). |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Characterization tests for
website_sale_hide_all_pricesin 19.0. They are the regression net for the migration to 20.0. The module code is not changed.Tarea: https://www.adhoc.inc/odoo/project.task/76641
What is covered
Every scenario runs with the setting on and off, so each check also proves it looks at the right place.
test_payment_mail.py): the order notification mail is not sent while prices are hidden.test_hidden_prices.py): shop grid, product page, comparison page, cart, checkout summary (delivery form hidden), thewebsite_hide_all_pricesflag in the frontend session, and the wishlist.test_quotation_checkout.py):/shop/request_quotationleaves the cart as a draft quotation without transaction, resets the session cart and redirects to/request-quotation;/shop/confirmationsends back to it;Evidence
--test-tags /website_sale_hide_all_prices:0 failed, 0 error(s) of 5 tests(11 subtests), about 7.4 s.return:1 != 0;'/shop/checkout?try_skip_step=true' != '/request-quotation';'d-none' not found.Declared, not tested
Finding
With the setting on, some prices stay in the HTML and are only hidden with
d-none: the wishlist price, the delivery form and the payment status. The tests lock that 19.0 behavior as it is.Forward-Port-Of: #521