From 12271945e49c1c5e231eeb7a102787352bb2fda5 Mon Sep 17 00:00:00 2001 From: Maximilian Franzke Date: Thu, 23 Jan 2025 16:17:06 +0100 Subject: [PATCH] fix(pa11y): conditions --- .pa11yci | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.pa11yci b/.pa11yci index f60b353d2b..5894730975 100644 --- a/.pa11yci +++ b/.pa11yci @@ -6,7 +6,10 @@ "WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail" ], "chromeLaunchConfig": { - "executablePath": "/usr/bin/google-chrome" + "executablePath": "/usr/bin/google-chrome", + "args": [ + "--no-sandbox" + ] } }, "urls": [ diff --git a/package.json b/package.json index f318381b76..c8a36877a5 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "test": "start-server-and-test start :8080 'npm-run-all test:accessibility'", "test:visual-regression:test": "backstop test --config=./tests/backstop.json", "test:visual-regression:approve": "backstop approve --config=./tests/backstop.json", - "test:accessibility": "npx pa11y-ci", + "test:accessibility": "npx --no pa11y-ci", "test:lighthouse": "npx lighthouse http://localhost:8080/patterns/pages-sample-page/pages-sample-page.rendered.html --budget-path=.lighthouse-budget.json --view", "test:webhint": "npx hint http://localhost:8080/styleguide/html/styleguide.html", "lint": "npm-run-all -p lint:*",