Playwright · Middle · Question 43 of 75
How do you test a location-based feature?
- 1Set
geolocationand grant thegeolocationpermission - 2Mock
navigatorby editing the app's source code - 3Run the test on a server in the target country
Show the answer
Correct answer: Set geolocation and grant the geolocation permission
Explanation
Context options like geolocation, locale, timezoneId and permissions emulate the user's environment.