fix cypress config

This commit is contained in:
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
-
name: Install Cypress
run: npm install cypress -g
run: cd src && npm install cypress
-
name: Run Etherpad & Test Frontend
run: |
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
cd src/tests/frontend
cypress run --spec cypress/integration/test.js --config-file cypress/cypress.json
./src/node_modules/cypress/bin/cypress run --config-file src/tests/frontend/cypress/cypress.config.js

View File

@ -115,12 +115,11 @@ jobs:
etherpad/src/bin/doc/package-lock.json
-
name: Install Cypress
run: npm install cypress -g
run: cd src && npm install cypress
-
name: Run Etherpad
run: |
cd etherpad
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
cd src\tests\frontend
cypress run --spec cypress\integration\test.js --config-file cypress\cypress.json
src\node_modules\cypress\bin\cypress run --config-file src\tests\frontendcypress\cypress.config.js

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"
}