fix cypress config
parent
50c8016aed
commit
111ad5c52e
|
@ -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
|
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
|
@ -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'
|
||||||
|
}
|
||||||
|
})
|
|
@ -1,3 +0,0 @@
|
||||||
{
|
|
||||||
"baseUrl": "http://127.0.0.1:9001"
|
|
||||||
}
|
|
Loading…
Reference in New Issue