Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
Test Angular Google Maps maps using Cypress

I am having a problem to test AGM. Stores should be shown on the map. I have mocked the store location I want to select like this

cy.visit(url, {
  failOnStatusCode: failOnStatusCode, onBeforeLoad(win: Cypress.AUTWindow) {
    cy.stub(win.navigator.geolocation, 'getCurrentPosition').callsFake((cb) => {
      return cb({coords: {latitude, longitude}});
    });
  }
})

But the geolocation does not function every time. Sometimes it works, sometimes not. In this state, I can not run the tests in a pipeline.

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!