diff --git a/app/client/cypress/e2e/Regression/ClientSide/Git/GitSync/SwitchBranches_spec.js b/app/client/cypress/e2e/Regression/ClientSide/Git/GitSync/SwitchBranches_spec.js index 6c908c5b3dda..5218cc6b6339 100644 --- a/app/client/cypress/e2e/Regression/ClientSide/Git/GitSync/SwitchBranches_spec.js +++ b/app/client/cypress/e2e/Regression/ClientSide/Git/GitSync/SwitchBranches_spec.js @@ -123,7 +123,10 @@ describe("Git sync:", { tags: ["@tag.Git"] }, function () { false, EntityItems.Page, ); - agHelper.RemoveUIElement("Tooltip", "Add a new query/JS Object"); + agHelper.RemoveUIElement( + "Tooltip", + Cypress.env("MESSAGES").ADD_QUERY_JS_TOOLTIP(), + ); PageLeftPane.switchSegment(PagePaneSegment.Queries); entityExplorer.RenameEntityFromExplorer("ParentApi1", "ParentApiRenamed"); diff --git a/app/client/cypress/e2e/Regression/ClientSide/OtherUIFeatures/Replay_Editor_spec.js b/app/client/cypress/e2e/Regression/ClientSide/OtherUIFeatures/Replay_Editor_spec.js index 6547d1288f7c..872c252556a7 100644 --- a/app/client/cypress/e2e/Regression/ClientSide/OtherUIFeatures/Replay_Editor_spec.js +++ b/app/client/cypress/e2e/Regression/ClientSide/OtherUIFeatures/Replay_Editor_spec.js @@ -50,7 +50,10 @@ describe("Undo/Redo functionality", function () { "https://mock-api.appsmith.com/users", //testing placeholder! ); cy.enterDatasourceAndPath(testdata.baseUrl, testdata.methods); - agHelper.RemoveUIElement("Tooltip", "Add a new query/JS Object"); + agHelper.RemoveUIElement( + "Tooltip", + Cypress.env("MESSAGES").ADD_QUERY_JS_TOOLTIP(), + ); cy.get(`${apiwidget.headerKey}`).type("Authorization"); cy.get("body").click(0, 0); cy.get(apiwidget.settings).click({ force: true }); diff --git a/app/client/cypress/support/Pages/ApiPage.ts b/app/client/cypress/support/Pages/ApiPage.ts index 060e46ceca26..ada6b0a75e00 100644 --- a/app/client/cypress/support/Pages/ApiPage.ts +++ b/app/client/cypress/support/Pages/ApiPage.ts @@ -105,7 +105,10 @@ export class ApiPage { PageLeftPane.switchSegment(PagePaneSegment.Queries); this.agHelper.GetHoverNClick(this.locator._createNew); this.agHelper.GetNClick(this._blankAPI, 0, true); - this.agHelper.RemoveUIElement("Tooltip", "Add a new query/JS Object"); + this.agHelper.RemoveUIElement( + "Tooltip", + Cypress.env("MESSAGES").ADD_QUERY_JS_TOOLTIP(), + ); } this.assertHelper.AssertNetworkStatus("@createNewApi", 201); @@ -138,7 +141,7 @@ export class ApiPage { ) { this.CreateApi(apiName, apiVerb, aftDSSaved); this.EnterURL(url, "", toVerifySave); - this.agHelper.Sleep(); //Is needed for the entered url value to be registered, else failing locally & CI + this.assertHelper.AssertNetworkStatus("@saveAction", 200); this.AssertRunButtonDisability(); if (queryTimeout != 10000) this.SetAPITimeout(queryTimeout, toVerifySave); } diff --git a/app/client/cypress/support/Pages/JSEditor.ts b/app/client/cypress/support/Pages/JSEditor.ts index a062f11cd6bf..4ac86c773fb3 100644 --- a/app/client/cypress/support/Pages/JSEditor.ts +++ b/app/client/cypress/support/Pages/JSEditor.ts @@ -107,7 +107,10 @@ export class JSEditor { PageLeftPane.switchSegment(PagePaneSegment.JS); cy.get(this._newJSobj).eq(0).click({ force: true }); - this.agHelper.RemoveUIElement("Tooltip", "Add a new query/JS Object"); + this.agHelper.RemoveUIElement( + "Tooltip", + Cypress.env("MESSAGES").ADD_QUERY_JS_TOOLTIP(), + ); //Checking JS object was created successfully this.assertHelper.AssertNetworkStatus("@jsCollections", 200); this.agHelper.AssertElementVisibility(this._jsObjTxt);