From d4ce655e6e1a16453344e7045b9e98272475c33b Mon Sep 17 00:00:00 2001 From: Mohammed Nihal <57055998+nihal467@users.noreply.github.com> Date: Thu, 28 Dec 2023 12:44:09 +0530 Subject: [PATCH] handle the google map delay --- cypress/pageobject/Facility/FacilityCreation.ts | 1 + vite.config.ts | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/cypress/pageobject/Facility/FacilityCreation.ts b/cypress/pageobject/Facility/FacilityCreation.ts index 1e1b9caae33..2d6aa9ff375 100644 --- a/cypress/pageobject/Facility/FacilityCreation.ts +++ b/cypress/pageobject/Facility/FacilityCreation.ts @@ -299,6 +299,7 @@ class FacilityPage { cy.intercept("https://maps.googleapis.com/maps/api/mapsjs/*").as("mapApi"); cy.wait("@mapApi").its("response.statusCode").should("eq", 200); cy.get("input#pac-input").type(location).type("{enter}"); + cy.wait(2000); cy.get("div#map-close").click(); } diff --git a/vite.config.ts b/vite.config.ts index ecd6a2676d3..561ea4a5c81 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -85,7 +85,7 @@ export default defineConfig({ port: 4000, proxy: { "/api": { - target: process.env.CARE_API ?? "https://careapi.ohc.network", + target: process.env.CARE_API ?? "http://192.168.0.203:9000/", changeOrigin: true, }, }, @@ -94,7 +94,7 @@ export default defineConfig({ port: 4000, proxy: { "/api": { - target: process.env.CARE_API ?? "https://careapi.ohc.network", + target: process.env.CARE_API ?? "http://192.168.0.203:9000/", changeOrigin: true, }, },