-
Notifications
You must be signed in to change notification settings - Fork 53
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
Percy: mobile snapshots, separate key for calltaker, mock geocoder #993
Conversation
This reverts commit 56a230b.
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.
Works great and snapshots look fantastic. I think this is as clean as something like this can get well done!
@@ -196,7 +218,8 @@ async function executeTest(page, isMobile, isCallTaker) { | |||
) | |||
await page.waitForSelector('.intermediate-place-0-form-control') | |||
await page.focus('.intermediate-place-0-form-control') | |||
await page.keyboard.type('arts center') | |||
// FIXME: Characters are typed very fast, but each stroke still triggers a geocoder call. |
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 call should be being aborted, but because the geocoder is at localhost the connection is established before it can be aborted.
test('OTP-RR Mobile', async () => { | ||
const page = await loadPath('/') | ||
page.isMobile = true |
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.
Clever!
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.
Very good assortment of screenshots, thank you! This should make the percy tests more useful.
Description
This PR changes the percy test so it runs and keeps the mobile snapshots, and uses a separate percy key for calltaker mode and runs calltaker snapshots in a separate job to avoid race conditions. Geocoder is mocked too now. Feedback welcome on how to reduce run time or reuse the checkout steps.
PR Checklist: