mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Separated admin and portal tests to different projects
refs TryGhost/Team#2667 - Portal tests are much more stable when running in the separate DB from admin tests.
This commit is contained in:
parent
0ae2a79a77
commit
60b3731199
3 changed files with 15 additions and 1 deletions
|
@ -32,7 +32,9 @@
|
|||
"test:integration": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/integration' --timeout=10000",
|
||||
"test:e2e": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/e2e-api' './test/e2e-frontend' './test/e2e-server' './test/e2e-webhooks' --timeout=15000",
|
||||
"test:regression": "mocha --require=./test/utils/overrides.js --exit --trace-warnings --recursive --extension=test.js './test/regression' --timeout=60000",
|
||||
"test:browser": "NODE_ENV=testing-browser playwright test test/e2e-browser",
|
||||
"test:browser": "yarn test:browser:admin && yarn test:browser:portal",
|
||||
"test:browser:admin": "NODE_ENV=testing-browser playwright test test/e2e-browser --project=admin",
|
||||
"test:browser:portal": "NODE_ENV=testing-browser playwright test test/e2e-browser --project=portal",
|
||||
"test:browser:single": "NODE_ENV=testing-browser playwright test",
|
||||
"test:browser:setup": "npx playwright install",
|
||||
"test:browser:record": "NODE_ENV=testing-browser yarn start record-test",
|
||||
|
|
|
@ -15,6 +15,18 @@ const config = {
|
|||
// TODO: Where to put this
|
||||
storageState: 'playwright-state.json'
|
||||
},
|
||||
// separated tests to projects for better logging to console
|
||||
// portal tests are much more stable when running in the separate DB from admin tests
|
||||
projects: [
|
||||
{
|
||||
name: 'admin',
|
||||
testDir: 'test/e2e-browser/admin'
|
||||
},
|
||||
{
|
||||
name: 'portal',
|
||||
testDir: 'test/e2e-browser/portal'
|
||||
}
|
||||
],
|
||||
globalSetup: './test/e2e-browser/utils/global-setup',
|
||||
globalTeardown: './test/e2e-browser/utils/global-teardown'
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue