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('mouseup');
cy.getColumnCell(4)
.should('have.css', 'width')
.and('match', /^72\d*(\.\d+)?px$/);
cy.getCell(4, 1)
.should('have.css', 'width')
.and('match', /^72\d*(\.\d+)?px$/);
cy.getColumnCell(4).invoke('css', 'width').then((width) => {
cy.getColumnCell(4)
.should('have.css', 'width', width);
cy.getCell(4, 1)
.should('have.css', 'width', width);
});
});
it('resize column using double click', function () {