Skip to content

Commit

Permalink
[Uptime] Improve cert flaky test (#65458)
Browse files Browse the repository at this point in the history
  • Loading branch information
shahzad31 committed May 7, 2020
1 parent c4ab557 commit a80e749
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion x-pack/test/functional/apps/uptime/certificates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
});

it('can navigate to cert page', async () => {
await uptimeService.navigation.refreshApp();
await uptimeService.cert.hasViewCertButton();
await uptimeService.navigation.goToCertificates();
});
Expand Down
4 changes: 2 additions & 2 deletions x-pack/test/functional/services/uptime/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ export function UptimeNavigationProvider({ getService, getPageObjects }: FtrProv
},

goToCertificates: async () => {
await testSubjects.click('uptimeCertificatesLink');
return retry.tryForTime(30 * 1000, async () => {
await testSubjects.click('uptimeCertificatesLink', 10000);
return retry.tryForTime(60 * 1000, async () => {
await testSubjects.existOrFail('uptimeCertificatesPage');
});
},
Expand Down

0 comments on commit a80e749

Please sign in to comment.