@@ -28,21 +28,21 @@ describe('New Submission page', () => {
2828
2929 // Test entire page for accessibility
3030 testA11y ( 'ds-submission-edit' ,
31- {
32- rules : {
33- // Author & Subject fields have invalid "aria-multiline" attrs.
34- // See https://github.com/DSpace/dspace-angular/issues/1272
35- 'aria-allowed-attr' : { enabled : false } ,
36- // All panels are accordians & fail "aria-required-children" and "nested-interactive".
37- // Seem to require updating ng-bootstrap and https://github.com/DSpace/dspace-angular/issues/2216
38- 'aria-required-children' : { enabled : false } ,
39- 'nested-interactive' : { enabled : false } ,
40- // All select boxes fail to have a name / aria-label.
41- // This is a bug in ng-dynamic-forms and may require https://github.com/DSpace/dspace-angular/issues/2216
42- 'select-name' : { enabled : false } ,
43- } ,
44-
45- } as Options ,
31+ {
32+ rules : {
33+ // Author & Subject fields have invalid "aria-multiline" attrs.
34+ // See https://github.com/DSpace/dspace-angular/issues/1272
35+ 'aria-allowed-attr' : { enabled : false } ,
36+ // All panels are accordians & fail "aria-required-children" and "nested-interactive".
37+ // Seem to require updating ng-bootstrap and https://github.com/DSpace/dspace-angular/issues/2216
38+ 'aria-required-children' : { enabled : false } ,
39+ 'nested-interactive' : { enabled : false } ,
40+ // All select boxes fail to have a name / aria-label.
41+ // This is a bug in ng-dynamic-forms and may require https://github.com/DSpace/dspace-angular/issues/2216
42+ 'select-name' : { enabled : false } ,
43+ } ,
44+
45+ } as Options ,
4646 ) ;
4747
4848 // Discard button should work
@@ -123,7 +123,7 @@ describe('New Submission page', () => {
123123
124124 // Confirm the required license by checking checkbox
125125 // (NOTE: requires "force:true" cause Cypress claims this checkbox is covered by its own <span>)
126- cy . get ( 'input#granted' ) . check ( { force : true } ) ;
126+ cy . get ( 'input#granted' ) . check ( { force : true } ) ;
127127
128128 // Before using Cypress drag & drop, we have to manually trigger the "dragover" event.
129129 // This ensures our UI displays the dropzone that covers the entire submission page.
@@ -187,20 +187,23 @@ describe('New Submission page', () => {
187187 cy . get ( 'div#section_license' ) . should ( 'be.visible' ) ;
188188
189189 // Test entire page for accessibility
190- testA11y ( 'ds-submission-edit' ,
191- {
192- rules : {
193- // Author & Subject fields have invalid "aria-multiline" attrs.
194- // See https://github.com/DSpace/dspace-angular/issues/1272
195- 'aria-allowed-attr' : { enabled : false } ,
196-
197- // All panels are accordians & fail "aria-required-children" and "nested-interactive".
198- // Seem to require updating ng-bootstrap and https://github.com/DSpace/dspace-angular/issues/2216
199- 'aria-required-children' : { enabled : false } ,
200- 'nested-interactive' : { enabled : false } ,
201- } ,
202-
203- } as Options ,
190+ testA11y ( {
191+ include : [ 'ds-submission-edit' ] ,
192+ exclude : [ '.noUi-handle' ] ,
193+ } ,
194+ {
195+ rules : {
196+ // Author & Subject fields have invalid "aria-multiline" attrs.
197+ // See https://github.com/DSpace/dspace-angular/issues/1272
198+ 'aria-allowed-attr' : { enabled : false } ,
199+
200+ // All panels are accordians & fail "aria-required-children" and "nested-interactive".
201+ // Seem to require updating ng-bootstrap and https://github.com/DSpace/dspace-angular/issues/2216
202+ 'aria-required-children' : { enabled : false } ,
203+ 'nested-interactive' : { enabled : false } ,
204+ } ,
205+
206+ } as Options ,
204207 ) ;
205208
206209 // Back on the form, click the discard button to remove new submission
0 commit comments