-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Remove most waitForTimeout
usage from the freetext editor integration tests
#18041
Remove most waitForTimeout
usage from the freetext editor integration tests
#18041
Conversation
/botio integrationtest |
From: Bot.io (Windows)ReceivedCommand cmd_integrationtest from @timvandermeij received. Current queue size: 0 Live output at: http://54.193.163.58:8877/0a1f10fb0fb77d8/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_integrationtest from @timvandermeij received. Current queue size: 0 Live output at: http://54.241.84.105:8877/32468a9cce24e6e/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/32468a9cce24e6e/output.txt Total script time: 7.25 mins
|
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/0a1f10fb0fb77d8/output.txt Total script time: 21.14 mins
|
The Windows failure above is already tracked in #17931 and therefore unrelated to this PR. |
…on tests This commit replaces a `waitForTimeout` occurrence with an equivalent `waitForSelector` expression, and removes two other `waitForTimeout` occurrences that are obsolete because we already wait for an observable event to trigger or class change to happen. Note that the other `waitForTimeout` occurrences in this file are either part of mozilla#17931 or remain until we find a good way to ensure that nothing happened (because currently there is nothing we can await there).
This commit replaces `waitForFunction` calls that use `document.activeElement` to wait for an element to get focus by simpler `waitForSelector` expressions that use the `:focus` selector. Note that we already use this in other tests, so this improves consistency too.
8f1a84e
to
bb74338
Compare
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.
LGTM. Thank you.
The commit messages contain more details about the individual changes.
Fixes a part of #17656.