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

40 lines
1.5 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');
});
2023-02-17 22:25:57 +01:00
it('topic none line', () => {
cy.visit('/iframe.html?args=&id=mindplot-topic--shape-none&viewMode=story');
cy.matchImageSnapshot('topic-shape-none');
});
});