test: Cypress - TableV2/pagesize spec fix (#21611)
## Description - This PR fixes the pagesize_spec.js from TableV2 folder which is now consistently failing in CI ## Type of change - Script fix ## How Has This Been Tested? - Cypress local run ## Checklist: ### QA activity: - [X] Added Test Plan Approved label after reviewing all Cypress changes
This commit is contained in:
parent
d61fc746ac
commit
e959360dbb
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user