diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2024-02-06 17:03:38 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2024-02-09 17:51:00 +0100 |
| commit | ef69732e84ed85b7630b8a49cd2110adc6122dcb (patch) | |
| tree | f4db7fa8cf515005732d77f783ccb097487682f4 /gui/src | |
| parent | 3bea8ae918ba35755b166a44ac90ef1388e25a86 (diff) | |
| download | mullvadvpn-ef69732e84ed85b7630b8a49cd2110adc6122dcb.tar.xz mullvadvpn-ef69732e84ed85b7630b8a49cd2110adc6122dcb.zip | |
Disable map in e2e tests
Diffstat (limited to 'gui/src')
| -rw-r--r-- | gui/src/renderer/components/Map.tsx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/src/renderer/components/Map.tsx b/gui/src/renderer/components/Map.tsx index 859328daba..b7758b2e7f 100644 --- a/gui/src/renderer/components/Map.tsx +++ b/gui/src/renderer/components/Map.tsx @@ -33,6 +33,10 @@ export default function Map() { return hasLocationValue ? connection : defaultLocation; }, [hasLocationValue, connection.latitude, connection.longitude]); + if (window.env.e2e) { + return null; + } + const connectionState = getConnectionState(hasLocationValue, connection.status.state); const reduceMotion = window.matchMedia('(prefers-reduced-motion: reduce)').matches; |
