mirror of
https://github.com/elastic/kibana.git
synced 2025-06-27 10:40:07 -04:00
[Console] Fix test for opening docs with shortcut (#225276)
Fixes #218255 and #213784 ## Summary This PR fixes flaky test in Console responsible for opening documentation with keyboard shortcut by checking if the opened tab contains `www.elastic.co/docs`.
This commit is contained in:
parent
58b8c7aec0
commit
4b925523bf
1 changed files with 2 additions and 3 deletions
|
@ -113,8 +113,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
expect(await PageObjects.console.getCurrentLineNumber()).to.be(4);
|
||||
});
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/218255
|
||||
describe.skip('open documentation', () => {
|
||||
describe('open documentation', () => {
|
||||
const requests = ['GET _search', 'GET test_index/_search', 'GET /_search'];
|
||||
requests.forEach((request) => {
|
||||
it('should open documentation when Ctrl+/ is pressed', async () => {
|
||||
|
@ -131,7 +130,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
const url = await browser.getCurrentUrl();
|
||||
// The url that is open is https://www.elastic.co/guide/en/elasticsearch/reference/master/search-search.html
|
||||
// but it redirects to https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-search
|
||||
expect(url).to.contain('operation-search');
|
||||
expect(url).to.contain('www.elastic.co/docs');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue