Skip to content

Commit

Permalink
[Dashboard/Reporting/Test] delete unusable large screenshot tests (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan authored Aug 16, 2023
1 parent 8cf9881 commit 732c87b
Showing 1 changed file with 1 addition and 60 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,73 +147,14 @@ export default function ({
});
});

describe('PNG Layout', () => {
describe('Preserve Layout', () => {
before(async () => {
await loadEcommerce();
});
after(async () => {
await unloadEcommerce();
});

// Failing: See https://github.com/elastic/kibana/issues/142484
it.skip('PNG file matches the baseline: large dashboard', async function () {
this.timeout(300000);

await PageObjects.common.navigateToApp('dashboard');
await PageObjects.dashboard.loadSavedDashboard('Large Dashboard');
await PageObjects.reporting.openPngReportingPanel();
await PageObjects.reporting.forceSharedItemsContainerSize({ width: 1405 });
await PageObjects.reporting.clickGenerateReportButton();
await PageObjects.reporting.removeForceSharedItemsContainerSize();

const url = await PageObjects.reporting.getReportURL(200000);
const reportData = await PageObjects.reporting.getRawPdfReportData(url);
const reportFileName = 'large_dashboard_preserve_layout';
const sessionReportPath = await PageObjects.reporting.writeSessionReport(
reportFileName,
'png',
reportData,
REPORTS_FOLDER
);
const baselinePath = PageObjects.reporting.getBaselineReportPath(
reportFileName,
'png',
REPORTS_FOLDER
);
const percentDiff = await png.compareAgainstBaseline(
sessionReportPath,
baselinePath,
REPORTS_FOLDER,
updateBaselines
);

expect(percentDiff).to.be.lessThan(0.03);
});
});

// FAILING ES PROMOTION: https://github.com/elastic/kibana/issues/157023
describe.skip('Preserve Layout', () => {
before(async () => {
await loadEcommerce();
});
after(async () => {
await unloadEcommerce();
});

it('downloads a PDF file: large dashboard', async function () {
this.timeout(300000);
await PageObjects.common.navigateToApp('dashboard');
await PageObjects.dashboard.loadSavedDashboard('Large Dashboard');
await PageObjects.reporting.openPdfReportingPanel();
await PageObjects.reporting.clickGenerateReportButton();

const url = await PageObjects.reporting.getReportURL(60000);
const res = await PageObjects.reporting.getResponse(url);

expect(res.status).to.equal(200);
expect(res.get('content-type')).to.equal('application/pdf');
});

it('downloads a PDF file with saved search given EuiDataGrid enabled', async function () {
await kibanaServer.uiSettings.update({ 'doc_table:legacy': false });
this.timeout(300000);
Expand Down

0 comments on commit 732c87b

Please sign in to comment.