Skip to content

Commit

Permalink
test: Fix column resize test
Browse files Browse the repository at this point in the history
  • Loading branch information
netchampfaris committed Mar 30, 2019
1 parent 3b088a9 commit 9a5a0b6
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions cypress/integration/column.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,19 @@ describe('Column', function () {
.trigger('mousemove', { pageX: 510, pageY: 20, which: 1 })
.trigger('mouseup');

cy.getColumnCell(3).should('have.css', 'width', '123px');
cy.getCell(3, 1).should('have.css', 'width', '123px');
cy.getColumnCell(3)
.should('have.css', 'width')
.and('match', /12\dpx/);
cy.getCell(3, 1)
.should('have.css', 'width')
.and('match', /12\dpx/);
});

it('resize column using double click', function () {
cy.get('.dt-cell--header-4 .dt-cell__resize-handle').trigger('dblclick');
cy.getColumnCell(4).should('have.css', 'width', '94px');
cy.getCell(4, 1).should('have.css', 'width', '94px');
cy.getColumnCell(4).should('have.css', 'width')
.and('match', /9\dpx/);
cy.getCell(4, 1).should('have.css', 'width')
.and('match', /9\dpx/);
});
});

0 comments on commit 9a5a0b6

Please sign in to comment.