-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fix e2e test inserting cover block #31866
Conversation
Size Change: 0 B Total Size: 1.3 MB ℹ️ View Unchanged
|
// Wait for the search results to load after typing the full search | ||
// term. Previously this test would sometimes accidentally tab to the | ||
// button for a code block. | ||
await page.evaluate( () => new Promise( window.requestIdleCallback ) ); |
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.
I don't believe this check would necessarily run the scheduled event we are looking for (load search results) always.
This can still cause intermittent failures and it does in trunk.
I've changed this check here: b928438 which will land now with a green CI.
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.
That's what we had before, which was also failing sometimes. But the failures happen more now. I'll just revert my PR.
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.
Reverted in 5a2a966.
Description
See comment.
With the
insertBlock
utility function we don't useTab
butclick
instead, which explains why there's no intermittent failures there.How has this been tested?
Screenshots
Types of changes
Checklist:
*.native.js
files for terms that need renaming or removal).