-
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
[AO] - Add functional tests for the new Rules page #129349
[AO] - Add functional tests for the new Rules page #129349
Conversation
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
I was going to run these tests locally as part of my review but I'm not sure how to run them. There's usually a config file for the tests but I don't see one in UPDATE: I think I found it |
When I ran the tests locally Kibana logged a bunch of 403's like;
And then crashed;
Seems to be from this point of the tests;
|
I ran again but this time ran all together with; This test failed, but the screenshot shows 2 rules both enabled.
I ran the test again and it passed. I ran again with
|
I went ahead and started a flaky test runner job here; https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/632 |
I did a bit more debugging on the failure. in rules_page.ts I added this console.log line to output the euiTableRow innerHTML;
I captured one row of that output. Then I added a 5s sleep in the test before finding all the table rows;
I captured that first row again and diff'd them. The one on the right is the original without the sleep and when the test fails. In that html I can see Also an Also In the left html after the sleep, we see |
x-pack/test/observability_functional/apps/observability/alerts/rules_page.ts
Show resolved
Hide resolved
@LeeDr Thanks for the effort and the time you dedicate to this! I had to put the steps on how to run the tests locally.
|
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 - Passes locally for me now and I also ran 50 iterations on the flaky test runner and they all passed
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @fkanout |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
@fkanout I would remove |
Friendly reminder: Looks like this PR hasn’t been backported yet. |
1 similar comment
Friendly reminder: Looks like this PR hasn’t been backported yet. |
Summary
If fixes #129605 by adding functional tests for the newly created Rules pages.
Checklist