DEV Community

chuac
chuac

Posted on

2

Specify Geolocation for Cypress tests - LambdaTest

If you're using a tool like LambdaTest Cypress Automation to execute your Cypress tests as part of your pipelines, you may eventually require the environment your tests are running on to mock certain Geolocations which your tests are dependent on.

Luckily, with LambdaTest, this is possible however it is not clear in their documentation on how to turn this on!

After consulting with their handy tech support, the following is how we can specify Australia as the Geolocation of the machine LambdaTest runs our Cypress tests on:

Inside lambdatest-config.json:

"run_settings": {
    ...
    "geo_location": "AU",
    ...
}
Enter fullscreen mode Exit fullscreen mode

It is unclear what ISO standard that LambdaTest uses for their geo_location field, but ISO 3166-1 (Alpha-2) is a good bet.

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay