@govtechsg/oobee 0.10.21 → 0.10.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/docker-test.yml +1 -1
- package/DETAILS.md +40 -25
- package/Dockerfile +41 -47
- package/INSTALLATION.md +1 -1
- package/LICENSE-3RD-PARTY-REPORT.txt +448 -0
- package/LICENSE-3RD-PARTY.txt +19913 -0
- package/README.md +10 -2
- package/__mocks__/mock-report.html +1503 -1360
- package/package.json +8 -4
- package/scripts/decodeUnzipParse.js +29 -0
- package/scripts/install_oobee_dependencies.command +2 -2
- package/scripts/install_oobee_dependencies.ps1 +3 -3
- package/src/cli.ts +3 -2
- package/src/combine.ts +1 -0
- package/src/constants/cliFunctions.ts +17 -3
- package/src/constants/common.ts +29 -5
- package/src/constants/constants.ts +28 -26
- package/src/constants/questions.ts +4 -1
- package/src/crawlers/commonCrawlerFunc.ts +159 -187
- package/src/crawlers/crawlDomain.ts +29 -30
- package/src/crawlers/crawlIntelligentSitemap.ts +7 -1
- package/src/crawlers/crawlLocalFile.ts +1 -1
- package/src/crawlers/crawlSitemap.ts +1 -1
- package/src/crawlers/custom/flagUnlabelledClickableElements.ts +546 -472
- package/src/crawlers/customAxeFunctions.ts +2 -2
- package/src/index.ts +0 -2
- package/src/mergeAxeResults.ts +608 -220
- package/src/screenshotFunc/pdfScreenshotFunc.ts +3 -3
- package/src/static/ejs/partials/components/wcagCompliance.ejs +10 -29
- package/src/static/ejs/partials/footer.ejs +10 -13
- package/src/static/ejs/partials/scripts/categorySummary.ejs +2 -2
- package/src/static/ejs/partials/scripts/decodeUnzipParse.ejs +3 -0
- package/src/static/ejs/partials/scripts/reportSearch.ejs +1 -0
- package/src/static/ejs/partials/scripts/ruleOffcanvas.ejs +54 -52
- package/src/static/ejs/partials/styles/styles.ejs +4 -0
- package/src/static/ejs/partials/summaryMain.ejs +15 -42
- package/src/static/ejs/report.ejs +21 -12
- package/src/utils.ts +10 -2
- package/src/xPathToCss.ts +186 -0
- package/a11y-scan-results.zip +0 -0
- package/src/types/xpath-to-css.d.ts +0 -3
@@ -56,7 +56,7 @@ export const customAxeConfig: Spec = {
|
|
56
56
|
// selector: '*', // to be set with the checker function output xpaths converted to css selectors
|
57
57
|
enabled: true,
|
58
58
|
any: ['oobee-accessible-label'],
|
59
|
-
tags: ['wcag2a', 'wcag211', '
|
59
|
+
tags: ['wcag2a', 'wcag211', 'wcag412'],
|
60
60
|
metadata: {
|
61
61
|
description: 'Ensures clickable elements have an accessible label.',
|
62
62
|
help: 'Clickable elements must have accessible labels.',
|
@@ -68,7 +68,7 @@ export const customAxeConfig: Spec = {
|
|
68
68
|
selector: 'html',
|
69
69
|
enabled: true,
|
70
70
|
any: ['oobee-grading-text-contents'],
|
71
|
-
tags: ['
|
71
|
+
tags: ['wcag2aaa', 'wcag315'],
|
72
72
|
metadata: {
|
73
73
|
description:
|
74
74
|
'Text content should be easy to understand for individuals with education levels up to university graduates. If the text content is difficult to understand, provide supplemental content or a version that is easy to understand.',
|
package/src/index.ts
CHANGED
@@ -7,7 +7,6 @@ import { EnqueueStrategy } from 'crawlee';
|
|
7
7
|
import {
|
8
8
|
getVersion,
|
9
9
|
cleanUp,
|
10
|
-
setHeadlessMode,
|
11
10
|
getUserDataTxt,
|
12
11
|
writeToUserDataTxt,
|
13
12
|
} from './utils.js';
|
@@ -111,7 +110,6 @@ const runScan = async (answers: Answers) => {
|
|
111
110
|
const data: Data = await prepareData(answers);
|
112
111
|
data.userDataDirectory = getClonedProfilesWithRandomToken(data.browser, data.randomToken);
|
113
112
|
|
114
|
-
setHeadlessMode(data.browser, data.isHeadless);
|
115
113
|
printMessage(['Scanning website...'], messageOptions);
|
116
114
|
|
117
115
|
await combineRun(data, screenToScan);
|