Skip to content

Conversation

@dmlemeshko
Copy link
Member

Summary

Closes #65016

Trying to fix flaky test by waiting for loading message to disappear.

@dmlemeshko dmlemeshko requested a review from LeeDr May 4, 2020 13:21
@dmlemeshko dmlemeshko marked this pull request as ready for review May 4, 2020 13:22
@dmlemeshko dmlemeshko requested a review from a team as a code owner May 4, 2020 13:22
@dmlemeshko dmlemeshko added release_note:skip Skip the PR/issue when compiling release notes v7.8.0 v8.0.0 labels May 4, 2020

return {
async goToTime(time: string) {
await testSubjects.missingOrFail('loadingMessage', { timeout: 20000 });
Copy link

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).

Copy link
Member Author

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

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link

@LeeDr LeeDr left a 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 Kerry350 self-requested a review May 5, 2020 08:15
Copy link
Contributor

@Kerry350 Kerry350 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@dmlemeshko dmlemeshko merged commit 43205ec into elastic:master May 5, 2020
dmlemeshko added a commit to dmlemeshko/kibana that referenced this pull request May 5, 2020
…65050)

* [functional/page_objects] wait for infra ops page is loaded

* put waiting in PO method
dmlemeshko added a commit that referenced this pull request May 5, 2020
…65236)

* [functional/page_objects] wait for infra ops page is loaded

* put waiting in PO method
@dmlemeshko dmlemeshko deleted the fix-infra-ops-tests-on-ff branch January 31, 2022 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_note:skip Skip the PR/issue when compiling release notes test_xpack_functional v7.8.0 v8.0.0

Projects

None yet

4 participants