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
E2E: add registered shopper checkout test #28867
Conversation
const runCheckoutRegisteredPageTest = () => { | ||
describe('Checkout page', () => { | ||
beforeAll(async () => { | ||
await merchant.login(); |
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.
The existing shopper tests depend on these settings already being set. If we were to update all the shopper tests to include enabling these settings using the browser it would add a significant amount of runtime. I think we should defer making the shopper test atomic until we have a function to do it with the api package.
return orderId = orderReceivedText.split(/(\s+)/)[6].toString(); | ||
}); | ||
|
||
it('store owner can confirm the order was received', async () => { |
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.
Do we need to have the merchant check for the order in every test that creates an order? A couple alternatives for discussion:
- If so, this would be a good opportunity to turn the merchant order check into a function.
- The api could be used to verify that orders in additional tests were created.
32d4db5
to
1bafa98
Compare
@rrennick thanks for your thoughts -- I've adjusted the approach accordingly. Would you mind taking another look? |
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.
@lsinger Nice work. This tested great locally.
All Submissions:
Changes proposed in this Pull Request:
Closes #27883.
How to test the changes in this Pull Request:
Other information:
Changelog entry
N/A