separate svgcanvas from svgedit
now you can use directlt svgcanvas. see readme.md * configure workspaces * move svgcanvas to packages folder * move utils to common and paint to svgcanvas * make svgcanvas a dependency of svgedit * update deps * workspaces requires npm 7 at least so the ci needs a new node version * update github actions to V3 * update snapshots using custom svg exports * remove unmaintained cypress snapshot plugin * new github action to add coverage in PR * Update onpushandpullrequest.yml * svgcanvas v7.1.6
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
visitAndApproveStorage, testSnapshot
|
||||
visitAndApproveStorage
|
||||
} from '../../support/ui-test-helper.js'
|
||||
|
||||
describe('use all parts of svg-edit', function () {
|
||||
describe('use path tools of svg-edit', function () {
|
||||
before(() => {
|
||||
visitAndApproveStorage()
|
||||
})
|
||||
@@ -17,7 +17,7 @@ describe('use all parts of svg-edit', function () {
|
||||
</g>
|
||||
</svg>`, { force: true, parseSpecialCharSequences: false })
|
||||
cy.get('#tool_source_save').click({ force: true })
|
||||
testSnapshot()
|
||||
cy.svgSnapshot()
|
||||
})
|
||||
it('check tool_path', function () {
|
||||
cy.get('#tool_path')
|
||||
@@ -34,7 +34,7 @@ describe('use all parts of svg-edit', function () {
|
||||
.trigger('mousemove', 0, 0, { force: true })
|
||||
.trigger('mousedown', 0, 0, { force: true })
|
||||
.trigger('mouseup', { force: true })
|
||||
testSnapshot()
|
||||
cy.svgSnapshot()
|
||||
})
|
||||
it('check tool_path_change_node_xy', function () {
|
||||
cy.get('#svg_1').click({ force: true })
|
||||
@@ -47,7 +47,7 @@ describe('use all parts of svg-edit', function () {
|
||||
cy.get('#path_node_y').shadow().find('elix-number-spin-box').eq(0).shadow().find('#upButton').eq(0)
|
||||
.click({ force: true })
|
||||
}
|
||||
testSnapshot()
|
||||
cy.svgSnapshot()
|
||||
})
|
||||
it('check tool_path_change_seg_type', function () {
|
||||
// cy.get('#svg_1').click({ force: true })
|
||||
@@ -57,7 +57,7 @@ describe('use all parts of svg-edit', function () {
|
||||
.trigger('mousedown', { force: true })
|
||||
.trigger('mousemove', 130, 175, { force: true })
|
||||
.trigger('mouseup', { force: true })
|
||||
testSnapshot()
|
||||
cy.svgSnapshot()
|
||||
})
|
||||
it('check tool_path_change_clone_node', function () {
|
||||
// cy.get('#svg_1').click({ force: true })
|
||||
@@ -67,14 +67,14 @@ describe('use all parts of svg-edit', function () {
|
||||
.trigger('mousedown', { force: true })
|
||||
.trigger('mousemove', 130, 175, { force: true })
|
||||
.trigger('mouseup', { force: true })
|
||||
testSnapshot()
|
||||
cy.svgSnapshot()
|
||||
})
|
||||
it('check tool_path_openclose', function () {
|
||||
cy.get('#tool_select').click({ force: true })
|
||||
cy.get('#svg_1').click({ force: true })
|
||||
cy.get('#svg_1').dblclick({ force: true })
|
||||
cy.get('#tool_openclose_path').click({ force: true })
|
||||
testSnapshot()
|
||||
cy.svgSnapshot()
|
||||
})
|
||||
/* it('check tool_path_add_subpath', function () {
|
||||
cy.get('#tool_add_subpath').click({ force: true });
|
||||
@@ -91,6 +91,6 @@ describe('use all parts of svg-edit', function () {
|
||||
.trigger('mousedown', 0, 0, { force: true })
|
||||
.trigger('mouseup', { force: true });
|
||||
cy.get('#tool_select').click({ force: true });
|
||||
testSnapshot();
|
||||
cy.svgSnapshot();
|
||||
}); */
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user