Gaia Marionette Integration (Gij) and accessibility

Skip to first unread message

Yura Zenevich

Sep 15, 2015, 2:44:46 PM9/15/15
to dev-gaia
Hi again Gaia,

Julien suggested I mention it on the list so here it is.

If you are writing or maintaining Gij tests, you can now enable various accessibility checks that are now built in into marionette. You do not actually need to write anything specific to test for accessibility as the checks run during normal flow of actions and events.

For example, whenever you tests clicks or taps on an element marionette will also check if an accessibility (screen reader) user can do that as well. Whenever your test checks if something is enabled or visible, marionette will check if this is also true for a screen reader user. It also does some nice things in terms of checking for keyboard focusability, obstruction with pointer-events: none, labelling and naming, etc.

There are 2 implications: 

If you are writing new marionette JavaScript tests, please try to enable accessibility checks by default, see [1] as an example.

You can also try enabling accessibility checks for your existing test howeverm if something in the app that the test checks is not accessible (for example an icon button has no label, or something is hidden off screen, but actually visible to the screen reader), you will see your tests failing. Example from [1] also applies.

Note: I ran most of the tests with the a11y checks in place already and enabled most of the ones that reliably pass. This means that if some tests do not yet have them enabled, they are likely failing.



Kevin Grandon

Sep 15, 2015, 5:02:31 PM9/15/15
to Yura Zenevich, dev-gaia,
Please send to dev-fxos in the future.

It's great to have these checks, thanks for the work!


dev-gaia mailing list

Julien Wajsberg

Sep 16, 2015, 12:24:35 PM9/16/15
Hey Yura,

thanks for the detailed write-up :)

Do you have the full list of accessibiltiy checks that are done ?
As a sub-question, do you know if this could work for websites with selenium as well, since we use the same subsystem ?
Reply all
Reply to author
0 new messages