diff --git a/badges/coverage-badge.svg b/badges/coverage-badge.svg index c537428e..f106edca 100644 --- a/badges/coverage-badge.svg +++ b/badges/coverage-badge.svg @@ -1 +1 @@ - + diff --git a/badges/tests-badge.svg b/badges/tests-badge.svg index 61b3e08c..96979660 100644 --- a/badges/tests-badge.svg +++ b/badges/tests-badge.svg @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/cypress/integration/ui/__snapshots__/scenario.js.snap b/cypress/integration/ui/__snapshots__/scenario.js.snap index 3636cb70..99c631c3 100644 --- a/cypress/integration/ui/__snapshots__/scenario.js.snap +++ b/cypress/integration/ui/__snapshots__/scenario.js.snap @@ -649,3 +649,411 @@ exports[`use various parts of svg-edit > check tool_polygon #0`] = ` `; + +exports[`use various parts of svg-edit > check tool_text_anchor_start #0`] = ` + +`; + +exports[`use various parts of svg-edit > check tool_text_anchor_middle #0`] = ` + +`; + +exports[`use various parts of svg-edit > check tool_text_anchor_end #0`] = ` + +`; diff --git a/cypress/integration/ui/scenario.js b/cypress/integration/ui/scenario.js index 1d31b3b6..bdd23209 100644 --- a/cypress/integration/ui/scenario.js +++ b/cypress/integration/ui/scenario.js @@ -88,4 +88,22 @@ describe('use various parts of svg-edit', function () { .trigger('mouseup', {force: true}); cy.get('#svgcontent').toMatchSnapshot(); }); + it('check tool_text_anchor_start', function () { + cy.get('#svg_1').click({force: true}); + cy.get('#tool_text_anchor_start') + .click({force: true}); + testSnapshot(); + }); + it('check tool_text_anchor_middle', function () { + cy.get('#svg_1').click({force: true}); + cy.get('#tool_text_anchor_middle') + .click({force: true}); + testSnapshot(); + }); + it('check tool_text_anchor_end', function () { + cy.get('#svg_1').click({force: true}); + cy.get('#tool_text_anchor_end') + .click({force: true}); + testSnapshot(); + }); }); diff --git a/src/editor/index.html b/src/editor/index.html index 880af11c..1d71bd16 100644 --- a/src/editor/index.html +++ b/src/editor/index.html @@ -309,6 +309,9 @@