File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -161,11 +161,13 @@ describe('getTableColumnSorter', () => {
161
161
162
162
it ( 'finds column sorter by column label' , ( ) => {
163
163
getTableColumnSorter ( idLabel ) . should ( 'not.exist' )
164
- getTableColumnSorter ( nameLabel ) . should ( 'be.visible' ) . click ( ) . should ( 'have.class' , 'active' )
164
+ // Force this because the descending sorter has a negative margin and partially covers the ascending sorter.
165
+ getTableColumnSorter ( nameLabel ) . should ( 'be.visible' ) . click ( { force : true } ) . should ( 'have.class' , 'active' )
165
166
} )
166
167
167
168
it ( 'finds column sorter for specific sort order' , ( ) => {
168
- getTableColumnSorter ( 1 ) . click ( )
169
+ // Force this because the descending sorter has a negative margin and partially covers the ascending sorter.
170
+ getTableColumnSorter ( 1 ) . click ( { force : true } )
169
171
getTableColumnSorter ( 1 , { sortOrder : SORT_ORDER . DESCENDING } ) . should ( 'not.have.class' , 'active' )
170
172
} )
171
173
} )
You can’t perform that action at this time.
0 commit comments