From b95a2a39e82ca4ca8f1a01003505833eb9873dd5 Mon Sep 17 00:00:00 2001 From: Hannah Date: Wed, 14 Jun 2023 14:53:05 +0100 Subject: [PATCH 1/5] EIUNAB-33645 --- catalog-info.yaml | 12 ++++++++++++ docs/index.md | 8 ++++++++ mkdocs.yml | 5 +++++ 3 files changed, 25 insertions(+) create mode 100644 catalog-info.yaml create mode 100644 docs/index.md create mode 100644 mkdocs.yml diff --git a/catalog-info.yaml b/catalog-info.yaml new file mode 100644 index 0000000..e499071 --- /dev/null +++ b/catalog-info.yaml @@ -0,0 +1,12 @@ +apiVersion: backstage.io/v1beta1 +kind: Component +metadata: + name: a11-y-testing-example + namespace: economist-impact + annotations: + github.com/project-slug: signal-noise/a11y-testing-example + backstage.io/techdocs-ref: dir:. +spec: + type: website + lifecycle: production + owner: group:economist-impact/enablement diff --git a/docs/index.md b/docs/index.md new file mode 100644 index 0000000..466c2ab --- /dev/null +++ b/docs/index.md @@ -0,0 +1,8 @@ +## In progress + + +This repo exist to demonstrate an approach to accesibility testing using Github actions and Pa11y for [an in progress RFC](https://github.com/signal-noise/rfcs/pulls) + +HTML based on [HTML 5 boilerplate](https://html5boilerplate.com/)` + +`npm run test` \ No newline at end of file diff --git a/mkdocs.yml b/mkdocs.yml new file mode 100644 index 0000000..a569f5f --- /dev/null +++ b/mkdocs.yml @@ -0,0 +1,5 @@ +docs_dir: docs +nav: + - Main: index.md +plugins: + - techdocs-core From 7c6c48d11ebabec4ec86c5b6e6263b7442542ebc Mon Sep 17 00:00:00 2001 From: Automated Date: Wed, 14 Jun 2023 13:54:42 +0000 Subject: [PATCH 2/5] Accessibility report: Wed Jun 14 13:54:42 UTC 2023 --- a11y-report.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/a11y-report.json b/a11y-report.json index 719016e..39ddfc2 100644 --- a/a11y-report.json +++ b/a11y-report.json @@ -1 +1 @@ -{"total":2,"passes":1,"errors":3,"results":{"http://localhost:5000/good.html":[],"http://localhost:5000/bad.html":[{"code":"WCAG2AA.Principle2.Guideline2_4.2_4_2.H25.1.EmptyTitle","type":"error","typeCode":1,"message":"The title element in the head section should be non-empty.","context":"","selector":"html > head > title","runner":"htmlcs","runnerExtras":{}},{"code":"WCAG2AA.Principle3.Guideline3_1.3_1_1.H57.3.Lang","type":"error","typeCode":1,"message":"The language specified in the lang attribute of the document element does not appear to be well-formed.","context":null,"selector":"","runner":"htmlcs","runnerExtras":{}},{"code":"WCAG2AA.Principle1.Guideline1_4.1_4_3.G18.Fail","type":"error","typeCode":1,"message":"This element has insufficient contrast at this conformance level. Expected a contrast ratio of at least 4.5:1, but text in this element has a contrast ratio of 2.77:1. Recommendation: change text colour to #fff.","context":"

\n This page should fail acce...

","selector":"html > body > p","runner":"htmlcs","runnerExtras":{}}]}} +{"total":2,"passes":0,"errors":0,"results":{"http://localhost:5000/good.html":[{"message":"Pa11y timed out (30000ms)"}],"http://localhost:5000/bad.html":[{"message":"Pa11y timed out (30000ms)"}]}} From eceae33aa0fb602f23db380221cc07006d26d904 Mon Sep 17 00:00:00 2001 From: impactyogi <40470099+impactyogi@users.noreply.github.com> Date: Wed, 19 Jul 2023 17:23:32 +0100 Subject: [PATCH 3/5] Delete a11y-report.json --- a11y-report.json | 1 - 1 file changed, 1 deletion(-) delete mode 100644 a11y-report.json diff --git a/a11y-report.json b/a11y-report.json deleted file mode 100644 index 39ddfc2..0000000 --- a/a11y-report.json +++ /dev/null @@ -1 +0,0 @@ -{"total":2,"passes":0,"errors":0,"results":{"http://localhost:5000/good.html":[{"message":"Pa11y timed out (30000ms)"}],"http://localhost:5000/bad.html":[{"message":"Pa11y timed out (30000ms)"}]}} From b4f02717325435c063f1242525935a2fe234dd0d Mon Sep 17 00:00:00 2001 From: impactyogi <40470099+impactyogi@users.noreply.github.com> Date: Wed, 19 Jul 2023 17:24:11 +0100 Subject: [PATCH 4/5] Update catalog-info.yaml --- catalog-info.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/catalog-info.yaml b/catalog-info.yaml index e499071..b0688f8 100644 --- a/catalog-info.yaml +++ b/catalog-info.yaml @@ -5,6 +5,14 @@ metadata: namespace: economist-impact annotations: github.com/project-slug: signal-noise/a11y-testing-example + # the circleCI project, mirrors github repo in this case: + circleci.com/project-slug: github/signal-noise/a11y-testing-example + # GUID - see https://docs.newrelic.com/docs/query-your-data/explore-query-data/dashboards/manage-your-dashboard/ + newrelic.com/dashboard-guid: MzY1MjgxOXxWSVp8REFTSEJPQVJEfGRhOjE3MDkwOA + newrelic.com/dashboard-guid: MzY1MjgxOXxWSVp8REFTSEJPQVJEfGRhOjE5NTIyNw + description: covid-relative-risk for SignalNoise Economist Impact Project + opsgenie: + domain: https://economist.app.opsgenie.com/teams/dashboard/49177ca8-5e59-4364-af23-c22cc60c026f/main backstage.io/techdocs-ref: dir:. spec: type: website From 1289d709149fa39fc65e1165c1eebad15f7909c7 Mon Sep 17 00:00:00 2001 From: Automated Date: Wed, 19 Jul 2023 16:25:11 +0000 Subject: [PATCH 5/5] Accessibility report: Wed Jul 19 16:25:11 UTC 2023 --- a11y-report.json | 1 + 1 file changed, 1 insertion(+) create mode 100644 a11y-report.json diff --git a/a11y-report.json b/a11y-report.json new file mode 100644 index 0000000..39ddfc2 --- /dev/null +++ b/a11y-report.json @@ -0,0 +1 @@ +{"total":2,"passes":0,"errors":0,"results":{"http://localhost:5000/good.html":[{"message":"Pa11y timed out (30000ms)"}],"http://localhost:5000/bad.html":[{"message":"Pa11y timed out (30000ms)"}]}}