From 1de1f58be03b872e886a863d7ad1cee330f11a03 Mon Sep 17 00:00:00 2001 From: Juri Date: Tue, 17 Sep 2024 19:09:57 +0200 Subject: [PATCH] add e2e tests --- .github/workflows/verify.yml | 8 ++++---- e2e/web/playwright.config.ts | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index b359953..848e57f 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -24,7 +24,7 @@ jobs: version: 9.9.0 # temporary fix for Nx Cloud PNPM version detection run_install: false - - run: pnpm dlx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="build" + - run: pnpm dlx nx-cloud start-ci-run --distribute-on="3 linux-medium-js" --stop-agents-after="e2e" - name: Install dependencies run: pnpm install @@ -34,9 +34,9 @@ jobs: run: | pnpm format:check pnpm lint - pnpm exec nx run-many -t test build - - name: Run Playwright tests - run: pnpm --filter "@tasker/e2e-web" e2e + pnpm exec nx run-many -t test build e2e + # - name: Run Playwright tests + # run: pnpm --filter "@tasker/e2e-web" e2e - uses: actions/upload-artifact@v4 if: always() with: diff --git a/e2e/web/playwright.config.ts b/e2e/web/playwright.config.ts index 85ef727..3751b8f 100644 --- a/e2e/web/playwright.config.ts +++ b/e2e/web/playwright.config.ts @@ -33,7 +33,8 @@ export default defineConfig({ webServer: { timeout: 30_000, - command: 'pnpm --filter "@tasker/web" start', + // command: 'pnpm --filter "@tasker/web" start', + command: 'pnpm nx start "@tasker/web"', url: 'http://localhost:3000', reuseExistingServer: true, },