diff --git a/test/ui-tests/ui.js b/test/ui-tests/ui.js index 6c15c01a..66b2f009 100644 --- a/test/ui-tests/ui.js +++ b/test/ui-tests/ui.js @@ -20,3 +20,23 @@ test('Editor - No parameters: Export button clicking', async (t) => { .click('#tool_export') .expect(Selector('#dialog_content select')).ok('Export dialog opens'); }); + +test('Editor - No parameters: Drag control point of arc path', async (t) => { + const randomOffset = () => Math.round(10 + Math.random() * 40); + await t + .click('#dialog_buttons > input[type=button][value=OK]') + .click('#tool_source') + .selectTextAreaContent('#svg_source_textarea') + .typeText('#svg_source_textarea', ` + + Layer 1 + + +`) + .click('#tool_source_save') + .click('#svg_1') + .click('#svg_1') + .drag('#pathpointgrip_0', randomOffset(), randomOffset(), { offsetX: 2, offsetY: 2 }) + .drag('#pathpointgrip_1', randomOffset(), randomOffset(), { offsetX: 2, offsetY: 2 }) + .expect(Selector('#svg_1').getAttribute('d')).notContains('NaN'); +});