From 0941a7daf086abd236345c4ccfc2907f83d9136c Mon Sep 17 00:00:00 2001 From: Rachel Shen Date: Thu, 23 May 2024 01:38:47 -0600 Subject: [PATCH] [Share Modal ]fix flaky test (#183679) ## Summary Closes https://github.com/elastic/kibana/issues/183566 --- .../functional/apps/dashboard/group3/reporting/screenshots.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x-pack/test/functional/apps/dashboard/group3/reporting/screenshots.ts b/x-pack/test/functional/apps/dashboard/group3/reporting/screenshots.ts index d7bd90c5e74d6..0a09c785d64a4 100644 --- a/x-pack/test/functional/apps/dashboard/group3/reporting/screenshots.ts +++ b/x-pack/test/functional/apps/dashboard/group3/reporting/screenshots.ts @@ -155,7 +155,6 @@ export default function ({ }); }); - // FLAKY: https://github.com/elastic/kibana/issues/183566 describe.skip('Preserve Layout', () => { before(async () => { await loadEcommerce(); @@ -172,10 +171,10 @@ export default function ({ await PageObjects.dashboard.loadSavedDashboard('Ecom Dashboard'); await PageObjects.reporting.openExportTab(); await PageObjects.reporting.clickGenerateReportButton(); - await PageObjects.share.closeShareModal(); const url = await PageObjects.reporting.getReportURL(60000); const res = await PageObjects.reporting.getResponse(url ?? ''); + await PageObjects.share.closeShareModal(); expect(res.status).to.equal(200); expect(res.get('content-type')).to.equal('application/pdf');