2022-04-11 19:40:06 +03:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`<LocationViewDialog /> renders map correctly 1`] = `
|
|
|
|
<Map
|
2023-02-04 22:58:53 +03:00
|
|
|
allowGeolocate={true}
|
2022-04-11 19:40:06 +03:00
|
|
|
centerGeoUri="geo:51.5076,-0.1276"
|
|
|
|
className="mx_LocationViewDialog_map"
|
|
|
|
id="mx_LocationViewDialog_$2"
|
|
|
|
interactive={true}
|
|
|
|
onError={[Function]}
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_Map mx_LocationViewDialog_map"
|
|
|
|
id="mx_Map_mx_LocationViewDialog_$2"
|
|
|
|
onClick={[Function]}
|
|
|
|
>
|
|
|
|
<SmartMarker
|
|
|
|
geoUri="geo:51.5076,-0.1276"
|
|
|
|
id="mx_LocationViewDialog_$2-marker"
|
|
|
|
map={
|
|
|
|
MockMap {
|
2022-11-04 13:48:08 +03:00
|
|
|
"_events": {
|
2022-04-11 19:40:06 +03:00
|
|
|
"error": [Function],
|
|
|
|
},
|
|
|
|
"_eventsCount": 1,
|
|
|
|
"_maxListeners": undefined,
|
2022-05-23 13:19:59 +03:00
|
|
|
"addControl": [MockFunction] {
|
2022-11-04 13:48:08 +03:00
|
|
|
"calls": [
|
|
|
|
[
|
2022-12-19 02:17:15 +03:00
|
|
|
MockAttributionControl {},
|
2022-05-23 13:19:59 +03:00
|
|
|
"top-right",
|
|
|
|
],
|
2023-02-04 22:58:53 +03:00
|
|
|
[
|
|
|
|
MockGeolocateControl {
|
2023-02-08 10:38:12 +03:00
|
|
|
"_events": {},
|
|
|
|
"_eventsCount": 0,
|
2023-02-04 22:58:53 +03:00
|
|
|
"_maxListeners": undefined,
|
|
|
|
"trigger": [MockFunction],
|
|
|
|
Symbol(kCapture): false,
|
|
|
|
},
|
|
|
|
],
|
2022-05-23 13:19:59 +03:00
|
|
|
],
|
2022-11-04 13:48:08 +03:00
|
|
|
"results": [
|
|
|
|
{
|
2022-05-23 13:19:59 +03:00
|
|
|
"type": "return",
|
|
|
|
"value": undefined,
|
|
|
|
},
|
2023-02-04 22:58:53 +03:00
|
|
|
{
|
|
|
|
"type": "return",
|
|
|
|
"value": undefined,
|
|
|
|
},
|
2022-05-23 13:19:59 +03:00
|
|
|
],
|
|
|
|
},
|
2022-04-19 14:35:39 +03:00
|
|
|
"fitBounds": [MockFunction],
|
2022-04-11 19:40:06 +03:00
|
|
|
"removeControl": [MockFunction],
|
|
|
|
"setCenter": [MockFunction] {
|
2022-11-04 13:48:08 +03:00
|
|
|
"calls": [
|
|
|
|
[
|
|
|
|
{
|
2022-04-11 19:40:06 +03:00
|
|
|
"lat": 51.5076,
|
|
|
|
"lon": -0.1276,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2022-11-04 13:48:08 +03:00
|
|
|
"results": [
|
|
|
|
{
|
2022-04-11 19:40:06 +03:00
|
|
|
"type": "return",
|
|
|
|
"value": undefined,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"setStyle": [MockFunction],
|
|
|
|
"zoomIn": [MockFunction],
|
|
|
|
"zoomOut": [MockFunction],
|
|
|
|
Symbol(kCapture): false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
2022-04-14 16:14:05 +03:00
|
|
|
<span>
|
|
|
|
<ForwardRef
|
2022-04-11 19:40:06 +03:00
|
|
|
id="mx_LocationViewDialog_$2-marker"
|
|
|
|
>
|
|
|
|
<div
|
2022-04-14 16:14:05 +03:00
|
|
|
className="mx_Marker mx_Marker_defaultColor"
|
|
|
|
id="mx_LocationViewDialog_$2-marker"
|
2022-04-11 19:40:06 +03:00
|
|
|
>
|
2022-05-13 11:30:53 +03:00
|
|
|
<OptionalTooltip>
|
2022-04-14 16:14:05 +03:00
|
|
|
<div
|
2022-05-13 11:30:53 +03:00
|
|
|
className="mx_Marker_border"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_Marker_icon"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</OptionalTooltip>
|
2022-04-11 19:40:06 +03:00
|
|
|
</div>
|
2022-04-14 16:14:05 +03:00
|
|
|
</ForwardRef>
|
|
|
|
</span>
|
2022-04-11 19:40:06 +03:00
|
|
|
</SmartMarker>
|
|
|
|
<ZoomButtons
|
|
|
|
map={
|
|
|
|
MockMap {
|
2022-11-04 13:48:08 +03:00
|
|
|
"_events": {
|
2022-04-11 19:40:06 +03:00
|
|
|
"error": [Function],
|
|
|
|
},
|
|
|
|
"_eventsCount": 1,
|
|
|
|
"_maxListeners": undefined,
|
2022-05-23 13:19:59 +03:00
|
|
|
"addControl": [MockFunction] {
|
2022-11-04 13:48:08 +03:00
|
|
|
"calls": [
|
|
|
|
[
|
2022-12-19 02:17:15 +03:00
|
|
|
MockAttributionControl {},
|
2022-05-23 13:19:59 +03:00
|
|
|
"top-right",
|
|
|
|
],
|
2023-02-04 22:58:53 +03:00
|
|
|
[
|
|
|
|
MockGeolocateControl {
|
2023-02-08 10:38:12 +03:00
|
|
|
"_events": {},
|
|
|
|
"_eventsCount": 0,
|
2023-02-04 22:58:53 +03:00
|
|
|
"_maxListeners": undefined,
|
|
|
|
"trigger": [MockFunction],
|
|
|
|
Symbol(kCapture): false,
|
|
|
|
},
|
|
|
|
],
|
2022-05-23 13:19:59 +03:00
|
|
|
],
|
2022-11-04 13:48:08 +03:00
|
|
|
"results": [
|
|
|
|
{
|
2022-05-23 13:19:59 +03:00
|
|
|
"type": "return",
|
|
|
|
"value": undefined,
|
|
|
|
},
|
2023-02-04 22:58:53 +03:00
|
|
|
{
|
|
|
|
"type": "return",
|
|
|
|
"value": undefined,
|
|
|
|
},
|
2022-05-23 13:19:59 +03:00
|
|
|
],
|
|
|
|
},
|
2022-04-19 14:35:39 +03:00
|
|
|
"fitBounds": [MockFunction],
|
2022-04-11 19:40:06 +03:00
|
|
|
"removeControl": [MockFunction],
|
|
|
|
"setCenter": [MockFunction] {
|
2022-11-04 13:48:08 +03:00
|
|
|
"calls": [
|
|
|
|
[
|
|
|
|
{
|
2022-04-11 19:40:06 +03:00
|
|
|
"lat": 51.5076,
|
|
|
|
"lon": -0.1276,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
],
|
2022-11-04 13:48:08 +03:00
|
|
|
"results": [
|
|
|
|
{
|
2022-04-11 19:40:06 +03:00
|
|
|
"type": "return",
|
|
|
|
"value": undefined,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
"setStyle": [MockFunction],
|
|
|
|
"zoomIn": [MockFunction],
|
|
|
|
"zoomOut": [MockFunction],
|
|
|
|
Symbol(kCapture): false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_ZoomButtons"
|
|
|
|
>
|
|
|
|
<AccessibleButton
|
|
|
|
className="mx_ZoomButtons_button"
|
2023-02-08 11:31:24 +03:00
|
|
|
data-testid="map-zoom-in-button"
|
2022-04-11 19:40:06 +03:00
|
|
|
element="div"
|
|
|
|
onClick={[Function]}
|
|
|
|
role="button"
|
|
|
|
tabIndex={0}
|
|
|
|
title="Zoom in"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_AccessibleButton mx_ZoomButtons_button"
|
2023-02-08 11:31:24 +03:00
|
|
|
data-testid="map-zoom-in-button"
|
2022-04-11 19:40:06 +03:00
|
|
|
onClick={[Function]}
|
|
|
|
onKeyDown={[Function]}
|
|
|
|
onKeyUp={[Function]}
|
|
|
|
role="button"
|
|
|
|
tabIndex={0}
|
|
|
|
title="Zoom in"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_ZoomButtons_icon"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</AccessibleButton>
|
|
|
|
<AccessibleButton
|
|
|
|
className="mx_ZoomButtons_button"
|
2023-02-08 11:31:24 +03:00
|
|
|
data-testid="map-zoom-out-button"
|
2022-04-11 19:40:06 +03:00
|
|
|
element="div"
|
|
|
|
onClick={[Function]}
|
|
|
|
role="button"
|
|
|
|
tabIndex={0}
|
|
|
|
title="Zoom out"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_AccessibleButton mx_ZoomButtons_button"
|
2023-02-08 11:31:24 +03:00
|
|
|
data-testid="map-zoom-out-button"
|
2022-04-11 19:40:06 +03:00
|
|
|
onClick={[Function]}
|
|
|
|
onKeyDown={[Function]}
|
|
|
|
onKeyUp={[Function]}
|
|
|
|
role="button"
|
|
|
|
tabIndex={0}
|
|
|
|
title="Zoom out"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_ZoomButtons_icon"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</AccessibleButton>
|
|
|
|
</div>
|
|
|
|
</ZoomButtons>
|
|
|
|
</div>
|
|
|
|
</Map>
|
|
|
|
`;
|