test: Cypress | Api_pane_navigation_spec.ts method reference fix (#26264)
## Description - This PR updates the AssertElementVisibility() references that got missed from a new file
This commit is contained in:
parent
54e666be16
commit
d7a4564241
|
|
@ -26,13 +26,14 @@ describe("excludeForAirgap", "Api pane navigation", () => {
|
|||
debuggerHelper.ClickDebuggerIcon();
|
||||
debuggerHelper.ClicklogEntityLink();
|
||||
|
||||
agHelper.AssertElementVisible(apiPage._nextCursorValue);
|
||||
agHelper.AssertElementVisibility(apiPage._nextCursorValue);
|
||||
debuggerHelper.CloseBottomBar();
|
||||
entityExplorer.ActionContextMenuByEntityName({
|
||||
entityNameinLeftSidebar: "Api1",
|
||||
entityType: entityItems.Api,
|
||||
});
|
||||
});
|
||||
|
||||
it("2. Navigation to rest api pagination field", () => {
|
||||
apiPage.CreateApi("Api2");
|
||||
apiPage.SelectPaneTab("Body");
|
||||
|
|
@ -49,13 +50,14 @@ describe("excludeForAirgap", "Api pane navigation", () => {
|
|||
debuggerHelper.ClickDebuggerIcon();
|
||||
debuggerHelper.ClicklogEntityLink();
|
||||
|
||||
agHelper.AssertElementVisible(apiPage._bodyValue(0));
|
||||
agHelper.AssertElementVisibility(apiPage._bodyValue(0));
|
||||
debuggerHelper.CloseBottomBar();
|
||||
entityExplorer.ActionContextMenuByEntityName({
|
||||
entityNameinLeftSidebar: "Api2",
|
||||
entityType: entityItems.Api,
|
||||
});
|
||||
});
|
||||
|
||||
it("3. Navigation to a grapql settings field", () => {
|
||||
apiPage.CreateGraphqlApi("Api3");
|
||||
apiPage.SelectPaneTab("Settings");
|
||||
|
|
@ -67,7 +69,7 @@ describe("excludeForAirgap", "Api pane navigation", () => {
|
|||
debuggerHelper.ClickLogsTab();
|
||||
debuggerHelper.ClicklogEntityLink(true);
|
||||
|
||||
agHelper.AssertElementVisible(dataSources._queryTimeout);
|
||||
agHelper.AssertElementVisibility(dataSources._queryTimeout);
|
||||
debuggerHelper.CloseBottomBar();
|
||||
entityExplorer.ActionContextMenuByEntityName({
|
||||
entityNameinLeftSidebar: "Api3",
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ const clickButtonAndAssertLintError = (
|
|||
|
||||
//Reload and Check for presence/ absence of lint error
|
||||
agHelper.RefreshPage();
|
||||
// agHelper.AssertElementVisible(locators._visibleTextDiv("Explorer"));
|
||||
// agHelper.AssertElementVisibility(locators._visibleTextDiv("Explorer"));
|
||||
// agHelper.Sleep(2500);
|
||||
entityExplorer.SelectEntityByName("Button1", "Widgets");
|
||||
shouldExist
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ describe("Validate Mongo URI CRUD with JSON Form", () => {
|
|||
it("3. Verify Add/Insert from Deploy page - on MongoMart - new record - few validations", () => {
|
||||
agHelper.GetNClick(dataSources._addIcon);
|
||||
agHelper.Sleep();
|
||||
//agHelper.AssertElementVisible(locators._jsonFormWidget, 1); //Insert Modal
|
||||
//agHelper.AssertElementVisibility(locators._jsonFormWidget, 1); //Insert Modal
|
||||
agHelper.AssertElementVisibility(
|
||||
locators._visibleTextDiv("Insert Document"),
|
||||
);
|
||||
|
|
|
|||
|
|
@ -245,7 +245,7 @@ describe("Validate MySQL Generate CRUD with JSON Form", () => {
|
|||
|
||||
agHelper.GetNClick(dataSources._addIcon);
|
||||
agHelper.Sleep(1000); //time for new Modal to settle
|
||||
//agHelper.AssertElementVisible(locator._jsonFormWidget, 1); //Insert Modal at index 1
|
||||
//agHelper.AssertElementVisibility(locator._jsonFormWidget, 1); //Insert Modal at index 1
|
||||
agHelper.AssertElementVisibility(locators._visibleTextDiv("Insert Row"));
|
||||
agHelper.ClickButton("Submit");
|
||||
agHelper.AssertContains("Column 'store_id' cannot be null");
|
||||
|
|
|
|||
|
|
@ -450,7 +450,7 @@ describe("Validate Postgres Generate CRUD with JSON Form", () => {
|
|||
|
||||
agHelper.GetNClick(dataSources._addIcon);
|
||||
agHelper.Sleep();
|
||||
//agHelper.AssertElementVisible(locators._jsonFormWidget, 1); //Insert Modal
|
||||
//agHelper.AssertElementVisibility(locators._jsonFormWidget, 1); //Insert Modal
|
||||
agHelper.AssertElementVisibility(locators._visibleTextDiv("Insert Row"));
|
||||
|
||||
//Checking Required field validations
|
||||
|
|
|
|||
|
|
@ -147,8 +147,8 @@ describe("JSObjects OnLoad Actions tests", function () {
|
|||
it("6. Tc 55 - Verify OnPage Load - Enabling & Before Function calling Enabling for JSOBject & deleting testdata", function () {
|
||||
// deployMode.DeployApp(locators._widgetInDeployed("tablewidget"), false);
|
||||
// agHelper.WaitUntilAllToastsDisappear(); //incase toast appears, GetEmployee failure toast is appearing
|
||||
// agHelper.AssertElementVisible(jsEditor._dialog("Confirmation dialog"));
|
||||
// agHelper.AssertElementVisible(
|
||||
// agHelper.AssertElementVisibility(jsEditor._dialog("Confirmation dialog"));
|
||||
// agHelper.AssertElementVisibility(
|
||||
// jsEditor._dialogBody((jsName as string) + ".getEmployee"),
|
||||
// );
|
||||
// jsEditor.ConfirmationClick("Yes");
|
||||
|
|
@ -159,8 +159,8 @@ describe("JSObjects OnLoad Actions tests", function () {
|
|||
// });
|
||||
// //agHelper.AssertNetworkExecutionSuccess("@postExecute");
|
||||
// deployMode.NavigateBacktoEditor();
|
||||
// agHelper.AssertElementVisible(jsEditor._dialog("Confirmation dialog"));
|
||||
// agHelper.AssertElementVisible(
|
||||
// agHelper.AssertElementVisibility(jsEditor._dialog("Confirmation dialog"));
|
||||
// agHelper.AssertElementVisibility(
|
||||
// jsEditor._dialogBody((jsName as string) + ".getEmployee"),
|
||||
// );
|
||||
// jsEditor.ConfirmationClick("Yes");
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ describe("JSObjects OnLoad Actions tests", function () {
|
|||
//Commenting & changnig flow since either of confirmation modals can appear first!
|
||||
|
||||
// //Confirmation - first JSObj then API
|
||||
// agHelper.AssertElementVisible(
|
||||
// agHelper.AssertElementVisibility(
|
||||
// jsEditor._dialogBody((jsName as string) + ".callTrump"),
|
||||
// );
|
||||
// jsEditor.ConfirmationClick("No");
|
||||
|
|
@ -123,7 +123,7 @@ describe("JSObjects OnLoad Actions tests", function () {
|
|||
jsEditor.ConfirmationClick("No");
|
||||
agHelper.AssertContains("cancelled"); //Quotes
|
||||
//One Quotes confirmation - for API true
|
||||
// agHelper.AssertElementVisible(jsEditor._dialogBody("Quotes"));
|
||||
// agHelper.AssertElementVisibility(jsEditor._dialogBody("Quotes"));
|
||||
// jsEditor.ConfirmationClick("No");
|
||||
agHelper.WaitUntilAllToastsDisappear();
|
||||
|
||||
|
|
@ -131,14 +131,14 @@ describe("JSObjects OnLoad Actions tests", function () {
|
|||
agHelper.AssertContains("cancelled"); //callTrump
|
||||
|
||||
// //Another for API called via JS callQuotes()
|
||||
// agHelper.AssertElementVisible(jsEditor._dialogBody("Quotes"));
|
||||
// agHelper.AssertElementVisibility(jsEditor._dialogBody("Quotes"));
|
||||
// jsEditor.ConfirmationClick("No");
|
||||
//agHelper.WaitUntilToastDisappear('The action "Quotes" has failed');No toast appears!
|
||||
|
||||
agHelper.AssertElementAbsence(jsEditor._dialogBody("WhatTrumpThinks")); //Since JS call is NO, dependent API confirmation should not appear
|
||||
|
||||
agHelper.RefreshPage("viewPage");
|
||||
// agHelper.AssertElementVisible(
|
||||
// agHelper.AssertElementVisibility(
|
||||
// jsEditor._dialogBody((jsName as string) + ".callTrump"),
|
||||
// );
|
||||
agHelper.AssertElementExist(jsEditor._dialogInDeployView);
|
||||
|
|
@ -147,17 +147,17 @@ describe("JSObjects OnLoad Actions tests", function () {
|
|||
//agHelper.GetNClick(".ads-v2-button__content-children", 1, true);
|
||||
agHelper.Sleep(2000);
|
||||
|
||||
//agHelper.AssertElementVisible(jsEditor._dialogBody("WhatTrumpThinks")); //Since JS call is Yes, dependent confirmation should appear aswell!
|
||||
//agHelper.AssertElementVisibility(jsEditor._dialogBody("WhatTrumpThinks")); //Since JS call is Yes, dependent confirmation should appear aswell!
|
||||
agHelper.AssertElementExist(jsEditor._dialogInDeployView);
|
||||
jsEditor.ConfirmationClick("Yes"); //trumpy - api
|
||||
agHelper.Sleep(3000);
|
||||
|
||||
//agHelper.AssertElementVisible(jsEditor._dialogBody("Quotes"));
|
||||
//agHelper.AssertElementVisibility(jsEditor._dialogBody("Quotes"));
|
||||
agHelper.AssertElementExist(jsEditor._dialogInDeployView);
|
||||
jsEditor.ConfirmationClick("Yes"); //quotes - api
|
||||
|
||||
//agHelper.Sleep(2000);
|
||||
//agHelper.AssertElementVisible(jsEditor._dialogBody("Quotes"));
|
||||
//agHelper.AssertElementVisibility(jsEditor._dialogBody("Quotes"));
|
||||
//agHelper.AssertElementExist(jsEditor._dialogInDeployView);
|
||||
//agHelper.GetNClick(".ads-v2-button__content-children", 1, true);
|
||||
agHelper.Sleep(4000); //to let the api's call be finished & populate the text fields before validation!
|
||||
|
|
|
|||
|
|
@ -111,7 +111,7 @@ export class DebuggerHelper {
|
|||
break;
|
||||
// case PageType.Query:
|
||||
// case PageType.DataSources:
|
||||
// this.agHelper.AssertElementVisible(
|
||||
// this.agHelper.AssertElementVisibility(
|
||||
// this.locators._bottomPaneContainer[pageType],
|
||||
// );
|
||||
// // this.agHelper.AssertHeight(
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ export class PropertyPane {
|
|||
if (assertElementVisible) {
|
||||
this.agHelper.AssertElementVisibility(this._copyWidget);
|
||||
}
|
||||
//this.agHelper.AssertElementVisible(this._deleteWidget); //extra valisation, hence commenting!
|
||||
//this.agHelper.AssertElementVisibility(this._deleteWidget); //extra valisation, hence commenting!
|
||||
}
|
||||
|
||||
public CopyPasteWidgetFromPropertyPane(widgetName: string) {
|
||||
|
|
@ -528,7 +528,10 @@ export class PropertyPane {
|
|||
}
|
||||
|
||||
public AssertIfPropertyIsNotVisible(property: string) {
|
||||
this.agHelper.AssertElementNotVisible(this._propertyControl(property));
|
||||
this.agHelper.AssertElementVisibility(
|
||||
this._propertyControl(property),
|
||||
false,
|
||||
);
|
||||
}
|
||||
|
||||
public AddAction(property: string) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user