Skip to content

Commit de1b09a

Browse files
authored
[9.0] [Console] Fix test for opening documentation (#218318) (#218552)
# Backport This will backport the following commits from `main` to `9.0`: - [[Console] Fix test for opening documentation (#218318)](#218318) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Elena Stoeva","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-04-17T09:28:01Z","message":"[Console] Fix test for opening documentation (#218318)\n\nFixes https://github.com/elastic/kibana/issues/218255\n\n## Summary\n\nThis PR fixes the Console tests for opening documentation which were\nfailing because the doc link\nhttps://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html\nis now redirecting to\nhttps://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search.","sha":"5ce6ce575f25fa93a89234e1a5431627209d989b","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Console","Team:Kibana Management","release_note:skip","backport:prev-minor","v9.1.0","v9.0.1"],"title":"[Console] Fix test for opening documentation","number":218318,"url":"https://github.com/elastic/kibana/pull/218318","mergeCommit":{"message":"[Console] Fix test for opening documentation (#218318)\n\nFixes https://github.com/elastic/kibana/issues/218255\n\n## Summary\n\nThis PR fixes the Console tests for opening documentation which were\nfailing because the doc link\nhttps://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html\nis now redirecting to\nhttps://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search.","sha":"5ce6ce575f25fa93a89234e1a5431627209d989b"}},"sourceBranch":"main","suggestedTargetBranches":["9.0"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/218318","number":218318,"mergeCommit":{"message":"[Console] Fix test for opening documentation (#218318)\n\nFixes https://github.com/elastic/kibana/issues/218255\n\n## Summary\n\nThis PR fixes the Console tests for opening documentation which were\nfailing because the doc link\nhttps://www.elastic.co/guide/en/elasticsearch/reference/current/search-search.html\nis now redirecting to\nhttps://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search.","sha":"5ce6ce575f25fa93a89234e1a5431627209d989b"}},{"branch":"9.0","label":"v9.0.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
1 parent 74a6d1b commit de1b09a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/functional/apps/console/_misc_console_behavior.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
1818
const browser = getService('browser');
1919
const PageObjects = getPageObjects(['common', 'console', 'header']);
2020

21-
// Failing: See https://github.com/elastic/kibana/issues/213784
22-
describe.skip('misc console behavior', function testMiscConsoleBehavior() {
21+
describe('misc console behavior', function testMiscConsoleBehavior() {
2322
before(async () => {
2423
await browser.setWindowSize(1200, 800);
2524
await PageObjects.common.navigateToApp('console');
@@ -128,7 +127,9 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
128127
// Retry until the documentation is loaded
129128
await retry.try(async () => {
130129
const url = await browser.getCurrentUrl();
131-
expect(url).to.contain('search-search.html');
130+
// The url that is open is https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html
131+
// but it redirects to https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search
132+
expect(url).to.contain('operation-search');
132133
});
133134
});
134135
});

0 commit comments

Comments
 (0)