fix e2e test config
This commit is contained in:
Родитель
a0afdc7ead
Коммит
d612dfa46a
|
@ -45,10 +45,7 @@ jobs:
|
|||
with:
|
||||
node-version: 18.12.1
|
||||
|
||||
- name: Install dependencies /src
|
||||
run: npm install --workspace=src
|
||||
|
||||
- name: Install dependencies root
|
||||
- name: Install dependencies
|
||||
run: npm ci
|
||||
- name: Copy env var
|
||||
run: cp .env-dist .env
|
||||
|
@ -60,7 +57,7 @@ jobs:
|
|||
run: npx playwright install --with-deps
|
||||
|
||||
- name: Run Playwright tests
|
||||
run: npm run e2e --workspace=src
|
||||
run: npm run e2e
|
||||
env:
|
||||
E2E_TEST_ENV: ${{ inputs.environment != null && inputs.environment || 'local' }}
|
||||
E2E_TEST_BASE_URL: ${{ secrets.E2E_TEST_BASE_URL }}
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"uuid": "^9.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.30.0",
|
||||
"@playwright/test": "^1.32.3",
|
||||
"@types/express": "^4.17.17",
|
||||
"@typescript-eslint/eslint-plugin": "^5.59.1",
|
||||
"@typescript-eslint/parser": "^5.59.1",
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
"uuid": "^9.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@playwright/test": "^1.30.0",
|
||||
"@playwright/test": "^1.32.3",
|
||||
"@types/express": "^4.17.17",
|
||||
"@typescript-eslint/eslint-plugin": "^5.59.1",
|
||||
"@typescript-eslint/parser": "^5.59.1",
|
||||
|
|
|
@ -13,12 +13,12 @@ dotenv.config()
|
|||
* @see https://playwright.dev/docs/test-configuration
|
||||
*/
|
||||
export default defineConfig({
|
||||
testDir: './e2e/specs',
|
||||
testDir: 'src/e2e/specs',
|
||||
/* Maximum time one test can run for. */
|
||||
timeout: 60_000,
|
||||
|
||||
/* Global setup */
|
||||
globalSetup: './e2e/globalSetup.js',
|
||||
globalSetup: 'src/e2e/globalSetup.js',
|
||||
|
||||
/* Max time in milliseconds the whole test suite can to prevent CI breaking. */
|
||||
globalTimeout: 360_000,
|
||||
|
@ -101,7 +101,7 @@ export default defineConfig({
|
|||
],
|
||||
|
||||
/* Folder for test artifacts such as screenshots, videos, traces, etc. */
|
||||
outputDir: './e2e/test-results/',
|
||||
outputDir: 'src/e2e/test-results/',
|
||||
|
||||
/* Run your local dev server before starting the tests */
|
||||
webServer: {
|
Загрузка…
Ссылка в новой задаче