test: updated the list test (#17049)

updated the list test
This commit is contained in:
NandanAnantharamu 2022-10-10 23:26:19 +05:30 committed by GitHub
parent b47f04206f
commit b62720425b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,36 @@ import { ObjectsRegistry } from "../../../../../support/Objects/Registry";
let propPane = ObjectsRegistry.PropertyPane;
describe("Binding the list widget with text widget", function () {
//const modifierKey = Cypress.platform === "darwin" ? "meta" : "ctrl";
before(() => {
cy.addDsl(dsl);
});
it("1. Validate delete widget action from side bar", function () {
cy.openPropertyPane("listwidget");
cy.verifyUpdatedWidgetName("Test");
cy.verifyUpdatedWidgetName("#$%1234", "___1234");
cy.verifyUpdatedWidgetName("56789");
cy.get(".t--delete-widget").click({ force: true });
cy.get(".t--toast-action span")
.eq(0)
.contains("56789 is removed");
cy.wait("@updateLayout").should(
"have.nested.property",
"response.body.responseMeta.status",
200,
);
//cy.reload();
cy.wait(5000);
//cy.get(commonlocators.homeIcon).click({ force: true });
// eslint-disable-next-line cypress/no-unnecessary-waiting
});
});
describe("Binding the list widget with text widget", function () {
//const modifierKey = Cypress.platform === "darwin" ? "meta" : "ctrl";
@ -101,21 +131,10 @@ describe("Binding the list widget with text widget", function() {
cy.get(publish.backToEditor).click({ force: true });
});
it("4. Validate delete widget action from side bar", function() {
cy.openPropertyPane("listwidget");
cy.verifyUpdatedWidgetName("Test");
cy.verifyUpdatedWidgetName("#$%1234", "___1234");
cy.verifyUpdatedWidgetName("56789");
cy.get(".t--delete-widget").click({ force: true });
cy.get(".t--toast-action span")
.eq(0)
.contains("56789 is removed");
// cy.wait("@updateLayout").should(
// "have.nested.property",
// "response.body.responseMeta.status",
// 200,
// );
cy.reload();
cy.wait(2000);
});
after(function () {
//-- Deleting the application by Api---//
cy.DeleteAppByApi();
//-- LogOut Application---//
})
});