Skip to content

Commit

Permalink
update maps api in the cypress intercept
Browse files Browse the repository at this point in the history
  • Loading branch information
khavinshankar committed Jun 14, 2024
1 parent 9a49d38 commit be7a7c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cypress/pageobject/Facility/FacilityCreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ class FacilityPage {
}

selectLocation(location: string) {
cy.intercept("https://maps.googleapis.com/**").as("mapApi");
cy.get("span > svg.care-svg-icon__baseline.care-l-map-marker").click();
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);
Expand Down

0 comments on commit be7a7c9

Please sign in to comment.