diff --git a/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/Widgets/List/List1_spec.js b/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/Widgets/List/List1_spec.js index 2918e0abb6..f8cb1b32a2 100644 --- a/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/Widgets/List/List1_spec.js +++ b/app/client/cypress/integration/Smoke_TestSuite/ClientSideTests/Widgets/List/List1_spec.js @@ -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---// + }) + });