-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[functional/page_objects] wait for infra ops page is loaded #65050
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
[functional/page_objects] wait for infra ops page is loaded #65050
Conversation
|
|
||
| return { | ||
| async goToTime(time: string) { | ||
| await testSubjects.missingOrFail('loadingMessage', { timeout: 20000 }); |
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 understand the reasoning for putting this here. Wouldn't it cause goToTime to fail if the loadingMessage is found?
In general, I think what ever action causes the loading should wait for the loadingMesage to clear (post action wait), instead of checking that it's not there before doing the next action (pre action check).
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.
@LeeDr I checked locally and that loading is happening after url navigation, I added await pageObjects.infraHome.waitForLoading(); in before method
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
LeeDr
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.
LGTM - Code review and Jenkins results. I didn't pull and run this PR locally.
Kerry350
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.
LGTM 👍
…65050) * [functional/page_objects] wait for infra ops page is loaded * put waiting in PO method
Summary
Closes #65016
Trying to fix flaky test by waiting for loading message to disappear.