diff --git a/app/client/cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/TableV2/pagesize_spec.js b/app/client/cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/TableV2/pagesize_spec.js index d2feaf062e..558cd09b57 100644 --- a/app/client/cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/TableV2/pagesize_spec.js +++ b/app/client/cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/TableV2/pagesize_spec.js @@ -13,9 +13,16 @@ describe("Table widget v2", function () { cy.moveToStyleTab(); cy.wait(1000); //for style tab to settle cy.get(".t--button-group-SHORT").should("be.visible"); - cy.get(".t--button-group-SHORT").click(); - cy.wait(1000); //for table to-align to Short click - cy.get(".t--widget-textwidget .bp3-ui-text").should("contain", "7"); + cy.get(".t--button-group-SHORT") + .invoke("attr", "aria-selected") + .then((sel) => { + cy.log("sel for short is " + sel); + if (sel === "false") { + cy.get(".t--button-group-SHORT").click({ force: true }); + cy.wait(1000); //for table to-align to Short click + cy.get(".t--widget-textwidget .bp3-ui-text").should("contain", "7"); + } + }); cy.get(".t--button-group-DEFAULT").click({ force: true }); cy.get(".t--widget-textwidget .bp3-ui-text").should("contain", "5");