Upgrade Cypress to major version 10.
This commit is contained in:
parent
c38100427d
commit
d2e8a9368c
14 changed files with 37 additions and 22 deletions
21
frontend/cypress.config.js
vendored
Normal file
21
frontend/cypress.config.js
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
const { defineConfig } = require('cypress')
|
||||||
|
|
||||||
|
module.exports = defineConfig({
|
||||||
|
env: {
|
||||||
|
apiUrl: 'http://localhost:9000',
|
||||||
|
serverInitCmd:
|
||||||
|
'pkill -9 listmonk | cd ../ && ./listmonk --install --yes && ./listmonk > /dev/null 2>/dev/null &',
|
||||||
|
username: 'listmonk',
|
||||||
|
password: 'listmonk',
|
||||||
|
},
|
||||||
|
viewportWidth: 1300,
|
||||||
|
viewportHeight: 950,
|
||||||
|
e2e: {
|
||||||
|
// We've imported your old cypress plugins here.
|
||||||
|
// You may want to clean this up later by importing these.
|
||||||
|
setupNodeEvents(on, config) {
|
||||||
|
return require('./cypress/plugins/index.js')(on, config)
|
||||||
|
},
|
||||||
|
baseUrl: 'http://localhost:9000/admin',
|
||||||
|
},
|
||||||
|
})
|
11
frontend/cypress.json
vendored
11
frontend/cypress.json
vendored
|
@ -1,11 +0,0 @@
|
||||||
{
|
|
||||||
"baseUrl": "http://localhost:9000/admin",
|
|
||||||
"env": {
|
|
||||||
"apiUrl": "http://localhost:9000",
|
|
||||||
"serverInitCmd": "pkill -9 listmonk | cd ../ && ./listmonk --install --yes && ./listmonk > /dev/null 2>/dev/null &",
|
|
||||||
"username": "listmonk",
|
|
||||||
"password": "listmonk"
|
|
||||||
},
|
|
||||||
"viewportWidth": 1300,
|
|
||||||
"viewportHeight": 950
|
|
||||||
}
|
|
2
frontend/package.json
vendored
2
frontend/package.json
vendored
|
@ -34,7 +34,7 @@
|
||||||
"@vue/cli-service": "~4.5.13",
|
"@vue/cli-service": "~4.5.13",
|
||||||
"@vue/eslint-config-airbnb": "^5.3.0",
|
"@vue/eslint-config-airbnb": "^5.3.0",
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
"cypress": "9.5.2",
|
"cypress": "10.10.0",
|
||||||
"cypress-file-upload": "^5.0.2",
|
"cypress-file-upload": "^5.0.2",
|
||||||
"eslint": "^7.27.0",
|
"eslint": "^7.27.0",
|
||||||
"eslint-plugin-import": "^2.23.3",
|
"eslint-plugin-import": "^2.23.3",
|
||||||
|
|
25
frontend/yarn.lock
vendored
25
frontend/yarn.lock
vendored
|
@ -3552,10 +3552,10 @@ cypress-file-upload@^5.0.2:
|
||||||
dependencies:
|
dependencies:
|
||||||
mime "^2.5.0"
|
mime "^2.5.0"
|
||||||
|
|
||||||
cypress@9.5.2:
|
cypress@10.10.0:
|
||||||
version "9.5.2"
|
version "10.10.0"
|
||||||
resolved "https://registry.yarnpkg.com/cypress/-/cypress-9.5.2.tgz#8fb6ee4a890fbc35620800810bf6fb11995927bd"
|
resolved "https://registry.yarnpkg.com/cypress/-/cypress-10.10.0.tgz#fd671297b2ca3e64dfffd55fe3857c388cfbb695"
|
||||||
integrity sha512-gYiQYvJozMzDOriUV1rCt6CeRM/pRK4nhwGJj3nJQyX2BoUdTCVwp30xDMKc771HiNVhBtgj5o5/iBdVDVXQUg==
|
integrity sha512-bU8r44x1NIYAUNNXt3CwJpLOVth7HUv2hUhYCxZmgZ1IugowDvuHNpevnoZRQx1KKOEisLvIJW+Xen5Pjn41pg==
|
||||||
dependencies:
|
dependencies:
|
||||||
"@cypress/request" "^2.88.10"
|
"@cypress/request" "^2.88.10"
|
||||||
"@cypress/xvfb" "^1.2.4"
|
"@cypress/xvfb" "^1.2.4"
|
||||||
|
@ -3576,7 +3576,7 @@ cypress@9.5.2:
|
||||||
dayjs "^1.10.4"
|
dayjs "^1.10.4"
|
||||||
debug "^4.3.2"
|
debug "^4.3.2"
|
||||||
enquirer "^2.3.6"
|
enquirer "^2.3.6"
|
||||||
eventemitter2 "^6.4.3"
|
eventemitter2 "6.4.7"
|
||||||
execa "4.1.0"
|
execa "4.1.0"
|
||||||
executable "^4.1.1"
|
executable "^4.1.1"
|
||||||
extract-zip "2.0.1"
|
extract-zip "2.0.1"
|
||||||
|
@ -3589,7 +3589,7 @@ cypress@9.5.2:
|
||||||
listr2 "^3.8.3"
|
listr2 "^3.8.3"
|
||||||
lodash "^4.17.21"
|
lodash "^4.17.21"
|
||||||
log-symbols "^4.0.0"
|
log-symbols "^4.0.0"
|
||||||
minimist "^1.2.5"
|
minimist "^1.2.6"
|
||||||
ospath "^1.2.2"
|
ospath "^1.2.2"
|
||||||
pretty-bytes "^5.6.0"
|
pretty-bytes "^5.6.0"
|
||||||
proxy-from-env "1.0.0"
|
proxy-from-env "1.0.0"
|
||||||
|
@ -4610,10 +4610,10 @@ event-pubsub@4.3.0:
|
||||||
resolved "https://registry.yarnpkg.com/event-pubsub/-/event-pubsub-4.3.0.tgz#f68d816bc29f1ec02c539dc58c8dd40ce72cb36e"
|
resolved "https://registry.yarnpkg.com/event-pubsub/-/event-pubsub-4.3.0.tgz#f68d816bc29f1ec02c539dc58c8dd40ce72cb36e"
|
||||||
integrity sha512-z7IyloorXvKbFx9Bpie2+vMJKKx1fH1EN5yiTfp8CiLOTptSYy1g8H4yDpGlEdshL1PBiFtBHepF2cNsqeEeFQ==
|
integrity sha512-z7IyloorXvKbFx9Bpie2+vMJKKx1fH1EN5yiTfp8CiLOTptSYy1g8H4yDpGlEdshL1PBiFtBHepF2cNsqeEeFQ==
|
||||||
|
|
||||||
eventemitter2@^6.4.3:
|
eventemitter2@6.4.7:
|
||||||
version "6.4.4"
|
version "6.4.7"
|
||||||
resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-6.4.4.tgz#aa96e8275c4dbeb017a5d0e03780c65612a1202b"
|
resolved "https://registry.yarnpkg.com/eventemitter2/-/eventemitter2-6.4.7.tgz#a7f6c4d7abf28a14c1ef3442f21cb306a054271d"
|
||||||
integrity sha512-HLU3NDY6wARrLCEwyGKRBvuWYyvW6mHYv72SJJAH3iJN3a6eVUvkjFkcxah1bcTgGVBBrFdIopBJPhCQFMLyXw==
|
integrity sha512-tYUSVOGeQPKt/eC1ABfhHy5Xd96N3oIijJvN3O9+TsC28T5V9yX9oEfEK5faP0EFSNVOG97qtAS68GBrQB2hDg==
|
||||||
|
|
||||||
eventemitter3@^4.0.0:
|
eventemitter3@^4.0.0:
|
||||||
version "4.0.4"
|
version "4.0.4"
|
||||||
|
@ -6856,6 +6856,11 @@ minimist@^1.2.0, minimist@^1.2.5:
|
||||||
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
|
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.6.tgz#8637a5b759ea0d6e98702cfb3a9283323c93af44"
|
||||||
integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==
|
integrity sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==
|
||||||
|
|
||||||
|
minimist@^1.2.6:
|
||||||
|
version "1.2.7"
|
||||||
|
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18"
|
||||||
|
integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==
|
||||||
|
|
||||||
minipass@^3.1.1:
|
minipass@^3.1.1:
|
||||||
version "3.1.3"
|
version "3.1.3"
|
||||||
resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.1.3.tgz#7d42ff1f39635482e15f9cdb53184deebd5815fd"
|
resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.1.3.tgz#7d42ff1f39635482e15f9cdb53184deebd5815fd"
|
||||||
|
|
Loading…
Reference in a new issue