Change default icon
@ -13,6 +13,8 @@ context('Edit Topic', () => {
|
|||||||
it('Change Main Topic Text', () => {
|
it('Change Main Topic Text', () => {
|
||||||
cy.get('body').type('New Title Main Topic{enter}');
|
cy.get('body').type('New Title Main Topic{enter}');
|
||||||
cy.get('[test-id=1] > text > tspan').should('have.text', 'New Title Main Topic');
|
cy.get('[test-id=1] > text > tspan').should('have.text', 'New Title Main Topic');
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('changeMainTopicText');
|
cy.matchImageSnapshot('changeMainTopicText');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -40,6 +42,8 @@ context('Edit Topic', () => {
|
|||||||
|
|
||||||
cy.get('@bigger').eq(1).click();
|
cy.get('@bigger').eq(1).click();
|
||||||
cy.get('[test-id=1] > text').invoke('attr', 'font-size').should('eq', '20.2');
|
cy.get('[test-id=1] > text').invoke('attr', 'font-size').should('eq', '20.2');
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('changeFontSizeHuge');
|
cy.matchImageSnapshot('changeFontSizeHuge');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -49,6 +53,7 @@ context('Edit Topic', () => {
|
|||||||
|
|
||||||
cy.get('[test-id=1] > text').invoke('attr', 'font-style').should('eq', 'italic');
|
cy.get('[test-id=1] > text').invoke('attr', 'font-style').should('eq', 'italic');
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('changeFontItalic');
|
cy.matchImageSnapshot('changeFontItalic');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -58,6 +63,7 @@ context('Edit Topic', () => {
|
|||||||
|
|
||||||
cy.get('[test-id=1] > text').invoke('attr', 'font-weight').should('eq', 'normal');
|
cy.get('[test-id=1] > text').invoke('attr', 'font-weight').should('eq', 'normal');
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('changeFontBold');
|
cy.matchImageSnapshot('changeFontBold');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -68,6 +74,7 @@ context('Edit Topic', () => {
|
|||||||
|
|
||||||
cy.get('[test-id=1] > text').invoke('attr', 'fill').should('eq', '#cc0000');
|
cy.get('[test-id=1] > text').invoke('attr', 'fill').should('eq', '#cc0000');
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('changeFontColor');
|
cy.matchImageSnapshot('changeFontColor');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -12,6 +12,7 @@ context('Node manager', () => {
|
|||||||
|
|
||||||
cy.get('[test-id=36] > text > tspan').should('exist');
|
cy.get('[test-id=36] > text > tspan').should('exist');
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('editor-shortcut-edit');
|
cy.matchImageSnapshot('editor-shortcut-edit');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -23,6 +24,7 @@ context('Node manager', () => {
|
|||||||
cy.get('[test-id=36] > text > tspan').should('exist');
|
cy.get('[test-id=36] > text > tspan').should('exist');
|
||||||
cy.get('[test-id=37] > text > tspan').should('exist');
|
cy.get('[test-id=37] > text > tspan').should('exist');
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('addChildNodeSortcut');
|
cy.matchImageSnapshot('addChildNodeSortcut');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -32,6 +34,7 @@ context('Node manager', () => {
|
|||||||
|
|
||||||
cy.get('[test-id=37]').should('not.exist');
|
cy.get('[test-id=37]').should('not.exist');
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('deleteTopicShortcut');
|
cy.matchImageSnapshot('deleteTopicShortcut');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -40,12 +43,15 @@ context('Node manager', () => {
|
|||||||
|
|
||||||
cy.get('[test-id=36] > text > tspan').should('exist');
|
cy.get('[test-id=36] > text > tspan').should('exist');
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('undoChange');
|
cy.matchImageSnapshot('undoChange');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('redo changes', () => {
|
it('redo changes', () => {
|
||||||
cy.get('[data-testid="RedoOutlinedIcon"]').click();
|
cy.get('[data-testid="RedoOutlinedIcon"]').click();
|
||||||
cy.get('[test-id=36] > text > tspan').should('exist');
|
cy.get('[test-id=36] > text > tspan').should('exist');
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('redoChange');
|
cy.matchImageSnapshot('redoChange');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -53,6 +59,7 @@ context('Node manager', () => {
|
|||||||
cy.contains('Mind Mapping rocks!!').click({ force: true });
|
cy.contains('Mind Mapping rocks!!').click({ force: true });
|
||||||
cy.get('body').type('{ctrl}s');
|
cy.get('body').type('{ctrl}s');
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('saveChagesShortcut');
|
cy.matchImageSnapshot('saveChagesShortcut');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -16,6 +16,7 @@ context('Change Topic shape', () => {
|
|||||||
.should('be.a', 'number')
|
.should('be.a', 'number')
|
||||||
.should('eq', 0);
|
.should('eq', 0);
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('changeToSquareShape');
|
cy.matchImageSnapshot('changeToSquareShape');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -39,6 +40,7 @@ context('Change Topic shape', () => {
|
|||||||
.should('be.a', 'number')
|
.should('be.a', 'number')
|
||||||
.should('be.lt', 5);
|
.should('be.lt', 5);
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('changeToRoundedRectangle');
|
cy.matchImageSnapshot('changeToRoundedRectangle');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -48,6 +50,7 @@ context('Change Topic shape', () => {
|
|||||||
cy.get(`[aria-label="Topic Style"]`).first().trigger('mouseover');
|
cy.get(`[aria-label="Topic Style"]`).first().trigger('mouseover');
|
||||||
cy.get(`[aria-label="Line shape"]`).first().click();
|
cy.get(`[aria-label="Line shape"]`).first().click();
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('changeToLine');
|
cy.matchImageSnapshot('changeToLine');
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -71,6 +74,7 @@ context('Change Topic shape', () => {
|
|||||||
.should('be.a', 'number')
|
.should('be.a', 'number')
|
||||||
.should('be.lt', 15);
|
.should('be.lt', 15);
|
||||||
|
|
||||||
|
cy.wait(200);
|
||||||
cy.matchImageSnapshot('changeToEllipseShape');
|
cy.matchImageSnapshot('changeToEllipseShape');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 92 KiB After Width: | Height: | Size: 93 KiB |
Before Width: | Height: | Size: 100 KiB After Width: | Height: | Size: 102 KiB |
Before Width: | Height: | Size: 97 KiB After Width: | Height: | Size: 98 KiB |
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 96 KiB |
Before Width: | Height: | Size: 96 KiB After Width: | Height: | Size: 97 KiB |
@ -37,7 +37,7 @@ import GestureOutlined from '@mui/icons-material/GestureOutlined';
|
|||||||
import TimelineOutined from '@mui/icons-material/TimelineOutlined';
|
import TimelineOutined from '@mui/icons-material/TimelineOutlined';
|
||||||
import ShareOutlined from '@mui/icons-material/ShareOutlined';
|
import ShareOutlined from '@mui/icons-material/ShareOutlined';
|
||||||
import SwapCallsOutlined from '@mui/icons-material/SwapCallsOutlined';
|
import SwapCallsOutlined from '@mui/icons-material/SwapCallsOutlined';
|
||||||
import ClearOutlined from '@mui/icons-material/ClearOutlined';
|
import NotInterestedOutlined from '@mui/icons-material/NotInterestedOutlined';
|
||||||
|
|
||||||
import Palette from '@mui/icons-material/Square';
|
import Palette from '@mui/icons-material/Square';
|
||||||
import SquareOutlined from '@mui/icons-material/SquareOutlined';
|
import SquareOutlined from '@mui/icons-material/SquareOutlined';
|
||||||
@ -125,7 +125,7 @@ export function buildEditorPanelConfig(model: Editor, intl: IntlShape): ActionCo
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: <ClearOutlined />,
|
icon: <NotInterestedOutlined />,
|
||||||
tooltip: intl.formatMessage({
|
tooltip: intl.formatMessage({
|
||||||
id: 'editor-panel.tooltip-topic-border-color-default',
|
id: 'editor-panel.tooltip-topic-border-color-default',
|
||||||
defaultMessage: 'Default border color',
|
defaultMessage: 'Default border color',
|
||||||
@ -154,7 +154,7 @@ export function buildEditorPanelConfig(model: Editor, intl: IntlShape): ActionCo
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: <ClearOutlined />,
|
icon: <NotInterestedOutlined />,
|
||||||
tooltip: intl.formatMessage({
|
tooltip: intl.formatMessage({
|
||||||
id: 'editor-panel.tooltip-topic-fill-color-default',
|
id: 'editor-panel.tooltip-topic-fill-color-default',
|
||||||
defaultMessage: 'Default fill color',
|
defaultMessage: 'Default fill color',
|
||||||
@ -232,7 +232,7 @@ export function buildEditorPanelConfig(model: Editor, intl: IntlShape): ActionCo
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: <ClearOutlined />,
|
icon: <NotInterestedOutlined />,
|
||||||
tooltip: intl.formatMessage({
|
tooltip: intl.formatMessage({
|
||||||
id: 'editor-panel.tooltip-connection-color-default',
|
id: 'editor-panel.tooltip-connection-color-default',
|
||||||
defaultMessage: 'Default color',
|
defaultMessage: 'Default color',
|
||||||
@ -323,7 +323,7 @@ export function buildEditorPanelConfig(model: Editor, intl: IntlShape): ActionCo
|
|||||||
],
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: <ClearOutlined />,
|
icon: <NotInterestedOutlined />,
|
||||||
tooltip: intl.formatMessage({
|
tooltip: intl.formatMessage({
|
||||||
id: 'editor-panel.tooltip-topic-font-color-default',
|
id: 'editor-panel.tooltip-topic-font-color-default',
|
||||||
defaultMessage: 'Default color',
|
defaultMessage: 'Default color',
|
||||||
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |