Skip to content

Commit

Permalink
Disable map in e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
raksooo committed Feb 9, 2024
1 parent 3bea8ae commit ef69732
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gui/src/renderer/components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ef69732

Please sign in to comment.