diff --git a/kayle/lib/runner.ts b/kayle/lib/runner.ts index 5c046b9..0bd7e0b 100644 --- a/kayle/lib/runner.ts +++ b/kayle/lib/runner.ts @@ -39,7 +39,7 @@ const IA_5 = "Principle4.Guideline4_1.4_1_2.H91.A.EmptyNoId"; const A_6 = "heading-order"; const H_6 = "Principle1.Guideline13.131A.G141"; // HeadingOrder map - const IA_6 = "Principle4.Guideline1_3.1_3_1_A.G141"; + const IA_6 = "Principle1.Guideline1_3.1_3_1_A.G141"; // oneshot map const scoreMap = new Map([ diff --git a/kayle/package.json b/kayle/package.json index cb1ec2f..a085817 100644 --- a/kayle/package.json +++ b/kayle/package.json @@ -1,6 +1,6 @@ { "name": "kayle", - "version": "0.7.2", + "version": "0.7.3", "description": "Extremely fast and accurate accessibility engine built for any headless tool like playwright or puppeteer.", "main": "./build/index.js", "keywords": [ diff --git a/kayle/tests/basic-ace.ts b/kayle/tests/basic-ace.ts index 8a568ef..904bd21 100644 --- a/kayle/tests/basic-ace.ts +++ b/kayle/tests/basic-ace.ts @@ -1,6 +1,6 @@ import assert from "assert"; import puppeteer from "puppeteer"; -import { kayle } from "kayle"; +import { Standard, kayle } from "kayle"; import { drakeMock } from "./mocks/html-mock"; import { performance } from "perf_hooks"; @@ -16,7 +16,7 @@ import { performance } from "perf_hooks"; browser, runners: ["ace"], includeWarnings: true, - standard: "WCAG2AA", + standard: Standard.WCAG2AA, html: drakeMock, origin: "https://www.drake.com", // origin is the fake url in place of the raw content }); @@ -31,7 +31,7 @@ import { performance } from "perf_hooks"; assert(Array.isArray(issues)); assert(meta.errorCount >= 55); assert(meta.warningCount === 42); - assert(meta.accessScore >= 40); + assert(meta.accessScore >= 30); assert(typeof pageUrl === "string"); assert(typeof documentTitle === "string"); diff --git a/kayle/tests/basic.ts b/kayle/tests/basic.ts index 728ed89..2bcb70b 100644 --- a/kayle/tests/basic.ts +++ b/kayle/tests/basic.ts @@ -30,7 +30,7 @@ import { performance } from "perf_hooks"; assert(Array.isArray(issues)); assert(meta.errorCount === 47); assert(meta.warningCount === 43); - assert(meta.accessScore === 50); + assert(meta.accessScore === 30); assert(typeof pageUrl === "string"); assert(typeof documentTitle === "string");