From 8ccf68f7e0cfa668eb6b2ac132987a9ab50e9ea9 Mon Sep 17 00:00:00 2001 From: Tessa Kelly Date: Thu, 14 Apr 2022 10:34:13 -0700 Subject: [PATCH] Adds axe checks to icon processing --- script/percy-tests.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/percy-tests.js b/script/percy-tests.js index 3a1a1e52..f47563c6 100644 --- a/script/percy-tests.js +++ b/script/percy-tests.js @@ -67,6 +67,9 @@ describe('UI tests', function () { await percySnapshot(page, `${name} - display icon names`) console.log(`Snapshots complete for ${name}`) + + const results = await new AxePuppeteer(page).disableRules(skippedRules[name] || []).analyze(); + handleAxeResults(results); } const skippedRules = {