File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
e2e/testcafe-devextreme/helpers/accessibility Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,16 @@ export const testAccessibility = <TComponentOptions = unknown>(
4545
4646 optionConfigurations . forEach ( ( optionConfiguration , index ) => {
4747 test ( `${ component } : test with axe #${ index } ` , async ( t ) => {
48- await a11yCheck ( t , a11yCheckConfig , selector , optionConfiguration ) ;
48+ const currentA11yCheckConfig = { ...a11yCheckConfig } ;
49+
50+ if ( component === 'dxTagBox' && ( optionConfiguration as any ) . disabled ) {
51+ currentA11yCheckConfig . rules = {
52+ ...currentA11yCheckConfig . rules ,
53+ 'color-contrast' : { enabled : false } ,
54+ } ;
55+ }
56+
57+ await a11yCheck ( t , currentA11yCheckConfig , selector , optionConfiguration ) ;
4958 } ) . before ( async ( t ) => {
5059 await createWidget (
5160 component ,
You can’t perform that action at this time.
0 commit comments