From 90c34be0b37a7fe66577a2e142f123b2ad94d5fc Mon Sep 17 00:00:00 2001 From: Younes Date: Mon, 4 Nov 2024 19:38:52 +0100 Subject: [PATCH] chore: update playwright --- .github/workflows/test-ci.yml | 4 ++-- playwright.config.ts | 12 ++---------- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test-ci.yml b/.github/workflows/test-ci.yml index 87e49399..0575b271 100644 --- a/.github/workflows/test-ci.yml +++ b/.github/workflows/test-ci.yml @@ -39,12 +39,12 @@ jobs: with: node-version: 20 cache: "yarn" - - run: yarn install --frozen-lockfile + - run: yarn install - name: Build apps run: | cp .env.ci .env - yarn build --filter=frontend --filter=backend + yarn build - name: Run Playwright tests # with workground https://github.com/microsoft/playwright/issues/6500 diff --git a/playwright.config.ts b/playwright.config.ts index 5309d225..3ac1271f 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -69,18 +69,10 @@ export default defineConfig({ /* Run your local dev server before starting the tests */ webServer: [ { - command: 'yarn prisma migrate deploy && CI_TEST=true yarn backend start', - url: 'http://localhost:2021', - timeout: 120 * 1000, - reuseExistingServer: !process.env.CI, - stdout: 'ignore', - stderr: 'pipe' - }, - { - command: 'yarn frontend start', + command: 'yarn prisma migrate deploy && yarn frontend start', url: 'http://localhost:3000', reuseExistingServer: !process.env.CI, stdout: 'ignore', - stderr: 'pipe' + stderr: 'pipe' }] });