= React.forwardRef(({ mxEvent }, ref) =>
/>
}
- :
- { displayStatus === BeaconDisplayStatus.Loading ?
- :
-
- }
-
+ :
}
{ isOwnBeacon ?
renders a fallback when no live beacons remain 1`] = `
-
-
-
- No live locations
-
-
+
+
+
+ No live locations
+
+
+
+ Close
+
+
+
+ ,
+
+
+
+
+ No live locations
+
+
- Close
-
-
-
+
+ Close
+
+
+ ,
+]
`;
diff --git a/test/components/views/messages/MBeaconBody-test.tsx b/test/components/views/messages/MBeaconBody-test.tsx
index 5afbb05c78..8719df567d 100644
--- a/test/components/views/messages/MBeaconBody-test.tsx
+++ b/test/components/views/messages/MBeaconBody-test.tsx
@@ -116,7 +116,7 @@ describe('', () => {
makeRoomWithStateEvents([beaconInfoEvent], { roomId, mockClient });
const component = getComponent({ mxEvent: beaconInfoEvent });
act(() => {
- component.find('.mx_MBeaconBody_map').simulate('click');
+ component.find('.mx_MBeaconBody_map').at(0).simulate('click');
});
expect(modalSpy).not.toHaveBeenCalled();
@@ -230,7 +230,7 @@ describe('', () => {
const component = getComponent({ mxEvent: aliceBeaconInfo });
act(() => {
- component.find('.mx_MBeaconBody_map').simulate('click');
+ component.find('.mx_MBeaconBody_map').at(0).simulate('click');
});
expect(modalSpy).not.toHaveBeenCalled();
@@ -264,7 +264,7 @@ describe('', () => {
const component = getComponent({ mxEvent: aliceBeaconInfo });
act(() => {
- component.find('.mx_MBeaconBody_map').simulate('click');
+ component.find('.mx_MBeaconBody_map').at(0).simulate('click');
});
expect(modalSpy).not.toHaveBeenCalled();