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,14 +5,44 @@ import { ObjectsRegistry } from "../../../../../support/Objects/Registry";
let propPane = ObjectsRegistry.PropertyPane;
describe("Binding the list widget with text widget", function() {
describe("Binding the list widget with text widget", function () {
//const modifierKey = Cypress.platform === "darwin" ? "meta" : "ctrl";
before(() => {
cy.addDsl(dsl);
});
it("1. Validate text widget data based on changes in list widget Data1", function() {
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";
before(() => {
cy.addDsl(dsl);
});
it("1. Validate text widget data based on changes in list widget Data1", function () {
cy.PublishtheApp();
cy.wait(2000);
cy.get(".t--widget-textwidget span:contains('Vivek')").should(
@ -34,7 +64,7 @@ describe("Binding the list widget with text widget", function() {
);
});
it("2. Validate text widget data based on changes in list widget Data2", function() {
it("2. Validate text widget data based on changes in list widget Data2", function () {
cy.SearchEntityandOpen("List1");
propPane.UpdatePropertyFieldValue(
"Items",
@ -69,7 +99,7 @@ describe("Binding the list widget with text widget", function() {
cy.get(publish.backToEditor).click({ force: true });
});
it("3. Validate text widget data based on changes in list widget Data3", function() {
it("3. Validate text widget data based on changes in list widget Data3", function () {
cy.SearchEntityandOpen("List1");
propPane.UpdatePropertyFieldValue(
"Items",
@ -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---//
})
});