From 8a0b646c2115a460298256caa3572e9c38b1b1b5 Mon Sep 17 00:00:00 2001 From: yanguoyu <841185308@qq.com> Date: Thu, 18 Jul 2024 13:53:55 +0800 Subject: [PATCH] test: Wait for more times and build main before run e2e --- .github/workflows/playwright.yml | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 6982ed0d68..eb6f7d3c3e 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -17,6 +17,8 @@ jobs: run: yarn - name: Install Playwright Browsers run: npx playwright install --with-deps + - name: Build main + run: yarn build:main - name: Run Playwright tests run: yarn test:e2e - uses: actions/upload-artifact@v4 diff --git a/package.json b/package.json index 04e00a6278..693ee4716d 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "package:e2e": "yarn build && ./scripts/copy-ui-files.sh", "package:test": "yarn build && ./scripts/copy-ui-files.sh && ./scripts/package-for-test.sh", "test": "cross-env NODE_OPTIONS=--openssl-legacy-provider lerna run --parallel --load-env-files=false test", - "test:e2e": "concurrently \"cross-env BROWSER=none yarn run start:ui\" \"wait-on -t 10000 http://127.0.0.1:3000 && cd packages/e2e && yarn test:e2e\"", + "test:e2e": "concurrently \"cross-env BROWSER=none yarn run start:ui\" \"wait-on -t 30000 http://127.0.0.1:3000 && cd packages/e2e && yarn test:e2e\"", "test:ci": "yarn build:main && yarn test", "lint": "lerna run --stream lint", "postinstall": "husky install",