wisemapping-frontend/packages/editor/cypress/e2e/topicIcon.cy.ts
Paulo Gustavo Veiga 20973246a8 Add icon to topic.
2023-01-15 00:15:21 -08:00

21 lines
471 B
TypeScript

/// <reference types="cypress" />
describe('Topic Icon Suite', () => {
beforeEach(() => {
cy.visit('/editor.html');
cy.waitEditorLoaded();
});
it('Open panel', () => {
cy.onClickToolbarButton('Add Icon');
cy.matchImageSnapshot('icons-pannel');
});
it('Add new icon', () => {
cy.focusTopicById(3);
cy.onClickToolbarButton('Add Icon');
cy.get('[aria-label="grinning"]').click();
cy.matchImageSnapshot('add-new-icon');
});
});