Please send to dev-fxos in the future.
It's great to have these checks, thanks for the work!
Best,Kevin 


     On Tuesday, September 15, 2015 11:44 AM, Yura Zenevich 
<[email protected]> wrote:
   

 #yiv4761787280 body{font-family:Helvetica, Arial;font-size:13px;}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.
Cheers,
Yura
1. 
https://github.com/mozilla-b2g/gaia/blob/master/apps/system/test/marionette/ambient_indicator_test.js#L15
_______________________________________________
dev-gaia mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-gaia


  
_______________________________________________
dev-fxos mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-fxos

Reply via email to