Skip to content

Fix a bunch of dashboard flaky test issues when network speed is slow#22766

Closed
stacey-gammon wants to merge 2 commits intoelastic:masterfrom
stacey-gammon:2018-09-06-save-confirm
Closed

Fix a bunch of dashboard flaky test issues when network speed is slow#22766
stacey-gammon wants to merge 2 commits intoelastic:masterfrom
stacey-gammon:2018-09-06-save-confirm

Conversation

@stacey-gammon
Copy link
Copy Markdown

@stacey-gammon stacey-gammon commented Sep 6, 2018

After discover the "slow 3g" option in Chrome, I was able to reproduce many flaky dashboard issues.

  • clickNewDashboard checked for an add dashboard button, if it didn't exist, it tried until failure to find the button on the prompt. Problem is sometimes it was slow to render the page, so dashboards existed, and the add dashboard button just didn't render yet. But once it failed to find it, it assumed there were no dashboards and only waited to find the "add your first dashboard" prompt button.

  • similarly, gotoDashboardLandingPage first checked for the existence of an item to determine where it was, but if that came back incorrectly (because the page was slow to load), it would fail. Wrapping both checks in a retry should fix this.

  • The second click save button happened too quickly, this waits for the button to be enabled before clicking. Clicking the button when disabled doesn't throw an error. Rather than fix for this specific test, I pushed the check for a disabled button into the find service so any other clicks on an element will wait for the button to be enabled, or will throw an error as unsuccessful.

  • Added in a check to wait for the EuiTableLoading indicator to be removed after searching for a dashboard on the listing page. If it's in the process of loading, some clicks can miss their elements.

Fixes #22409 ... probably many more! 🎉

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@stacey-gammon
Copy link
Copy Markdown
Author

retest

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@stacey-gammon
Copy link
Copy Markdown
Author

Gradle error

jenkins, test this

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@stacey-gammon
Copy link
Copy Markdown
Author

retest

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@stacey-gammon stacey-gammon requested a review from LeeDr September 8, 2018 16:23
@stacey-gammon stacey-gammon changed the title Investigate fix for confirm save flaky test Fix a bunch of dashboard flaky test issues when network speed is slow Sep 8, 2018
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@stacey-gammon
Copy link
Copy Markdown
Author

The slightly added delay on clicking seems to have triggered one of the other flaky bugs, but turns out that is a legit issue: #22233

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@stacey-gammon
Copy link
Copy Markdown
Author

@liza-mae and @LeeDr - hold off on review, thought I was closer than I am with these fixes, but obvi, with all the red... still have some work to do!

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@stacey-gammon stacey-gammon force-pushed the 2018-09-06-save-confirm branch from 4e4e675 to b3465cc Compare September 10, 2018 20:36
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Generalize the fix and include some other flakiness encountered with slow network connection

dont wrap in a retry or stale element checks will get caught

dont click disabled go button

Skip test hitting legit input control bug
@stacey-gammon stacey-gammon force-pushed the 2018-09-06-save-confirm branch from b3465cc to 28a2a5e Compare September 10, 2018 23:26
@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@liza-mae liza-mae added failed-test A test failure on a tracked branch, potentially flaky-test and removed flaky-failing-test labels Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

failed-test A test failure on a tracked branch, potentially flaky-test

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dashboard app using legacy data dashboard save Saves on confirm duplicate title warning

3 participants