2022-04-13 08:44:15 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2022-04-14 12:41:28 +00:00
|
|
|
exports[`<BeaconStatus /> active state renders with children 1`] = `null`;
|
2022-04-13 08:44:15 +00:00
|
|
|
|
2022-04-14 12:41:28 +00:00
|
|
|
exports[`<BeaconStatus /> active state renders without children 1`] = `
|
2022-04-13 08:44:15 +00:00
|
|
|
<BeaconStatus
|
|
|
|
beacon={
|
|
|
|
Beacon {
|
2022-11-04 10:48:08 +00:00
|
|
|
"_beaconInfo": {
|
2022-04-13 08:44:15 +00:00
|
|
|
"assetType": "m.self",
|
|
|
|
"description": undefined,
|
2022-08-16 08:23:25 +00:00
|
|
|
"live": false,
|
2022-04-13 08:44:15 +00:00
|
|
|
"timeout": 3600000,
|
|
|
|
"timestamp": 123456789,
|
|
|
|
},
|
2022-11-04 10:48:08 +00:00
|
|
|
"_events": {},
|
2022-04-14 12:41:28 +00:00
|
|
|
"_eventsCount": 0,
|
2022-08-16 08:23:25 +00:00
|
|
|
"_isLive": false,
|
2022-06-17 13:27:08 +00:00
|
|
|
"_latestLocationEvent": undefined,
|
2022-04-13 08:44:15 +00:00
|
|
|
"_maxListeners": undefined,
|
|
|
|
"clearLatestLocation": [Function],
|
2022-06-07 19:08:36 +00:00
|
|
|
"livenessWatchTimeout": undefined,
|
2022-04-13 08:44:15 +00:00
|
|
|
"roomId": "!room:server",
|
2022-11-04 10:48:08 +00:00
|
|
|
"rootEvent": {
|
|
|
|
"content": {
|
2022-04-13 08:44:15 +00:00
|
|
|
"description": undefined,
|
2022-08-16 08:23:25 +00:00
|
|
|
"live": false,
|
2022-11-04 10:48:08 +00:00
|
|
|
"org.matrix.msc3488.asset": {
|
2022-04-13 08:44:15 +00:00
|
|
|
"type": "m.self",
|
|
|
|
},
|
|
|
|
"org.matrix.msc3488.ts": 123456789,
|
|
|
|
"timeout": 3600000,
|
|
|
|
},
|
|
|
|
"event_id": "$1",
|
|
|
|
"origin_server_ts": 123456789,
|
|
|
|
"room_id": "!room:server",
|
|
|
|
"sender": "@user:server",
|
|
|
|
"state_key": "@user:server",
|
|
|
|
"type": "org.matrix.msc3672.beacon_info",
|
|
|
|
},
|
|
|
|
Symbol(kCapture): false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
displayStatus="Active"
|
2022-04-14 12:41:28 +00:00
|
|
|
label="test label"
|
2022-04-20 11:57:50 +00:00
|
|
|
withIcon={true}
|
2022-04-13 08:44:15 +00:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_BeaconStatus mx_BeaconStatus_Active"
|
|
|
|
>
|
|
|
|
<StyledLiveBeaconIcon
|
|
|
|
className="mx_BeaconStatus_icon"
|
|
|
|
isIdle={false}
|
|
|
|
withError={false}
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_StyledLiveBeaconIcon mx_BeaconStatus_icon"
|
|
|
|
/>
|
|
|
|
</StyledLiveBeaconIcon>
|
|
|
|
<div
|
2022-04-14 12:41:28 +00:00
|
|
|
className="mx_BeaconStatus_description"
|
2022-04-13 08:44:15 +00:00
|
|
|
>
|
2022-04-20 11:57:50 +00:00
|
|
|
<span
|
|
|
|
className="mx_BeaconStatus_label"
|
|
|
|
>
|
|
|
|
test label
|
|
|
|
</span>
|
2022-04-14 12:41:28 +00:00
|
|
|
<BeaconExpiryTime
|
2022-04-13 08:44:15 +00:00
|
|
|
beacon={
|
|
|
|
Beacon {
|
2022-11-04 10:48:08 +00:00
|
|
|
"_beaconInfo": {
|
2022-04-13 08:44:15 +00:00
|
|
|
"assetType": "m.self",
|
|
|
|
"description": undefined,
|
2022-08-16 08:23:25 +00:00
|
|
|
"live": false,
|
2022-04-13 08:44:15 +00:00
|
|
|
"timeout": 3600000,
|
|
|
|
"timestamp": 123456789,
|
|
|
|
},
|
2022-11-04 10:48:08 +00:00
|
|
|
"_events": {},
|
2022-04-14 12:41:28 +00:00
|
|
|
"_eventsCount": 0,
|
2022-08-16 08:23:25 +00:00
|
|
|
"_isLive": false,
|
2022-06-17 13:27:08 +00:00
|
|
|
"_latestLocationEvent": undefined,
|
2022-04-13 08:44:15 +00:00
|
|
|
"_maxListeners": undefined,
|
|
|
|
"clearLatestLocation": [Function],
|
2022-06-07 19:08:36 +00:00
|
|
|
"livenessWatchTimeout": undefined,
|
2022-04-13 08:44:15 +00:00
|
|
|
"roomId": "!room:server",
|
2022-11-04 10:48:08 +00:00
|
|
|
"rootEvent": {
|
|
|
|
"content": {
|
2022-04-13 08:44:15 +00:00
|
|
|
"description": undefined,
|
2022-08-16 08:23:25 +00:00
|
|
|
"live": false,
|
2022-11-04 10:48:08 +00:00
|
|
|
"org.matrix.msc3488.asset": {
|
2022-04-13 08:44:15 +00:00
|
|
|
"type": "m.self",
|
|
|
|
},
|
|
|
|
"org.matrix.msc3488.ts": 123456789,
|
|
|
|
"timeout": 3600000,
|
|
|
|
},
|
|
|
|
"event_id": "$1",
|
|
|
|
"origin_server_ts": 123456789,
|
|
|
|
"room_id": "!room:server",
|
|
|
|
"sender": "@user:server",
|
|
|
|
"state_key": "@user:server",
|
|
|
|
"type": "org.matrix.msc3672.beacon_info",
|
|
|
|
},
|
|
|
|
Symbol(kCapture): false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
>
|
|
|
|
<span
|
2022-04-14 12:41:28 +00:00
|
|
|
className="mx_BeaconStatus_expiryTime"
|
2022-04-13 08:44:15 +00:00
|
|
|
>
|
2022-04-14 12:41:28 +00:00
|
|
|
Live until 11:17
|
2022-04-13 08:44:15 +00:00
|
|
|
</span>
|
2022-04-14 12:41:28 +00:00
|
|
|
</BeaconExpiryTime>
|
2022-04-13 08:44:15 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</BeaconStatus>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<BeaconStatus /> renders loading state 1`] = `
|
|
|
|
<BeaconStatus
|
|
|
|
displayStatus="Loading"
|
2022-04-14 12:41:28 +00:00
|
|
|
label="test label"
|
2022-04-20 11:57:50 +00:00
|
|
|
withIcon={true}
|
2022-04-13 08:44:15 +00:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_BeaconStatus mx_BeaconStatus_Loading"
|
|
|
|
>
|
|
|
|
<StyledLiveBeaconIcon
|
|
|
|
className="mx_BeaconStatus_icon"
|
|
|
|
isIdle={true}
|
|
|
|
withError={false}
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_StyledLiveBeaconIcon mx_BeaconStatus_icon mx_StyledLiveBeaconIcon_idle"
|
|
|
|
/>
|
|
|
|
</StyledLiveBeaconIcon>
|
2022-04-14 12:41:28 +00:00
|
|
|
<div
|
|
|
|
className="mx_BeaconStatus_description"
|
|
|
|
>
|
2022-06-05 05:40:17 +00:00
|
|
|
<span
|
|
|
|
className="mx_BeaconStatus_description_status"
|
|
|
|
>
|
2022-04-14 12:41:28 +00:00
|
|
|
Loading live location...
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-04-13 08:44:15 +00:00
|
|
|
</div>
|
|
|
|
</BeaconStatus>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<BeaconStatus /> renders stopped state 1`] = `
|
|
|
|
<BeaconStatus
|
|
|
|
displayStatus="Stopped"
|
2022-04-14 12:41:28 +00:00
|
|
|
label="test label"
|
2022-04-20 11:57:50 +00:00
|
|
|
withIcon={true}
|
2022-04-13 08:44:15 +00:00
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_BeaconStatus mx_BeaconStatus_Stopped"
|
|
|
|
>
|
|
|
|
<StyledLiveBeaconIcon
|
|
|
|
className="mx_BeaconStatus_icon"
|
|
|
|
isIdle={true}
|
|
|
|
withError={false}
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
className="mx_StyledLiveBeaconIcon mx_BeaconStatus_icon mx_StyledLiveBeaconIcon_idle"
|
|
|
|
/>
|
|
|
|
</StyledLiveBeaconIcon>
|
2022-04-14 12:41:28 +00:00
|
|
|
<div
|
|
|
|
className="mx_BeaconStatus_description"
|
|
|
|
>
|
2022-06-05 05:40:17 +00:00
|
|
|
<span
|
|
|
|
className="mx_BeaconStatus_description_status"
|
|
|
|
>
|
2022-04-14 12:41:28 +00:00
|
|
|
Live location ended
|
|
|
|
</span>
|
|
|
|
</div>
|
2022-04-13 08:44:15 +00:00
|
|
|
</div>
|
|
|
|
</BeaconStatus>
|
|
|
|
`;
|