Skip to content

Commit

Permalink
address test flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
legrego committed Apr 3, 2020
1 parent 9de6355 commit aacb8ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x-pack/test/functional/services/uptime/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ import { FtrProviderContext } from '../../ftr_provider_context';
export function UptimeNavigationProvider({ getService, getPageObjects }: FtrProviderContext) {
const retry = getService('retry');
const testSubjects = getService('testSubjects');
const PageObjects = getPageObjects(['common']);
const PageObjects = getPageObjects(['common', 'header']);

const goToUptimeRoot = async () => {
await retry.tryForTime(30 * 1000, async () => {
await PageObjects.common.navigateToApp('uptime');
await PageObjects.header.waitUntilLoadingHasFinished();
await testSubjects.existOrFail('uptimeOverviewPage', { timeout: 2000 });
});
};
Expand Down

0 comments on commit aacb8ad

Please sign in to comment.