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)"}]}} diff --git a/catalog-info.yaml b/catalog-info.yaml new file mode 100644 index 0000000..b0688f8 --- /dev/null +++ b/catalog-info.yaml @@ -0,0 +1,20 @@ +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 + # 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 + 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