wisemapping-frontend/packages/mindplot/cypress/e2e/topic.test.js

37 lines
1.3 KiB
JavaScript
Raw Permalink Normal View History

2023-02-10 03:51:52 +01:00
context('Topic suite', () => {
it('topic border', () => {
cy.visit('/iframe.html?args=&id=mindplot-topic--border-style&viewMode=story');
cy.matchImageSnapshot('topic-border');
});
it('topic style', () => {
cy.visit('/iframe.html?args=&id=mindplot-topic--font-style&viewMode=story');
cy.matchImageSnapshot('topic-style');
});
it('topic color', () => {
cy.visit('/iframe.html?args=&id=mindplot-topic--background-color&viewMode=story');
cy.matchImageSnapshot('topic-color');
});
it('topic note', () => {
cy.visit('/iframe.html?args=&id=mindplot-topic--note-feature&viewMode=story');
cy.matchImageSnapshot('topic-note');
});
it('topic link feature', () => {
cy.visit('/iframe.html?args=&id=mindplot-topic--link-feature&viewMode=story');
cy.matchImageSnapshot('topic-link-feature');
});
it('topic icon feature', () => {
cy.visit('/iframe.html?args=&id=mindplot-topic--icon-feature&viewMode=story');
cy.matchImageSnapshot('topic-icon-feature');
});
it('topic shape line', () => {
cy.visit('/iframe.html?args=&id=mindplot-topic--shape-line&viewMode=story');
cy.matchImageSnapshot('topic-shape-line');
});
it('topic ellipse line', () => {
cy.visit('/iframe.html?args=&id=mindplot-topic--shape-ellipse&viewMode=story');
cy.matchImageSnapshot('topic-shape-ellipse');
});
});