test: add dynamic width in resize column

This commit is contained in:
Ejaaz Khan 2025-02-19 19:13:15 +05:30
parent 584d964a72
commit 4758cf2cd4

View File

@ -52,12 +52,12 @@ describe('Column', function () {
.trigger('mousemove', { pageX: 700, pageY: 20, which: 1 }) .trigger('mousemove', { pageX: 700, pageY: 20, which: 1 })
.trigger('mouseup'); .trigger('mouseup');
cy.getColumnCell(4) cy.getColumnCell(4).invoke('css', 'width').then((width) => {
.should('have.css', 'width') cy.getColumnCell(4)
.and('match', /^72\d*(\.\d+)?px$/); .should('have.css', 'width', width);
cy.getCell(4, 1) cy.getCell(4, 1)
.should('have.css', 'width') .should('have.css', 'width', width);
.and('match', /^72\d*(\.\d+)?px$/); });
}); });
it('resize column using double click', function () { it('resize column using double click', function () {