kibana/test/accessibility
Kibana Machine 9af96a8009
[Enterprise Search] Set up cypress-axe tests (#108465) (#109920)
* Set up cypress-axe

@see https://github.com/component-driven/cypress-axe

* DRY out Kibana axe rules into constants that Cypress can use

* Create shared & configured checkA11y command

+ fix string union type error
+ remove unnecessary tsconfig exclude

* Add Overview plugin a11y tests

* Add AS & WS placeholder a11y checks

- Mostly just re-exporting the shared command and checking for failures, I only ran this after the shared axe config settings and found no failures

* Configure our axe settings further to catch best practices

- notably heading level issues (thanks Byron for catching this!)

- however I now also need to set an ignore on a duplicate landmark violation caused by the global header (not sure why it's showing up - shouldn't it be out of context? bah)

- remove option to pass args into checkA11y - I figure it's not super likely we'll need to override axe settings per-page (vs not running it), but we can pass it custom configs or args later if needed

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Constance <constancecchen@users.noreply.github.com>
2021-08-24 21:28:49 +00:00
..
apps [Index pattern field editor] Add preview for runtime fields (#100198) (#108611) 2021-08-13 21:31:21 -04:00
services [Enterprise Search] Set up cypress-axe tests (#108465) (#109920) 2021-08-24 21:28:49 +00:00
config.ts [kbn/test] move types/ftr into src (#99555) (#100228) 2021-05-17 14:49:48 -04:00
ftr_provider_context.ts [7.x] [ts] migrate root test dir to project refs (#99148) (#101416) 2021-06-04 16:22:00 -04:00
page_objects.ts