-
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
[SecuritySolution] Fix inspect_button cypress #158543
Conversation
Pinging @elastic/security-threat-hunting (Team:Threat Hunting) |
Pinging @elastic/security-solution (Team: SecuritySolution) |
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!
// Create and select data view | ||
postDataView(DATA_VIEW); | ||
visit(HOSTS_URL); | ||
selectDataView(DATA_VIEW); |
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.
Was this part flaky? I wrote it to assert that the inspect modal shows the selected data view. After this PR, it will use the security index pattern. It is testing something different but I guess it isn't a problem.
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.
If it is testing something different it is a problem because we are changing the coverage. cc @machadoum @angorayc
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.
When I tested locally with slow internet, postDataView
had some problems few times, so I removed it and replaced it with es archiver. But I think I should leave selectDataView
there, putting it back now.
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!
@MadameSheema ![]() I never had postDataView working when running the test locally, it always return 400. I'd like to update the task
I'm not sure why this is not an issue when running CI. |
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.
Thanks! :)
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @angorayc |
Summary
#153765
Inspect button cypress was found flaky sometimes. I was able to reproduce the scenario when the tests failed by setting network throttling to slow 3G with Chrome.
Here's what I add to reduce the flakyness:
welcome icon
page into consideration when loading the page. Check the welcome icon has shown and disappeared before checking the loading indicator in the header. This should buy us more time to avoid timeout in comparison to checking the loading indicator straight away.Replace creating data view via api with loading esArchiver auditbeat data. I assume preload the data could reduce the uncertainty of fetching api under slow internet speed, and therefore reduce the possible failure during setting up the tests.Update postDataView task: [SecuritySolution] Fix inspect_button cypress #158543 (comment)