diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7988fcc0c5..f23ad97940 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -131,6 +131,10 @@ jobs: runs-on: ubuntu-24.04 timeout-minutes: 10 needs: build + strategy: + fail-fast: false + matrix: + run_number: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] steps: - *checkout - *install-deps diff --git a/test/act-rules/act-runner.js b/test/act-rules/act-runner.js index 3d3eab094c..5936355816 100644 --- a/test/act-rules/act-runner.js +++ b/test/act-rules/act-runner.js @@ -47,8 +47,13 @@ module.exports = ({ id, title, axeRules, skipTests = [] }) => { }); after(async () => { - await driver.close(); - await new Promise(r => server.close(r)); + try { + if (driver) await driver.quit(); + } catch (err) { + console.error('Error quitting driver:', err.message); + } finally { + if (server) await new Promise(r => server.close(r)); + } }); testcases.forEach(testcase => { diff --git a/test/get-webdriver.js b/test/get-webdriver.js index c71a55710a..a73edbb39b 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-extensions', + '--disable-dev-shm-usage' + ]); if (process.env.CHROME_BIN) { options.setBinaryPath(process.env.CHROME_BIN);