wisemapping-frontend/packages/web2d/cypress/integration/playground.test.js
Matias Arriola b804403c42 Merged in feature/tests-and-docs (pull request #9)
Improve testing flow and docs

* update snapshots

* update snapshots

* update snapshots

* Add docker run instructions

* Hide image snapshot execution behind an env flag

* Simplify package.json scripts and improve docs

* Merge 'origin/develop' into feature/tests-and-docs

* Update snapshots

* Add wait to container test

* Update snapshot


Approved-by: Paulo Veiga
2021-12-17 02:13:54 +00:00

53 lines
1.3 KiB
JavaScript

context('Playground', () => {
describe('snapshots', () => {
it('Arrow', () => {
cy.visit('/arrow.html');
cy.matchImageSnapshot('Arrow');
});
it('Curved Line', () => {
cy.visit('/curvedLine.html');
cy.matchImageSnapshot('Curved Line');
});
it('Events', () => {
cy.visit('/events.html');
cy.matchImageSnapshot('Events');
});
it('Font', () => {
cy.visit('/font.html');
cy.matchImageSnapshot('Font');
});
it('Group', () => {
cy.visit('/group.html');
cy.matchImageSnapshot('Group');
});
it('Line', () => {
cy.visit('/line.html');
cy.matchImageSnapshot('Line');
});
it('Poly Line', () => {
cy.visit('/polyLine.html');
cy.matchImageSnapshot('Poly Line');
});
it('Prototype', () => {
cy.visit('/prototype.html');
cy.matchImageSnapshot('Prototype');
});
it('Rect', () => {
cy.visit('/rect.html');
cy.matchImageSnapshot('Rect');
});
it('Shapes', () => {
cy.visit('/shapes.html');
cy.matchImageSnapshot('Shapes');
});
it('Text', () => {
cy.visit('/text.html');
cy.matchImageSnapshot('Text');
});
it('Workspace', () => {
cy.visit('/workspace.html');
cy.matchImageSnapshot('Workspace');
});
});
});