Skip to content

Commit

Permalink
Update _indexpattern_without_timefield.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kertal authored Dec 20, 2021
1 parent e445747 commit 18a65d9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/functional/apps/discover/_indexpattern_without_timefield.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
5000,
async () => await PageObjects.timePicker.timePickerExists()
);

// Navigating back
await browser.goBack();
await PageObjects.discover.waitForDocTableLoadingComplete();
await retry.waitForWithTimeout(
'index pattern to have been switched back to "without-timefield"',
5000,
async () =>
(await testSubjects.getVisibleText('indexPattern-switch-link')) === 'without-timefield'
async () => {
// Navigating back
await browser.goBack();
await PageObjects.discover.waitForDocTableLoadingComplete();
return (await testSubjects.getVisibleText('indexPattern-switch-link')) === 'without-timefield'
}
);

await retry.waitForWithTimeout(
Expand Down

0 comments on commit 18a65d9

Please sign in to comment.