-
Notifications
You must be signed in to change notification settings - Fork 383
Fix navigation timeout errors in E2E tests #7669
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
Conversation
7bb0a5c to
36246a6
Compare
| module.exports = { | ||
| launch: { | ||
| devtools: process.env.PUPPETEER_DEVTOOLS === 'true', | ||
| headless: process.env.PUPPETEER_HEADLESS !== 'false', | ||
| slowMo: parseInt(process.env.PUPPETEER_SLOWMO) || 0, | ||
| args: [ | ||
| '--enable-blink-features=ComputedAccessibilityInfo', | ||
| '--disable-web-security', | ||
| ], | ||
| executablePath: executablePath(), | ||
| }, | ||
| }; |
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.
Where did you get this config from? If copied from somewhere, please include the link to the specific version of the config so it can be updated to reflect upstream changes.
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.
Now it will be automatically in sync with upstream - ee18f0a
| await createMenu( | ||
| { | ||
| name: 'Test Menu 1', | ||
| locations: [menuLocation], |
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.
So this makes the assignMenuToLocation function obsolete? It was doing additional work that wasn't needed?
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.
Yes, that's correct.
|
Plugin builds for ee18f0a are ready 🛎️!
ChecksumsWarning These builds are for testing purposes only and should not be used in production. |
4d59ace to
ee18f0a
Compare
westonruter
left a comment
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.
Great work!
Summary
Most of the time, E2E tests fail due to navigation timeout errors. Since we rely on
wp-scriptsfor running E2E tests, the package does not use the latest chromium for running the test suite hence causing so much flakiness in tests.Changes:
executablePath()puppeteer helper function in E2E tests.assignMenuToLocation()and updatecreateTestMenu()e2e util for adding menu locations.Checklist