Update dep (#988)

* update and adapt code to latest dependencies

-> need testIsolation to False with the latest Cypress

* need this for CI (bug https://github.com/npm/cli/issues/4828)

* run instrument before test

* fix test

* v7.3.4
This commit is contained in:
JFH
2024-08-18 23:51:28 +02:00
committed by GitHub
parent e81a4f8ba9
commit 0c44b49450
19 changed files with 6031 additions and 6608 deletions

View File

@@ -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()
})

View File

@@ -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()
})

View File

@@ -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()
})

View File

@@ -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()
})

View File

@@ -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()
})

View File

@@ -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()
})

View File

@@ -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()
})

View File

@@ -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()
})

View File

@@ -0,0 +1,5 @@
{
"files": "instrumented/**",
"from": "import SvgCanvas from '@svgedit/svgcanvas';",
"to": "import SvgCanvas from '/instrumented/svgcanvas/svgcanvas.js'"
}

View File

@@ -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 )