wisemapping-frontend/packages/web2d/cypress/integration/playground.test.js

13 lines
322 B
JavaScript
Raw Normal View History

const BASE_URL = 'http://localhost:8080';
context('Playground', () => {
it('every test page should match its snapshot', () => {
cy.visit(BASE_URL);
2021-12-14 18:06:09 +01:00
cy.get('a').forEach(($el) => {
const url = `${BASE_URL}${$el.attr('href')}`;
cy.visit(url);
cy.matchImageSnapshot($el.text());
});
});
});