From f0a146ba93e0a363d9d849b18e6869c511568cd9 Mon Sep 17 00:00:00 2001 From: Parthvi <80334441+Parthvi12@users.noreply.github.com> Date: Fri, 17 Nov 2023 00:58:11 +0530 Subject: [PATCH] test: Cypress| fix ButtonWidgets_NavigateTo_Validation_spec.js (#28913) ## Description The test failed while navigating to appsmith website where it was asserting text on website, changed it to assert URL instead. ## Testing > #### How Has This Been Tested? locally --- .../Binding/ButtonWidgets_NavigateTo_validation_spec.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/client/cypress/e2e/Regression/ClientSide/Binding/ButtonWidgets_NavigateTo_validation_spec.js b/app/client/cypress/e2e/Regression/ClientSide/Binding/ButtonWidgets_NavigateTo_validation_spec.js index 83fa8a3e69..8c65268747 100644 --- a/app/client/cypress/e2e/Regression/ClientSide/Binding/ButtonWidgets_NavigateTo_validation_spec.js +++ b/app/client/cypress/e2e/Regression/ClientSide/Binding/ButtonWidgets_NavigateTo_validation_spec.js @@ -23,7 +23,7 @@ describe("Binding the button Widgets and validating NavigateTo Page functionalit cy.get(".t--code-editor-wrapper").type(testdata.externalPage); }); cy.wait(300); - //. Button click should take the control to page link validation", function () { + // Button click should take the control to page link validation", function () { deployMode.DeployApp(locators._widgetInDeployed(draggableWidgets.BUTTON)); cy.wait(2000); agHelper.ClickButton("Submit"); @@ -31,8 +31,8 @@ describe("Binding the button Widgets and validating NavigateTo Page functionalit agHelper.AssertElementAbsence( locators._widgetInDeployed(draggableWidgets.BUTTON), ); - agHelper.AssertElementVisibility( - locators._visibleTextSpan("Build the tools"), - ); + cy.url().should("contain", testdata.externalPage); + + }); });