chore: replacing percy with cypress-image-snapshots

This commit is contained in:
Knut Sveidqvist
2022-03-31 18:06:04 +02:00
parent b380d46c66
commit 3c0a2f0fd0
15 changed files with 279 additions and 22 deletions

View File

@@ -47,7 +47,11 @@ export const imgSnapshotTest = (graphStr, _options, api) => {
cy.visit(url);
cy.get('svg');
cy.percySnapshot();
// cy.percySnapshot();
// Default name to test title
const name = (options.name || cy.state('runnable').fullTitle()).replace(/\s+/g, '-');
cy.matchImageSnapshot(name);
};
export const renderGraph = (graphStr, options, api) => {