Merge pull request #28940 from appsmithorg/cherrypick/nav-cypress-fix

test: Cypress| fix ButtonWidgets_NavigateTo_Validation_spec.js (#28913)
This commit is contained in:
Trisha Anand 2023-11-17 21:15:47 +05:30 committed by GitHub
commit 55786d352c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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