-
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 status page functional test #100146
Fix status page functional test #100146
Conversation
return await retry.try(async () => { | ||
log.debug(`expectStatusPage()`); | ||
await find.byCssSelector('[data-test-subj="statusPageRoot"]', 20000); | ||
const url = await browser.getCurrentUrl(); | ||
expect(url).to.contain(`/status`); | ||
}); | ||
await find.byCssSelector('[data-test-subj="statusPageRoot"]', 20000); |
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.
navigateToApp
validates the url correctness, so we just need to check UI element to be present. Find service will search for element for 20 sec, should be good enough.
const find = getService('find'); | ||
const deployment = getService('deployment'); |
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.
This test won't work on Cloud: user can't navigate to /status
page after log out. So I think we can safely remove deployment service usage.
@@ -203,7 +203,6 @@ | |||
/packages/kbn-legacy-logging/ @elastic/kibana-core | |||
/packages/kbn-crypto/ @elastic/kibana-core | |||
/packages/kbn-http-tools/ @elastic/kibana-core | |||
/src/plugins/status_page/ @elastic/kibana-core |
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.
path no longer exists
💚 Build SucceededMetrics [docs]Unknown metric groupsReferences to deprecated APIs
To update your PR or re-run it, just comment with: |
💔 Backport failed
To backport manually run: |
# Conflicts: # .github/CODEOWNERS
# Conflicts: # .github/CODEOWNERS
# Conflicts: # .github/CODEOWNERS
Summary
Re-enabling status page test by changing navigation method. If it will fail, we will get a clear message but not timeout error as right now
closes #50448
Flaky test runner
https://kibana-ci.elastic.co/job/kibana+flaky-test-suite-runner/1548/ (30x - passed, 1 non-related failure in Spaces app)