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
Functional tests - Test minimum purchase total required in order to validate the order #18290
Functional tests - Test minimum purchase total required in order to validate the order #18290
Conversation
Travis is red @nesrineabdmouleh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @nesrineabdmouleh
let page; | ||
const newPurchaseTotalRequired = 100; | ||
const defaultPurchaseTotalRequired = 0; | ||
const alertMessage = 'A minimum shopping cart total of €100.00 (tax excl.) is required to validate your order.'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const alertMessage = 'A minimum shopping cart total of €100.00 (tax excl.) is required to validate your order.'; | |
const alertMessage = `A minimum shopping cart total of €${newPurchaseTotalRequired}.00 (tax excl.) is required to validate your order.`; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could even format it to take decimals into account ? Just a suggestion
This change is