[Share Modal ]fix flaky test (#183679)

## Summary

Closes https://github.com/elastic/kibana/issues/183566
This commit is contained in:
Rachel Shen 2024-05-23 01:38:47 -06:00 committed by GitHub
parent 4ccd47d90e
commit 0941a7daf0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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');