mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 12:35:59 +00:00
32 lines
1.7 KiB
JSON
32 lines
1.7 KiB
JSON
{
|
|
"name": "e2e-tests",
|
|
"version": "1.0.0",
|
|
"main": "index.js",
|
|
"license": "GPL",
|
|
"devDependencies": {
|
|
"axios": "^1.7.9",
|
|
"cross-env": "^7.0.3",
|
|
"cypress": "^13.16.1",
|
|
"cypress-real-events": "^1.13.0",
|
|
"env-cmd": "^10.1.0",
|
|
"kill-port": "^2.0.1",
|
|
"start-server-and-test": "^2.0.8"
|
|
},
|
|
"scripts": {
|
|
"cy:open": "cypress open --config experimentalInteractiveRunEvents=true",
|
|
|
|
"cy:run:add-connection": "cypress run --spec cypress/e2e/add-connection.cy.js",
|
|
"cy:run:portal": "cypress run --spec cypress/e2e/portal.cy.js",
|
|
"cy:run:oauth": "cypress run --spec cypress/e2e/oauth.cy.js",
|
|
"cy:run:browse-data": "cypress run --spec cypress/e2e/browse-data.cy.js",
|
|
|
|
"start:add-connection": "cd .. && node packer/build/bundle.js --listen-api --run-e2e-tests",
|
|
"start:portal": "cd .. && env-cmd -f e2e-tests/env/portal/.env node e2e-tests/init/portal.js && env-cmd -f e2e-tests/env/portal/.env node packer/build/bundle.js --listen-api --run-e2e-tests",
|
|
"start:oauth": "cd .. && env-cmd -f e2e-tests/env/oauth/.env node packer/build/bundle.js --listen-api --run-e2e-tests",
|
|
"start:browse-data": "cd .. && env-cmd -f e2e-tests/env/portal/.env node e2e-tests/init/browse-data.js && env-cmd -f e2e-tests/env/browse-data/.env node packer/build/bundle.js --listen-api --run-e2e-tests",
|
|
|
|
"test": "start-server-and-test start:add-connection http://localhost:3000 cy:run:add-connection && start-server-and-test start:portal http://localhost:3000 cy:run:portal && start-server-and-test start:oauth http://localhost:3000 cy:run:oauth && start-server-and-test start:browse-data http://localhost:3000 cy:run:browse-data",
|
|
"test:ci": "yarn test"
|
|
}
|
|
}
|