From 4758cf2cd4650eb0180b9d0164654b32fa9ff7df Mon Sep 17 00:00:00 2001 From: Ejaaz Khan Date: Wed, 19 Feb 2025 19:13:15 +0530 Subject: [PATCH] test: add dynamic width in resize column --- cypress/integration/column.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/cypress/integration/column.js b/cypress/integration/column.js index c0dc160..3467e8e 100644 --- a/cypress/integration/column.js +++ b/cypress/integration/column.js @@ -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 () {