-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[8.6] [Cases] Fix flaky tests in the create case form (#145211) #145446
[8.6] [Cases] Fix flaky tests in the create case form (#145211) #145446
Conversation
## Summary This PR fixes a number of issues with the same error: `TestingLibraryElementError: Unable to find an element by: [data-test-subj="caseTitle"]`. The PR: - Clears unnecessary `act` - Wait for the form to render before trying to fill the form - Wait for the component to update all states to eliminate warnings - Fill tags when necessary to improve tests execution time - Replace `userEvent.type` with `userEvent.aste` when possible to improve execution time - Add `skipPointerEventsCheck: true` when necessary I run the test file 100 times locally without any errors. Fixes: elastic#142287, elastic#142288, elastic#142285, elastic#142286, elastic#142284, elastic#142283, elastic#142282, elastic#142281, elastic#143407, elastic#143406, elastic#143405, elastic#143408, elastic#143403 ### Checklist Delete any items that are not applicable to this PR. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) (cherry picked from commit 6936644)
💚 Build Succeeded
Metrics [docs]Public APIs missing comments
Any counts in public APIs
Public APIs missing exports
Unknown metric groupsAdoption-tracked APIs
Adoption-tracked APIs that are not used anywhere
API count
ESLint disabled in files
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
Unreferenced deprecated APIs
To update your PR or re-run it, just comment with: cc @cnasikas |
Backport
This will backport the following commits from
main
to8.6
:Questions ?
Please refer to the Backport tool documentation