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
This commit is contained in:
NandanAnantharamu 2023-04-17 00:49:48 +05:30 committed by GitHub
parent cd36b2ac7d
commit f3db012811
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);