[Lens] Stabilize filter popover (#69519)

* stabilize filter popovwer

* remove text exclusion
This commit is contained in:
Joe Reuter 2020-06-24 18:08:27 +02:00 committed by GitHub
parent 9e00da35b8
commit b708b2a953
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,6 +23,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
const dashboardAddPanel = getService('dashboardAddPanel');
const elasticChart = getService('elasticChart');
const browser = getService('browser');
const retry = getService('retry');
const testSubjects = getService('testSubjects');
const filterBar = getService('filterBar');
const listingTable = getService('listingTable');
@ -93,7 +94,11 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
await dashboardAddPanel.closeAddPanel();
await PageObjects.lens.goToTimeRange();
await clickOnBarHistogram();
await testSubjects.click('applyFiltersPopoverButton');
await retry.try(async () => {
await testSubjects.click('applyFiltersPopoverButton');
await testSubjects.missingOrFail('applyFiltersPopoverButton');
});
await assertExpectedChart();
await assertExpectedTimerange();