import { visitAndApproveStorage } from '../../../support/ui-test-helper.js'; // See https://github.com/SVG-Edit/svgedit/issues/423 describe('Fix issue 423', function () { beforeEach(() => { visitAndApproveStorage(); }); it('should not throw when undoing the move', function () { cy.get('#tool_source').click(); cy.get('#svg_source_textarea') .type('{selectall}', {force: true}) .type(` Layer 1 `, {parseSpecialCharSequences: false, force: true}); cy.get('#tool_source_save').click({force: true}); cy.get('#TANK1') .trigger('mousedown', {force: true}) .trigger('mousemove', 50, 0, {force: true}) .trigger('mouseup', {force: true}); cy.get('#tool_undo').click({force: true}); }); });