-
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
[Cases] Wait for the configuration page to appear before starting the tests #168465
Conversation
@elasticmachine merge upstream |
x-pack/test_serverless/functional/test_suites/observability/cases/configure.ts
Show resolved
Hide resolved
Pinging @elastic/response-ops (Team:ResponseOps) |
Pinging @elastic/response-ops-cases (Feature:Cases) |
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
@elasticmachine merge upstream |
@@ -26,8 +26,18 @@ export default ({ getPageObject, getService }: FtrProviderContext) => { | |||
await svlCommonPage.login(); | |||
await svlSecNavigation.navigateToLandingPage(); | |||
await testSubjects.click('solutionSideNavItemLink-cases'); | |||
await header.waitUntilLoadingHasFinished(); | |||
|
|||
await retry.waitFor('configure-case-button exist', async () => { |
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.
maybe I'm confused but isn't this the same as
await retry.waitFor('configure-case-button exist', testSubjects.exists('configure-case-button'));
?
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.
Probably yes 🙂. I never thought about it tbh. I will keep it in mind for the next time. Thanks!
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]
History
To update your PR or re-run it, just comment with: |
… tests (elastic#168465) Co-authored-by: Kibana Machine <[email protected]>
Summary
This PR intends (I hope for the last time 😄 ) to fix the tests on the configuration page. Seldomly, the navigation is not complete, and the tests start running before navigating to the configuration page.
Fixes: #166469, #167869
Flaky test runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3463, https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3484, https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3496
Checklist
Delete any items that are not applicable to this PR.
For maintainers