From f3db0128111f0ebf57c1bb9d961126e442977e45 Mon Sep 17 00:00:00 2001 From: NandanAnantharamu <67676905+NandanAnantharamu@users.noreply.github.com> Date: Mon, 17 Apr 2023 00:49:48 +0530 Subject: [PATCH] test: Updated flaky tests for tablev1 spec (#22189) Worked on fixing flaky test of tablev1: app/client/cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/TableV1/Table_tabledata_schema_spec.js --- .../Widgets/TableV1/Table_tabledata_schema_spec.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/client/cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/TableV1/Table_tabledata_schema_spec.js b/app/client/cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/TableV1/Table_tabledata_schema_spec.js index c2ed27ae58..f25c60c72e 100644 --- a/app/client/cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/TableV1/Table_tabledata_schema_spec.js +++ b/app/client/cypress/integration/Regression_TestSuite/ClientSideTests/Widgets/TableV1/Table_tabledata_schema_spec.js @@ -1,7 +1,7 @@ const explorer = require("../../../../../locators/explorerlocators.json"); import homePage from "../../../../../locators/HomePage"; const publish = require("../../../../../locators/publishWidgetspage.json"); -const dsl = require("../../../../../fixtures/tablev1NewDsl.json"); +const dsl = require("../../../../../fixtures/swtchTableDsl.json"); describe("Table Widget", function () { it("1. Table Widget Functionality To Check with changing schema of tabledata", () => { @@ -14,10 +14,7 @@ describe("Table Widget", function () { 201, ); cy.addDsl(dsl); - cy.get(explorer.addWidget).click(); - cy.dragAndDropToCanvas("switchwidget", { x: 200, y: 500 }); - cy.wait(1000); - cy.wait("@updateLayout"); + cy.wait(5000); cy.openPropertyPane("tablewidget"); cy.get(".t--property-control-tabledata").then(($el) => { cy.updateCodeInput($el, jsContext);