Chore: Remove compareScreenshot + blink-diff dependency from core (#77920)

* remove compareScreenshot + blink-diff dependency from core

* missed one...
This commit is contained in:
Ashley Harrison
2023-11-09 13:18:12 +00:00
committed by GitHub
parent dff971672f
commit 6a5de14ed1
8 changed files with 0 additions and 84 deletions
-15
View File
@@ -21,9 +21,7 @@ interface ConfigurePanelDefault {
route: string | RegExp;
};
dashboardUid: string;
matchScreenshot: boolean;
saveDashboard: boolean;
screenshotName: string;
visitDashboardAtStart: boolean; // @todo remove when possible
}
@@ -60,9 +58,7 @@ export const configurePanel = (config: PartialAddPanelConfig | PartialEditPanelC
route: '/api/ds/query',
},
dashboardUid: lastAddedDashboardUid,
matchScreenshot: false,
saveDashboard: true,
screenshotName: 'panel-visualization',
visitDashboardAtStart: true,
...config,
};
@@ -72,10 +68,8 @@ export const configurePanel = (config: PartialAddPanelConfig | PartialEditPanelC
dashboardUid,
dataSourceName,
isEdit,
matchScreenshot,
panelTitle,
queriesForm,
screenshotName,
timeRange,
visitDashboardAtStart,
visualizationName,
@@ -157,15 +151,6 @@ export const configurePanel = (config: PartialAddPanelConfig | PartialEditPanelC
// Wait for RxJS
cy.wait(timeout ?? Cypress.config().defaultCommandTimeout);
if (matchScreenshot) {
let visualization;
visualization = e2e.components.Panels.Panel.containerByTitle(panelTitle).find('.panel-content');
visualization.scrollIntoView().screenshot(screenshotName);
cy.compareScreenshots(screenshotName);
}
// @todo remove `wrap` when possible
return cy.wrap({ config: fullConfig }, { log: false });
});