import { visitAndApproveStorage } from '../../support/ui-test-helper.js'; describe('UI - Control Points', function () { beforeEach(() => { visitAndApproveStorage(); }); it('Editor - No parameters: Drag control point of arc path', () => { const randomOffset = () => 2 + Math.round(10 + Math.random() * 40); cy.get('#tool_source').click(); cy.get('#svg_source_textarea') .type('{selectall}', { force: true }) .type(` Layer 1 `, { force: true, parseSpecialCharSequences: false }); cy.get('#tool_source_save').click({ force: true }); cy.get('#svg_1').click({ force: true }).click({ force: true }); cy.get('#pathpointgrip_0').trigger('mousedown', { which: 1, force: true }) .trigger('mousemove', randomOffset(), randomOffset(), { force: true }) .trigger('mouseup', { force: true }); cy.get('#pathpointgrip_1').trigger('mousedown', { which: 1, force: true }) .trigger('mousemove', randomOffset(), randomOffset(), { force: true }) .trigger('mouseup', { force: true }); cy.get('#svg_1[d]').should('not.contain', 'NaN'); }); });