From 9b8a0d3e5479dc2dfd46b30e9cb224fbcb829f8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Greg=20Berg=C3=A9?= Date: Fri, 28 Feb 2025 10:14:09 +0100 Subject: [PATCH] Fix CI tests (#2897) --- .github/workflows/ci.yaml | 32 ++++---------------------------- packages/gitbook/e2e/util.ts | 5 ----- 2 files changed, 4 insertions(+), 33 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2821d0731..5714181eb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -237,14 +237,8 @@ jobs: - name: Run Playwright tests run: bun e2e env: - BASE_URL: ${{needs.deploy.outputs.deployment-url}} + BASE_URL: ${{ needs.deploy.outputs.deployment-url }} ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }} - - uses: actions/upload-artifact@v4 - if: ${{ !cancelled() }} - with: - name: playwright-test-results - path: packages/gitbook/test-results/ - retention-days: 3 visual-testing-v2: runs-on: ubuntu-latest name: Visual Testing v2 @@ -262,15 +256,9 @@ jobs: - name: Run Playwright tests run: bun e2e env: - BASE_URL: ${{needs.deploy-v2-vercel.outputs.deployment-url }}/url/ + BASE_URL: ${{ needs.deploy-v2-vercel.outputs.deployment-url }}/url/ ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }} ARGOS_BUILD_NAME: 'v2' - - uses: actions/upload-artifact@v4 - if: ${{ !cancelled() }} - with: - name: playwright-test-results - path: packages/gitbook/test-results/ - retention-days: 3 visual-testing-customers: runs-on: ubuntu-latest name: Visual Testing Customers @@ -288,15 +276,9 @@ jobs: - name: Run Playwright tests run: bun e2e-customers env: - BASE_URL: ${{needs.deploy.outputs.deployment-url}} + BASE_URL: ${{ needs.deploy.outputs.deployment-url }} ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }} ARGOS_BUILD_NAME: 'customers' - - uses: actions/upload-artifact@v4 - if: ${{ !cancelled() }} - with: - name: playwright-test-results-customers - path: packages/gitbook/test-results/ - retention-days: 3 visual-testing-customers-v2: runs-on: ubuntu-latest name: Visual Testing Customers v2 @@ -314,15 +296,9 @@ jobs: - name: Run Playwright tests run: bun e2e-customers env: - BASE_URL: ${{needs.deploy-v2-vercel.outputs.deployment-url }}/url/ + BASE_URL: ${{ needs.deploy-v2-vercel.outputs.deployment-url }}/url/ ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }} ARGOS_BUILD_NAME: 'customers-v2' - - uses: actions/upload-artifact@v4 - if: ${{ !cancelled() }} - with: - name: playwright-test-results-customers - path: packages/gitbook/test-results/ - retention-days: 3 pagespeed-testing: runs-on: ubuntu-latest name: PageSpeed Testing diff --git a/packages/gitbook/e2e/util.ts b/packages/gitbook/e2e/util.ts index 832b43e33..6c8e8fb97 100644 --- a/packages/gitbook/e2e/util.ts +++ b/packages/gitbook/e2e/util.ts @@ -155,11 +155,6 @@ export function runTestCases(testCases: TestsCase[]) { ); } - // Disable the Vercel toolbar - await page.setExtraHTTPHeaders({ - 'x-vercel-skip-toolbar': '1', - }); - await page.goto(url); if (testEntry.run) { await testEntry.run(page);