fix cypress config

pull/5602/head
webzwo0i 2022-09-24 16:16:31 +02:00
parent 50c8016aed
commit 111ad5c52e
4 changed files with 13 additions and 9 deletions

View File

@ -90,11 +90,10 @@ jobs:
run: cd src && npm test run: cd src && npm test
- -
name: Install Cypress name: Install Cypress
run: npm install cypress -g run: cd src && npm install cypress
- -
name: Run Etherpad & Test Frontend name: Run Etherpad & Test Frontend
run: | run: |
node src/node/server.js & node src/node/server.js &
curl --connect-timeout 10 --max-time 20 --retry 5 --retry-delay 10 --retry-max-time 60 --retry-connrefused http://127.0.0.1:9001/p/test curl --connect-timeout 10 --max-time 20 --retry 5 --retry-delay 10 --retry-max-time 60 --retry-connrefused http://127.0.0.1:9001/p/test
cd src/tests/frontend ./src/node_modules/cypress/bin/cypress run --config-file src/tests/frontend/cypress/cypress.config.js
cypress run --spec cypress/integration/test.js --config-file cypress/cypress.json

View File

@ -115,12 +115,11 @@ jobs:
etherpad/src/bin/doc/package-lock.json etherpad/src/bin/doc/package-lock.json
- -
name: Install Cypress name: Install Cypress
run: npm install cypress -g run: cd src && npm install cypress
- -
name: Run Etherpad name: Run Etherpad
run: | run: |
cd etherpad cd etherpad
node node_modules\ep_etherpad-lite\node\server.js & node node_modules\ep_etherpad-lite\node\server.js &
curl --connect-timeout 10 --max-time 20 --retry 5 --retry-delay 10 --retry-max-time 60 --retry-connrefused http://127.0.0.1:9001/p/test curl --connect-timeout 10 --max-time 20 --retry 5 --retry-delay 10 --retry-max-time 60 --retry-connrefused http://127.0.0.1:9001/p/test
cd src\tests\frontend src\node_modules\cypress\bin\cypress run --config-file src\tests\frontendcypress\cypress.config.js
cypress run --spec cypress\integration\test.js --config-file cypress\cypress.json

View File

@ -0,0 +1,9 @@
const { defineConfig } = require('cypress')
module.exports = defineConfig({
e2e: {
baseUrl: "http://127.0.0.1:9001",
supportFile: false,
specPattern: 'src/tests/frontend/cypress/integration/**/*.js'
}
})

View File

@ -1,3 +0,0 @@
{
"baseUrl": "http://127.0.0.1:9001"
}