Skip to content

Commit 9b8a0d3

Browse files
authored
Fix CI tests (#2897)
1 parent 75bd98d commit 9b8a0d3

File tree

2 files changed

+4
-33
lines changed

2 files changed

+4
-33
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -237,14 +237,8 @@ jobs:
237237
- name: Run Playwright tests
238238
run: bun e2e
239239
env:
240-
BASE_URL: ${{needs.deploy.outputs.deployment-url}}
240+
BASE_URL: ${{ needs.deploy.outputs.deployment-url }}
241241
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
242-
- uses: actions/upload-artifact@v4
243-
if: ${{ !cancelled() }}
244-
with:
245-
name: playwright-test-results
246-
path: packages/gitbook/test-results/
247-
retention-days: 3
248242
visual-testing-v2:
249243
runs-on: ubuntu-latest
250244
name: Visual Testing v2
@@ -262,15 +256,9 @@ jobs:
262256
- name: Run Playwright tests
263257
run: bun e2e
264258
env:
265-
BASE_URL: ${{needs.deploy-v2-vercel.outputs.deployment-url }}/url/
259+
BASE_URL: ${{ needs.deploy-v2-vercel.outputs.deployment-url }}/url/
266260
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
267261
ARGOS_BUILD_NAME: 'v2'
268-
- uses: actions/upload-artifact@v4
269-
if: ${{ !cancelled() }}
270-
with:
271-
name: playwright-test-results
272-
path: packages/gitbook/test-results/
273-
retention-days: 3
274262
visual-testing-customers:
275263
runs-on: ubuntu-latest
276264
name: Visual Testing Customers
@@ -288,15 +276,9 @@ jobs:
288276
- name: Run Playwright tests
289277
run: bun e2e-customers
290278
env:
291-
BASE_URL: ${{needs.deploy.outputs.deployment-url}}
279+
BASE_URL: ${{ needs.deploy.outputs.deployment-url }}
292280
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
293281
ARGOS_BUILD_NAME: 'customers'
294-
- uses: actions/upload-artifact@v4
295-
if: ${{ !cancelled() }}
296-
with:
297-
name: playwright-test-results-customers
298-
path: packages/gitbook/test-results/
299-
retention-days: 3
300282
visual-testing-customers-v2:
301283
runs-on: ubuntu-latest
302284
name: Visual Testing Customers v2
@@ -314,15 +296,9 @@ jobs:
314296
- name: Run Playwright tests
315297
run: bun e2e-customers
316298
env:
317-
BASE_URL: ${{needs.deploy-v2-vercel.outputs.deployment-url }}/url/
299+
BASE_URL: ${{ needs.deploy-v2-vercel.outputs.deployment-url }}/url/
318300
ARGOS_TOKEN: ${{ secrets.ARGOS_TOKEN }}
319301
ARGOS_BUILD_NAME: 'customers-v2'
320-
- uses: actions/upload-artifact@v4
321-
if: ${{ !cancelled() }}
322-
with:
323-
name: playwright-test-results-customers
324-
path: packages/gitbook/test-results/
325-
retention-days: 3
326302
pagespeed-testing:
327303
runs-on: ubuntu-latest
328304
name: PageSpeed Testing

packages/gitbook/e2e/util.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,6 @@ export function runTestCases(testCases: TestsCase[]) {
155155
);
156156
}
157157

158-
// Disable the Vercel toolbar
159-
await page.setExtraHTTPHeaders({
160-
'x-vercel-skip-toolbar': '1',
161-
});
162-
163158
await page.goto(url);
164159
if (testEntry.run) {
165160
await testEntry.run(page);

0 commit comments

Comments
 (0)