diff --git a/.github/actions/install-deps/action.yml b/.github/actions/install-deps/action.yml index b7d220b7f6..40c9aa43da 100644 --- a/.github/actions/install-deps/action.yml +++ b/.github/actions/install-deps/action.yml @@ -56,7 +56,8 @@ runs: id: setup-chrome uses: browser-actions/setup-chrome@b94431e051d1c52dcbe9a7092a4f10f827795416 # v2.1.0 with: - chrome-version: ${{ inputs.nightly == 'true' && 'beta' || 'stable' }} + # @see https://github.com/dequelabs/axe-core/issues/5027 + chrome-version: ${{ inputs.nightly == 'true' && 'beta' || 145 }} install-chromedriver: true install-dependencies: true - name: Install Firefox diff --git a/test/act-rules/act-runner.js b/test/act-rules/act-runner.js index 3d3eab094c..ae3a10fd68 100644 --- a/test/act-rules/act-runner.js +++ b/test/act-rules/act-runner.js @@ -47,7 +47,7 @@ module.exports = ({ id, title, axeRules, skipTests = [] }) => { }); after(async () => { - await driver.close(); + await driver.quit(); await new Promise(r => server.close(r)); }); diff --git a/test/aria-practices/apg.spec.js b/test/aria-practices/apg.spec.js index e03a4cc06c..aaebe6f149 100644 --- a/test/aria-practices/apg.spec.js +++ b/test/aria-practices/apg.spec.js @@ -28,7 +28,7 @@ describe('aria-practices', function () { }); after(async () => { - await driver.close(); + await driver.quit(); }); const disabledRules = { diff --git a/test/get-webdriver.js b/test/get-webdriver.js index c71a55710a..ce38fdaa4b 100644 --- a/test/get-webdriver.js +++ b/test/get-webdriver.js @@ -5,7 +5,12 @@ const chromedriverPath = const getWebdriver = () => { const service = new chrome.ServiceBuilder(chromedriverPath); - const options = new chrome.Options().addArguments('--headless'); + const options = new chrome.Options().addArguments( + '--headless', + '--no-sandbox', + '--disable-dev-shm-usage', + '--disable-gpu' + ); if (process.env.CHROME_BIN) { options.setBinaryPath(process.env.CHROME_BIN);