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:
@@ -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()
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
|
||||
5
cypress/replace-in-file.config.json
Normal file
5
cypress/replace-in-file.config.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"files": "instrumented/**",
|
||||
"from": "import SvgCanvas from '@svgedit/svgcanvas';",
|
||||
"to": "import SvgCanvas from '/instrumented/svgcanvas/svgcanvas.js'"
|
||||
}
|
||||
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user