-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Conversation
Pinging @elastic/kibana-alerting-services (Team:Alerting Services) |
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
Runnings tests 42x to ensure no flakiness: https://kibana-ci.elastic.co/job/kibana+flaky-test-suite-runner/136/. |
Another 42x run https://kibana-ci.elastic.co/job/kibana+flaky-test-suite-runner/139/. |
Running functional tests 42x to ensure no flakiness 🤞 https://kibana-ci.elastic.co/job/kibana+flaky-test-suite-runner/141/ |
@elasticmachine merge upstream |
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, just a couple of nits :)
...ggers_actions_ui/np_ready/public/application/sections/alerts_list/components/alerts_list.tsx
Outdated
Show resolved
Hide resolved
...ns_ui/np_ready/public/application/sections/alerts_list/components/collapsed_item_actions.tsx
Outdated
Show resolved
Hide resolved
...ggers_actions_ui/np_ready/public/application/sections/alerts_list/components/alerts_list.tsx
Outdated
Show resolved
Hide resolved
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
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
* 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>
* 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>
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:
.click
directly instead of.find
then.click
(9e6f2c2)await
that caused tests to be flaky (aee22a5)Resolves #49830 now that we will have a full suite running.