add aXe testing to conference views

test plan:
- run the spec files edited in this patch normally with
  yarn run jspec-watch path/to/spec
- tests should all pass as expected
- run the spec files edited in this patch with the new command
  yarn run a11y-report path/to/spec
- you should get aXe errors on existing a11y violations

Change-Id: Ic4c0fadd6aa6d51c6fe867ee9e3811d0d2f516d6
Reviewed-on: https://gerrit.instructure.com/130946
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
Product-Review: Matt Berns <mberns@instructure.com>
QA-Review: Matt Berns <mberns@instructure.com>
This commit is contained in:
Matthew Berns 2017-10-26 15:39:14 -05:00 committed by Matt Berns
parent f209c801b5
commit 4ad7e1375f
1 changed files with 6 additions and 1 deletions

View File

@ -22,8 +22,9 @@ define [
'jquery',
'helpers/I18nStubber',
'helpers/fakeENV'
'helpers/assertions'
'helpers/jquery.simulate'
], (Backbone, Conference, ConferenceView, $, I18nStubber, fakeENV) ->
], (Backbone, Conference, ConferenceView, $, I18nStubber, fakeENV, assertions) ->
fixtures = $('#fixtures')
conferenceView = (conferenceOpts = {}) ->
conference = new Conference
@ -43,6 +44,10 @@ define [
teardown: ->
fakeENV.teardown()
test 'it should be accessible', (assert) ->
done = assert.async()
assertions.isAccessible conferenceView(), done, {'a11yReport': true}
test 'renders', ->
view = conferenceView()
ok view