Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Share Modal ]fix flaky test #183679

Merged
merged 9 commits into from
May 23, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,6 @@ export default function ({
});
});

// FLAKY: https://github.com/elastic/kibana/issues/183566
describe.skip('Preserve Layout', () => {
before(async () => {
await loadEcommerce();
Expand All @@ -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');
Expand Down