mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
* [Discover] Add a retry in a value suggestion non timebased test * Dismiss popover before Discover even loads * Set local storage value in navigateToApp Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
006840ed39
commit
19d2071d75
2 changed files with 12 additions and 7 deletions
|
@ -279,6 +279,9 @@ export class CommonPageObject extends FtrService {
|
|||
this.log.debug(msg);
|
||||
throw new Error(msg);
|
||||
}
|
||||
if (appName === 'discover') {
|
||||
await this.browser.setLocalStorageItem('data.autocompleteFtuePopover', 'true');
|
||||
}
|
||||
return currentUrl;
|
||||
});
|
||||
|
||||
|
|
|
@ -11,10 +11,10 @@ import { FtrProviderContext } from '../../ftr_provider_context';
|
|||
export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
||||
const esArchiver = getService('esArchiver');
|
||||
const queryBar = getService('queryBar');
|
||||
const PageObjects = getPageObjects(['common', 'settings', 'context']);
|
||||
const retry = getService('retry');
|
||||
const PageObjects = getPageObjects(['common', 'settings', 'context', 'header']);
|
||||
|
||||
// FLAKY: https://github.com/elastic/kibana/issues/114745
|
||||
describe.skip('value suggestions non time based', function describeIndexTests() {
|
||||
describe('value suggestions non time based', function describeIndexTests() {
|
||||
before(async function () {
|
||||
await esArchiver.loadIfNeeded(
|
||||
'test/functional/fixtures/es_archiver/index_pattern_without_timefield'
|
||||
|
@ -29,11 +29,13 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
|
|||
|
||||
it('shows all autosuggest options for a filter in discover context app', async () => {
|
||||
await PageObjects.common.navigateToApp('discover');
|
||||
|
||||
await queryBar.setQuery('type.keyword : ');
|
||||
const suggestions = await queryBar.getSuggestions();
|
||||
expect(suggestions.length).to.be(1);
|
||||
expect(suggestions).to.contain('"apache"');
|
||||
|
||||
await retry.try(async () => {
|
||||
const suggestions = await queryBar.getSuggestions();
|
||||
expect(suggestions.length).to.be(1);
|
||||
expect(suggestions).to.contain('"apache"');
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue