Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit dbbe15b

Browse files
authored
Update preload test for safari (vercel#26020)
1 parent 0b3754a commit dbbe15b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/build_test_deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ jobs:
192192
with:
193193
path: ./*
194194
key: ${{ github.sha }}
195-
- run: node run-tests.js test/integration/production/test/index.test.js
195+
- run: node run-tests.js -c 1 test/integration/production/test/index.test.js
196196
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
197197

198198
testSafari:
@@ -213,7 +213,7 @@ jobs:
213213
with:
214214
path: ./*
215215
key: ${{ github.sha }}
216-
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js test/integration/production/test/index.test.js'
216+
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js -c 1 test/integration/production/test/index.test.js'
217217
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
218218

219219
testSafariOld:
@@ -235,7 +235,7 @@ jobs:
235235
with:
236236
path: ./*
237237
key: ${{ github.sha }}
238-
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js test/integration/production-nav/test/index.test.js'
238+
- run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js -c 1 test/integration/production-nav/test/index.test.js'
239239
if: ${{needs.build.outputs.docsChange != 'docs only change'}}
240240

241241
publishRelease:

test/integration/production/test/index.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ describe('Production Usage', () => {
680680
if (browserName === 'safari') {
681681
const elements = await browser.elementsByCss('link[rel=preload]')
682682
// 4 page preloads and 5 existing preloads for _app, commons, main, etc
683-
expect(elements.length).toBe(11)
683+
expect(elements.length).toBe(5)
684684
} else {
685685
const elements = await browser.elementsByCss('link[rel=prefetch]')
686686
expect(elements.length).toBe(4)

0 commit comments

Comments
 (0)