wisemapping-frontend/packages/editor/cypress/e2e/renderAll.cy.ts
Paulo Gustavo Veiga 3a505224f6 Add test on push
2022-12-04 21:47:16 -08:00

32 lines
657 B
TypeScript

context('Render all sample maps', () => {
[
'complex',
'emoji',
'emptyNodes',
'error-on-load',
'huge',
'huge2',
'icon-sample',
'img-support',
'order',
'rel-error',
'sample1',
'sample2',
'sample3',
'sample4',
'sample5',
'sample6',
'sample8',
'welcome',
].forEach((mapId) => {
it(`Render map => ${mapId}`, () => {
cy.visit(`/viewmode.html?id=${mapId}`);
cy.reload();
cy.get('svg > path').should('be.visible');
cy.get('[aria-label="vortex-loading"]', { timeout: 40000 }).should('not.exist');
cy.matchImageSnapshot(`map-${mapId}`);
});
});
});