wisemapping-frontend/packages/editor/cypress/e2e/renderAll.cy.ts

35 lines
750 B
TypeScript
Raw Permalink Normal View History

2023-01-08 07:27:01 +01:00
/// <reference types="cypress" />
2023-01-08 06:10:13 +01:00
describe('Render all sample maps', () => {
2022-12-01 07:12:40 +01:00
[
'complex',
'emoji',
'emptyNodes',
'error-on-load',
'huge',
'huge2',
'icon-sample',
'img-support',
'order',
2022-12-16 04:32:22 +01:00
//'rel-error',
2022-12-01 07:12:40 +01:00
'sample1',
'sample2',
'sample3',
2023-02-14 07:51:51 +01:00
'welcome-prism',
2022-12-01 07:12:40 +01:00
'sample4',
'sample5',
'sample6',
2023-01-02 04:54:16 +01:00
'connection-style',
2022-12-01 07:12:40 +01:00
'sample8',
'welcome',
].forEach((mapId) => {
it(`Render map => ${mapId}`, () => {
cy.visit(`/viewmode.html?id=${mapId}`);
2023-01-08 07:27:01 +01:00
cy.waitEditorLoaded();
2022-12-01 07:12:40 +01:00
cy.get('svg > path').should('be.visible');
2022-12-16 04:32:22 +01:00
cy.get('[aria-label="vortex-loading"]', { timeout: 120000 }).should('not.exist');
2022-12-01 07:12:40 +01:00
cy.matchImageSnapshot(`map-${mapId}`);
});
});
});