From b2baefc9693cfd5bd69557bcdc40888dc255a204 Mon Sep 17 00:00:00 2001 From: Hetu Nandu Date: Thu, 1 Feb 2024 10:56:52 +0530 Subject: [PATCH] fix: Api bug test --- .../e2e/Regression/ServerSide/ApiTests/API_Bugs_Spec.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/client/cypress/e2e/Regression/ServerSide/ApiTests/API_Bugs_Spec.js b/app/client/cypress/e2e/Regression/ServerSide/ApiTests/API_Bugs_Spec.js index 1b5e3904cb3..7ff63399d5d 100644 --- a/app/client/cypress/e2e/Regression/ServerSide/ApiTests/API_Bugs_Spec.js +++ b/app/client/cypress/e2e/Regression/ServerSide/ApiTests/API_Bugs_Spec.js @@ -1,5 +1,7 @@ import EditorNavigation, { EntityType, + PageLeftPane, + PagePaneSegment, } from "../../../../support/Pages/EditorNavigation"; const commonlocators = require("../../../../locators/commonlocators.json"); @@ -54,7 +56,7 @@ describe("Rest Bugs tests", { tags: ["@tag.Datasource"] }, function () { ); agHelper.PressEscape(); - EditorNavigation.SelectEntityByName("Page1", EntityType.Page); + PageLeftPane.switchSegment(PagePaneSegment.UI); agHelper.ClickButton("Invoke APIs!"); cy.wait(12000); // for all api calls to complete!