Skip to content

Commit

Permalink
Merge branch 'disable-map-in-e2e-tests'
Browse files Browse the repository at this point in the history
  • Loading branch information
raksooo committed Feb 9, 2024
2 parents 3bea8ae + ef69732 commit 19c40c3
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 19c40c3

Please sign in to comment.