mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-01-31 19:02:59 +01:00
fix cypress config
This commit is contained in:
parent
50c8016aed
commit
111ad5c52e
4 changed files with 13 additions and 9 deletions
|
@ -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
|
||||
|
|
5
.github/workflows/windows.yml
vendored
5
.github/workflows/windows.yml
vendored
|
@ -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
|
||||
|
|
9
src/tests/frontend/cypress/cypress.config.js
Normal file
9
src/tests/frontend/cypress/cypress.config.js
Normal 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'
|
||||
}
|
||||
})
|
|
@ -1,3 +0,0 @@
|
|||
{
|
||||
"baseUrl": "http://127.0.0.1:9001"
|
||||
}
|
Loading…
Reference in a new issue