Package com.vaadin.flow.component.geolocation
@NullMarked
package com.vaadin.flow.component.geolocation
Browserless test support for the Flow
Geolocation API.
Application unit tests obtain a GeolocationSimulator via
current() (or
forUI(ui)
for multi-user scenarios) and describe the user's permission and the sensor's
reading; the application observes that state through the Geolocation
facade without any real browser.
- Since:
- 1.1
-
ClassDescription
GeolocationClientFactorythat produces an in-memory test client and publishes aGeolocationSimulatoron the UI for tests to drive.A pending one-shotGeolocation.get(...)request observed by the test controller.Browserless test driver for theGeolocationfacade.View into a tracker session managed by the simulator.