From fe37adb9f7b01fd1801cf99efb1c585169a75d37 Mon Sep 17 00:00:00 2001 From: Michael Hyun Date: Mon, 2 Dec 2024 12:40:54 -0800 Subject: [PATCH 1/2] Add localhost:8080 host to hostfile for Linux --- .github/actions/setup-integration-test/action.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/actions/setup-integration-test/action.yml b/.github/actions/setup-integration-test/action.yml index 8b30c6748c..163bc2b383 100644 --- a/.github/actions/setup-integration-test/action.yml +++ b/.github/actions/setup-integration-test/action.yml @@ -67,3 +67,9 @@ runs: - name: Clean Install run: npm ci shell: bash + - name: Add localhost 8080 host to /etc/hosts for Linux only + shell: bash + if: runner.os == 'Linux' + run: | + sudo echo "127.0.0.1 localhost:8080" | sudo tee -a /etc/hosts + From 860edb5bf07ef4d9e26871487339db1e687ab49d Mon Sep 17 00:00:00 2001 From: Michael Hyun Date: Mon, 16 Dec 2024 11:36:57 -0800 Subject: [PATCH 2/2] testing --- .github/workflows/browser-compatibility-test.yml | 7 +++---- integration/js/utils/WebdriverSauceLabs.js | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/browser-compatibility-test.yml b/.github/workflows/browser-compatibility-test.yml index fe008dd029..2b02e33d8d 100644 --- a/.github/workflows/browser-compatibility-test.yml +++ b/.github/workflows/browser-compatibility-test.yml @@ -1,10 +1,9 @@ name: Browser Compatibility Test on: - schedule: - # More information on cron https://crontab.guru/ - # GitHub actions is using UTC time. Scheduling action at 5 am PST - - cron: '0 13 * * *' + pull_request: + branches: + - main env: SELENIUM_GRID_PROVIDER: saucelabs diff --git a/integration/js/utils/WebdriverSauceLabs.js b/integration/js/utils/WebdriverSauceLabs.js index 440d715636..51e71708f2 100644 --- a/integration/js/utils/WebdriverSauceLabs.js +++ b/integration/js/utils/WebdriverSauceLabs.js @@ -85,6 +85,10 @@ const getChromeOptions = capabilities => { } } + if (capabilities.platform.toUpperCase() === 'LINUX') { + chromeOptions['args'].push('--enable-features=WebRTCPipeWireCapturer') + } + /** * Recently, SauceLabs loads the web page in test and runs into "Your connection is not private" error. * Content share test is also failing with WebSocket connection failed issues which SauceLabs says may