From d46305dcda4e0d4c79b4dc94076dae1c66efdfe3 Mon Sep 17 00:00:00 2001 From: Helen Hou-Sandi Date: Tue, 27 Oct 2026 15:38:52 -0400 Subject: [PATCH 1/2] Add accesslint to the list of scans in test workflow --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0b2aa77..e629444 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -80,7 +80,7 @@ jobs: repository: ${{ env.TESTING_REPOSITORY }} token: ${{ secrets.GH_TOKEN }} cache_key: ${{ steps.cache_key.outputs.cache_key }} - scans: '["axe", "reflow-scan"]' + scans: '["axe", "reflow-scan", "accesslint"]' - name: Retrieve cached results uses: ./.github/actions/gh-cache/restore From 13fe126c3bd43468b1444c589e01dc143ac61b7c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 28 Oct 2026 19:06:26 +0000 Subject: [PATCH 2/2] Update site test for AccessLint results Co-authored-by: helen <906334+helen@users.noreply.github.com> --- tests/site-with-errors.test.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/site-with-errors.test.ts b/tests/site-with-errors.test.ts index 59c6614..ec0003a 100644 --- a/tests/site-with-errors.test.ts +++ b/tests/site-with-errors.test.ts @@ -128,12 +128,14 @@ describe('site-with-errors', () => { }, ] // Check that: - // - every expected object exists (no more and no fewer), and + // - every expected Axe and reflow-scan object exists (no more and no fewer), and // - each object has all fields, and // - field values match expectations exactly // A specific order is _not_ enforced. - expect(actual).toHaveLength(expected.length) - expect(actual).toEqual(expect.arrayContaining(expected)) + const actualWithoutAccesslint = actual.filter(({scannerType}) => scannerType !== 'accesslint') + expect(actualWithoutAccesslint).toHaveLength(expected.length) + expect(actualWithoutAccesslint).toEqual(expect.arrayContaining(expected)) + expect(actual.some(({scannerType}) => scannerType === 'accesslint')).toBe(true) }) it('GITHUB_TOKEN environment variable is set', () => { @@ -164,7 +166,9 @@ describe('site-with-errors', () => { }) it('issues exist and have expected title, state, and assignee', async () => { - const actualTitles = issues.map(({title}) => title) + const actualTitles = issues + .filter((_, index) => results[index].findings[0].scannerType !== 'accesslint') + .map(({title}) => title) const expectedTitles = [ 'Accessibility issue: Elements must meet minimum color contrast ratio thresholds on /', 'Accessibility issue: Page should contain a level-one heading on /',