Skip to content

Commit ebe4076

Browse files
committed
Fix table sorter tests
1 parent 8d9d09d commit ebe4076

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cypress/integration/table.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,11 +161,13 @@ describe('getTableColumnSorter', () => {
161161

162162
it('finds column sorter by column label', () => {
163163
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')
165166
})
166167

167168
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 })
169171
getTableColumnSorter(1, { sortOrder: SORT_ORDER.DESCENDING }).should('not.have.class', 'active')
170172
})
171173
})

0 commit comments

Comments
 (0)