Skip to content
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

Stabilize dashboard snapshot toast closing #58709

Merged
merged 5 commits into from
Mar 3, 2020

Conversation

flash1293
Copy link
Contributor

Fixes #58707

The dashboard snapshot tests add a visualization and try to close the success toast afterwards. If the timing is bad, the toast can auto-close before the tries gets to closing it which will result in an error because the closeToast function fails if there is no toast to close.

This PR adds a new function closeToastIfExists which will not fail in this scenario and uses it for the dashboard snapshot tests

@flash1293
Copy link
Contributor Author

Jenkins, test this.

@flash1293 flash1293 marked this pull request as ready for review February 28, 2020 06:53
@flash1293 flash1293 added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Feb 28, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

Copy link
Contributor

@liza-mae liza-mae left a comment

Choose a reason for hiding this comment

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

LGTM, I ran it 25 times and did not see any failures. Thanks @flash1293 !

@mbondyra
Copy link
Contributor

mbondyra commented Mar 3, 2020

@elasticmachine merge upstream

@flash1293
Copy link
Contributor Author

@elasticmachine merge upstream

@mistic
Copy link
Member

mistic commented Mar 3, 2020

@elasticmachine merge upstream

@flash1293
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Functional Testing release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.6.2 v7.7.0 v8.0.0
Projects
None yet
6 participants