Skip to content
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

Merged
merged 1 commit into from
May 14, 2021

Conversation

dmlemeshko
Copy link
Member

@dmlemeshko dmlemeshko commented May 14, 2021

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

Comment on lines -32 to +19
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);
Copy link
Member Author

@dmlemeshko dmlemeshko May 14, 2021

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');
Copy link
Member Author

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
Copy link
Member Author

@dmlemeshko dmlemeshko May 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

path no longer exists

@dmlemeshko dmlemeshko marked this pull request as ready for review May 14, 2021 19:06
@dmlemeshko dmlemeshko added the release_note:skip Skip the PR/issue when compiling release notes label May 14, 2021
@dmlemeshko dmlemeshko requested review from a team May 14, 2021 19:08
@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

References to deprecated APIs

id before after diff
canvas 29 25 -4
crossClusterReplication 8 6 -2
fleet 4 2 -2
globalSearch 4 2 -2
indexManagement 12 7 -5
infra 5 3 -2
licensing 18 15 -3
monitoring 109 56 -53
total -73

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@dmlemeshko dmlemeshko added the auto-backport Deprecated - use backport:version if exact versions are needed label May 14, 2021
@dmlemeshko dmlemeshko merged commit ca2930c into elastic:master May 14, 2021
@kibanamachine
Copy link
Contributor

💔 Backport failed

Status Branch Result
7.12 Commit could not be cherrypicked due to conflicts
7.13 Commit could not be cherrypicked due to conflicts
7.x Commit could not be cherrypicked due to conflicts

To backport manually run:
node scripts/backport --pr 100146

dmlemeshko added a commit to dmlemeshko/kibana that referenced this pull request May 14, 2021
dmlemeshko added a commit to dmlemeshko/kibana that referenced this pull request May 14, 2021
dmlemeshko added a commit to dmlemeshko/kibana that referenced this pull request May 14, 2021
dmlemeshko added a commit that referenced this pull request May 15, 2021
dmlemeshko added a commit that referenced this pull request May 15, 2021
dmlemeshko added a commit that referenced this pull request May 15, 2021
yctercero pushed a commit to yctercero/kibana that referenced this pull request May 25, 2021
@dmlemeshko dmlemeshko deleted the fix-status-page-test branch January 31, 2022 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes test_xpack_functional v7.12.2 v7.13.1 v7.14.0 v8.0.0
Projects
None yet
3 participants