wisemapping-frontend/packages/editor/cypress/e2e/renderAll.cy.js
Paulo Gustavo Veiga 75b29f7e5e Add load test.
2022-11-30 22:06:21 -08:00

30 lines
664 B
JavaScript

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: 20000 }).should('not.exist');
cy.matchImageSnapshot(`map-${mapId}`);
});
});
});