Skip to content

Commit

Permalink
Update dep (#988)
Browse files Browse the repository at this point in the history
* update and adapt code to latest dependencies

-> need testIsolation to False with the latest Cypress

* need this for CI (bug npm/cli#4828)

* run instrument before test

* fix test

* v7.3.4
  • Loading branch information
jfhenon committed Aug 18, 2024
1 parent e81a4f8 commit 0c44b49
Show file tree
Hide file tree
Showing 19 changed files with 6,197 additions and 6,774 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# SVG-Edit CHANGES

## 7.3.4
- update dependencies
- package @rollup/rollup-linux-x64-gnu was added for a bug in the CI


## 7.3.3
- npm packages ugrade
- fix export and xy panel
Expand Down
119 changes: 92 additions & 27 deletions coverage/coverage-summary.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cypress/e2e/ui/scenario.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
visitAndApproveStorage
} from '../../support/ui-test-helper.js'

describe('use text tools of svg-edit', function () {
describe('use text tools of svg-edit', { testIsolation: false }, function () {
before(() => {
visitAndApproveStorage()
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/ui/scenario1.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
visitAndApproveStorage
} from '../../support/ui-test-helper.js'

describe('check tool shape and image of svg-edit', function () {
describe('check tool shape and image of svg-edit', { testIsolation: false }, function () {
before(() => {
visitAndApproveStorage()
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/ui/scenario2.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
visitAndApproveStorage
} from '../../support/ui-test-helper.js'

describe('use ellipse and circle of svg-edit', function () {
describe('use ellipse and circle of svg-edit', { testIsolation: false }, function () {
before(() => {
visitAndApproveStorage()
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/ui/scenario3.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
visitAndApproveStorage
} from '../../support/ui-test-helper.js'

describe('use path tools of svg-edit', function () {
describe('use path tools of svg-edit', { testIsolation: false }, function () {
before(() => {
visitAndApproveStorage()
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/ui/scenario4.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
visitAndApproveStorage
} from '../../support/ui-test-helper.js'

describe('use rect/square tools of svg-edit', function () {
describe('use rect/square tools of svg-edit', { testIsolation: false }, function () {
before(() => {
visitAndApproveStorage()
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/ui/scenario5.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
visitAndApproveStorage
} from '../../support/ui-test-helper.js'

describe('use line tools of svg-edit', function () {
describe('use line tools of svg-edit', { testIsolation: false }, function () {
before(() => {
visitAndApproveStorage()
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/ui/scenario6.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
visitAndApproveStorage
} from '../../support/ui-test-helper.js'

describe('use polygon tools of svg-edit', function () {
describe('use polygon tools of svg-edit', { testIsolation: false }, function () {
before(() => {
visitAndApproveStorage()
})
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/ui/scenario7.cy.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
visitAndApproveStorage
} from '../../support/ui-test-helper.js'

describe('use star tools of svg-edit', function () {
describe('use star tools of svg-edit', { testIsolation: false }, function () {
before(() => {
visitAndApproveStorage()
})
Expand Down
5 changes: 5 additions & 0 deletions cypress/replace-in-file.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files": "instrumented/**",
"from": "import SvgCanvas from '@svgedit/svgcanvas';",
"to": "import SvgCanvas from '/instrumented/svgcanvas/svgcanvas.js'"
}
1 change: 1 addition & 0 deletions cypress/support/ui-test-helper.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export const visitAndApproveStorage = () => {
cy.clearLocalStorage()
cy.clearCookies()
cy.visit('/src/editor/index.html')
cy.get('#storage_ok').click({ force: true })
// move to English and snap mode (to correct potential differences between CI and local tests )
Expand Down
Loading

0 comments on commit 0c44b49

Please sign in to comment.