add star tool to cypress

This commit is contained in:
jfh
2020-11-07 22:43:04 +01:00
parent 4d1ba73af2
commit fa9852a435
2 changed files with 99 additions and 0 deletions

View File

@@ -70,4 +70,13 @@ describe('use various parts of svg-edit', function () {
.click({force: true});
testSnapshot();
});
it('check tool_start', function () {
cy.get('#tool_star')
.click({force: true});
cy.get('#svgcontent')
.trigger('mousedown', {which: 1, pageX: 600, pageY: 150, force: true})
.trigger('mousemove', {which: 1, pageX: 600, pageY: 170, force: true})
.trigger('mouseup', {force: true});
cy.get('#svgcontent').toMatchSnapshot();
});
});