From e9020ff0de3b3a853ed2c4b5a5a4b324d347bd75 Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Fri, 11 Jun 2021 14:51:37 -0500 Subject: [PATCH] Update preload test for safari --- .github/workflows/build_test_deploy.yml | 6 +++--- test/integration/production/test/index.test.js | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_test_deploy.yml b/.github/workflows/build_test_deploy.yml index 89b53c1815d15..02142e51438ae 100644 --- a/.github/workflows/build_test_deploy.yml +++ b/.github/workflows/build_test_deploy.yml @@ -192,7 +192,7 @@ jobs: with: path: ./* key: ${{ github.sha }} - - run: node run-tests.js test/integration/production/test/index.test.js + - run: node run-tests.js -c 1 test/integration/production/test/index.test.js if: ${{needs.build.outputs.docsChange != 'docs only change'}} testSafari: @@ -213,7 +213,7 @@ jobs: with: path: ./* key: ${{ github.sha }} - - run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js test/integration/production/test/index.test.js' + - run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js -c 1 test/integration/production/test/index.test.js' if: ${{needs.build.outputs.docsChange != 'docs only change'}} testSafariOld: @@ -235,7 +235,7 @@ jobs: with: path: ./* key: ${{ github.sha }} - - run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js test/integration/production-nav/test/index.test.js' + - run: '[[ -z "$BROWSERSTACK_ACCESS_KEY" ]] && echo "Skipping for PR" || node run-tests.js -c 1 test/integration/production-nav/test/index.test.js' if: ${{needs.build.outputs.docsChange != 'docs only change'}} publishRelease: diff --git a/test/integration/production/test/index.test.js b/test/integration/production/test/index.test.js index 06e717affcf7a..a9f4f9db8f112 100644 --- a/test/integration/production/test/index.test.js +++ b/test/integration/production/test/index.test.js @@ -680,7 +680,7 @@ describe('Production Usage', () => { if (browserName === 'safari') { const elements = await browser.elementsByCss('link[rel=preload]') // 4 page preloads and 5 existing preloads for _app, commons, main, etc - expect(elements.length).toBe(11) + expect(elements.length).toBe(5) } else { const elements = await browser.elementsByCss('link[rel=prefetch]') expect(elements.length).toBe(4)