Skip to content

Commit

Permalink
handle the google map delay
Browse files Browse the repository at this point in the history
  • Loading branch information
nihal467 committed Dec 28, 2023
1 parent 90210d3 commit d4ce655
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cypress/pageobject/Facility/FacilityCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
Expand All @@ -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,
},
},
Expand Down

0 comments on commit d4ce655

Please sign in to comment.