Skip to content

Commit

Permalink
[Uptime] Ping redirects - add retry logic (elastic#117363)
Browse files Browse the repository at this point in the history
* add retry logic and focus test

* unfocus tests

Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
dominiqueclarke and kibanamachine committed Nov 9, 2021
1 parent a38ea90 commit 14c5ceb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 1 addition & 2 deletions x-pack/test/functional/apps/uptime/ping_redirects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {

const monitor = () => uptime.monitor;

// FLAKY: https://github.com/elastic/kibana/issues/84992
describe.skip('Ping redirects', () => {
describe('Ping redirects', () => {
const start = '~ 15 minutes ago';
const end = 'now';

Expand Down
4 changes: 3 additions & 1 deletion x-pack/test/functional/services/uptime/navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ export function UptimeNavigationProvider({ getService, getPageObjects }: FtrProv
goToMonitor: async (monitorId: string) => {
// only go to monitor page if not already there
if (!(await testSubjects.exists('uptimeMonitorPage', { timeout: 0 }))) {
await testSubjects.click(`monitor-page-link-${monitorId}`);
return retry.try(async () => {
await testSubjects.click(`monitor-page-link-${monitorId}`);
});
await testSubjects.existOrFail('uptimeMonitorPage', {
timeout: 30000,
});
Expand Down

0 comments on commit 14c5ceb

Please sign in to comment.