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

Fix skipped alerting UI tests #55058

Merged
merged 12 commits into from
Jan 24, 2020
Merged

Conversation

mikecote
Copy link
Contributor

@mikecote mikecote commented Jan 16, 2020

In this PR, I'm re-enabling all the skipped tests from the alerting UI suite.

These tests were originally skipped due to an issue in EUI (elastic/eui#2612). Now that the issue is fixed, we can re-enable these tests.

While re-enabling, a small issues was found with the collapsed item component. I've fixed those in here as well. (The switch wouldn't reflect the result of a bulk action). The downside with my fix is the switch won't change value until the API call finishes and a re-render happens.

Other stability fixes:

  • Synchronize the loading indicator in the table with the refreshed data (used to have a small gap tests could pickup on) (8bce4f2 and fb901f5)
  • Functional tests use .click directly instead of .find then.click (9e6f2c2)
  • Added some missing await that caused tests to be flaky (aee22a5)

Resolves #49830 now that we will have a full suite running.

@mikecote mikecote added Feature:Alerting v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.7.0 Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) labels Jan 16, 2020
@mikecote mikecote self-assigned this Jan 16, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

Copy link
Contributor

@YulNaumenko YulNaumenko left a comment

Choose a reason for hiding this comment

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

LGTM

@mikecote
Copy link
Contributor Author

Runnings tests 42x to ensure no flakiness: https://kibana-ci.elastic.co/job/kibana+flaky-test-suite-runner/136/.

@mikecote
Copy link
Contributor Author

@mikecote
Copy link
Contributor Author

Running functional tests 42x to ensure no flakiness 🤞 https://kibana-ci.elastic.co/job/kibana+flaky-test-suite-runner/141/

@mikecote
Copy link
Contributor Author

@mikecote mikecote requested a review from YulNaumenko January 24, 2020 14:31
@mikecote
Copy link
Contributor Author

@elasticmachine merge upstream

@mikecote mikecote requested a review from gmmorris January 24, 2020 14:50
Copy link
Contributor

@gmmorris gmmorris left a comment

Choose a reason for hiding this comment

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

LGTM, just a couple of nits :)

Copy link
Contributor

@YulNaumenko YulNaumenko left a comment

Choose a reason for hiding this comment

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

LGTM

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

History

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

@mikecote mikecote merged commit ea3aa9c into elastic:master Jan 24, 2020
mikecote added a commit to mikecote/kibana that referenced this pull request Jan 24, 2020
* Fix skipped alerting UI tests

* Fix switch click to use new pageobject function

* Use .click function directly instead of find then click

* Merge state variables into one for alerts and alert types

* Fix flaky tests by fixing react code

* Could this be it?? The one thing missing that caused all this flakiness??

* Cleanup convertAlertsToTableItems function

* Remove I from interface names, fix disabled boolean logic

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
mikecote added a commit that referenced this pull request Jan 24, 2020
* Fix skipped alerting UI tests

* Fix switch click to use new pageobject function

* Use .click function directly instead of find then click

* Merge state variables into one for alerts and alert types

* Fix flaky tests by fixing react code

* Could this be it?? The one thing missing that caused all this flakiness??

* Cleanup convertAlertsToTableItems function

* Remove I from interface names, fix disabled boolean logic

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes review Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.7.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Functional tests for alerting UI
5 participants