mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
[Discover] Fix customization flaky test (#180940)
- Closes https://github.com/elastic/kibana/issues/177401 25x https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5695
This commit is contained in:
parent
61841294b6
commit
d769242c37
2 changed files with 20 additions and 14 deletions
|
@ -20,6 +20,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
|
|||
const testSubjects = getService('testSubjects');
|
||||
const browser = getService('browser');
|
||||
const dataGrid = getService('dataGrid');
|
||||
const retry = getService('retry');
|
||||
const defaultSettings = { defaultIndex: 'logstash-*' };
|
||||
|
||||
describe('Customizations', () => {
|
||||
|
@ -61,13 +62,15 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
|
|||
await testSubjects.click('logsViewSelectorButton');
|
||||
await testSubjects.click('logsViewSelectorOption-ASavedSearch');
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
const { title, description } = await PageObjects.common.getSharedItemTitleAndDescription();
|
||||
const expected = {
|
||||
title: 'A Saved Search',
|
||||
description: 'A Saved Search Description',
|
||||
};
|
||||
expect(title).to.eql(expected.title);
|
||||
expect(description).to.eql(expected.description);
|
||||
await retry.try(async () => {
|
||||
const { title, description } = await PageObjects.common.getSharedItemTitleAndDescription();
|
||||
const expected = {
|
||||
title: 'A Saved Search',
|
||||
description: 'A Saved Search Description',
|
||||
};
|
||||
expect(title).to.eql(expected.title);
|
||||
expect(description).to.eql(expected.description);
|
||||
});
|
||||
});
|
||||
|
||||
it('Search bar Prepend Filters exists and should apply filter properly', async () => {
|
||||
|
|
|
@ -18,6 +18,7 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
|
|||
const testSubjects = getService('testSubjects');
|
||||
const browser = getService('browser');
|
||||
const dataGrid = getService('dataGrid');
|
||||
const retry = getService('retry');
|
||||
const defaultSettings = { defaultIndex: 'logstash-*' };
|
||||
|
||||
describe('Customizations', () => {
|
||||
|
@ -60,13 +61,15 @@ export default ({ getService, getPageObjects }: FtrProviderContext) => {
|
|||
await testSubjects.click('logsViewSelectorButton');
|
||||
await testSubjects.click('logsViewSelectorOption-ASavedSearch');
|
||||
await PageObjects.header.waitUntilLoadingHasFinished();
|
||||
const { title, description } = await PageObjects.common.getSharedItemTitleAndDescription();
|
||||
const expected = {
|
||||
title: 'A Saved Search',
|
||||
description: 'A Saved Search Description',
|
||||
};
|
||||
expect(title).to.eql(expected.title);
|
||||
expect(description).to.eql(expected.description);
|
||||
await retry.try(async () => {
|
||||
const { title, description } = await PageObjects.common.getSharedItemTitleAndDescription();
|
||||
const expected = {
|
||||
title: 'A Saved Search',
|
||||
description: 'A Saved Search Description',
|
||||
};
|
||||
expect(title).to.eql(expected.title);
|
||||
expect(description).to.eql(expected.description);
|
||||
});
|
||||
});
|
||||
|
||||
it('Search bar Prepend Filters exists and should apply filter properly', async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue