2022-08-08 08:59:22 +02:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`<DeviceTile /> renders a device with no metadata 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile"
|
2022-08-10 18:14:59 +02:00
|
|
|
data-testid="device-tile-123"
|
2022-08-08 08:59:22 +02:00
|
|
|
>
|
2022-08-29 12:48:00 +02:00
|
|
|
<div
|
2022-10-05 13:41:01 +02:00
|
|
|
class="mx_DeviceTypeIcon"
|
2022-08-29 12:48:00 +02:00
|
|
|
>
|
|
|
|
<div
|
2022-10-06 12:34:11 +02:00
|
|
|
class="mx_DeviceTypeIcon_deviceIconWrapper"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="Unknown session type"
|
|
|
|
class="mx_DeviceTypeIcon_deviceIcon"
|
|
|
|
role="img"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-08-29 12:48:00 +02:00
|
|
|
<div
|
|
|
|
aria-label="Unverified"
|
2022-10-05 13:41:01 +02:00
|
|
|
class="mx_DeviceTypeIcon_verificationIcon unverified"
|
2022-08-29 12:48:00 +02:00
|
|
|
role="img"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-08-08 08:59:22 +02:00
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_info"
|
|
|
|
>
|
|
|
|
<h4
|
|
|
|
class="mx_Heading_h4"
|
|
|
|
>
|
|
|
|
123
|
|
|
|
</h4>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_metadata"
|
|
|
|
>
|
2022-08-10 18:14:59 +02:00
|
|
|
<span
|
|
|
|
data-testid="device-metadata-isVerified"
|
|
|
|
>
|
|
|
|
Unverified
|
|
|
|
</span>
|
2022-09-23 15:21:04 +02:00
|
|
|
·
|
|
|
|
<span
|
|
|
|
data-testid="device-metadata-deviceId"
|
|
|
|
>
|
|
|
|
123
|
|
|
|
</span>
|
2022-08-10 18:14:59 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_actions"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<DeviceTile /> renders a verified device with no metadata 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile"
|
|
|
|
data-testid="device-tile-123"
|
|
|
|
>
|
2022-08-29 12:48:00 +02:00
|
|
|
<div
|
2022-10-05 13:41:01 +02:00
|
|
|
class="mx_DeviceTypeIcon"
|
2022-08-29 12:48:00 +02:00
|
|
|
>
|
|
|
|
<div
|
2022-10-06 12:34:11 +02:00
|
|
|
class="mx_DeviceTypeIcon_deviceIconWrapper"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="Unknown session type"
|
|
|
|
class="mx_DeviceTypeIcon_deviceIcon"
|
|
|
|
role="img"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-08-29 12:48:00 +02:00
|
|
|
<div
|
|
|
|
aria-label="Unverified"
|
2022-10-05 13:41:01 +02:00
|
|
|
class="mx_DeviceTypeIcon_verificationIcon unverified"
|
2022-08-29 12:48:00 +02:00
|
|
|
role="img"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-08-10 18:14:59 +02:00
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_info"
|
|
|
|
>
|
|
|
|
<h4
|
|
|
|
class="mx_Heading_h4"
|
|
|
|
>
|
|
|
|
123
|
|
|
|
</h4>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_metadata"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
data-testid="device-metadata-isVerified"
|
|
|
|
>
|
|
|
|
Unverified
|
|
|
|
</span>
|
2022-09-23 15:21:04 +02:00
|
|
|
·
|
|
|
|
<span
|
|
|
|
data-testid="device-metadata-deviceId"
|
|
|
|
>
|
|
|
|
123
|
|
|
|
</span>
|
2022-08-08 08:59:22 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_actions"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<DeviceTile /> renders display name with a tooltip 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile"
|
2022-08-10 18:14:59 +02:00
|
|
|
data-testid="device-tile-123"
|
2022-08-08 08:59:22 +02:00
|
|
|
>
|
2022-08-29 12:48:00 +02:00
|
|
|
<div
|
2022-10-05 13:41:01 +02:00
|
|
|
class="mx_DeviceTypeIcon"
|
2022-08-29 12:48:00 +02:00
|
|
|
>
|
|
|
|
<div
|
2022-10-06 12:34:11 +02:00
|
|
|
class="mx_DeviceTypeIcon_deviceIconWrapper"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="Unknown session type"
|
|
|
|
class="mx_DeviceTypeIcon_deviceIcon"
|
|
|
|
role="img"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-08-29 12:48:00 +02:00
|
|
|
<div
|
|
|
|
aria-label="Unverified"
|
2022-10-05 13:41:01 +02:00
|
|
|
class="mx_DeviceTypeIcon_verificationIcon unverified"
|
2022-08-29 12:48:00 +02:00
|
|
|
role="img"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-08-08 08:59:22 +02:00
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_info"
|
|
|
|
>
|
2022-09-23 15:21:04 +02:00
|
|
|
<h4
|
|
|
|
class="mx_Heading_h4"
|
2022-08-08 08:59:22 +02:00
|
|
|
>
|
2022-09-23 15:21:04 +02:00
|
|
|
My device
|
|
|
|
</h4>
|
2022-08-08 08:59:22 +02:00
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_metadata"
|
|
|
|
>
|
2022-08-10 18:14:59 +02:00
|
|
|
<span
|
|
|
|
data-testid="device-metadata-isVerified"
|
|
|
|
>
|
|
|
|
Unverified
|
|
|
|
</span>
|
2022-09-23 15:21:04 +02:00
|
|
|
·
|
|
|
|
<span
|
|
|
|
data-testid="device-metadata-deviceId"
|
|
|
|
>
|
|
|
|
123
|
|
|
|
</span>
|
2022-08-08 08:59:22 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_actions"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<DeviceTile /> separates metadata with a dot 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile"
|
2022-08-10 18:14:59 +02:00
|
|
|
data-testid="device-tile-123"
|
2022-08-08 08:59:22 +02:00
|
|
|
>
|
2022-08-29 12:48:00 +02:00
|
|
|
<div
|
2022-10-05 13:41:01 +02:00
|
|
|
class="mx_DeviceTypeIcon"
|
2022-08-29 12:48:00 +02:00
|
|
|
>
|
|
|
|
<div
|
2022-10-06 12:34:11 +02:00
|
|
|
class="mx_DeviceTypeIcon_deviceIconWrapper"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="Unknown session type"
|
|
|
|
class="mx_DeviceTypeIcon_deviceIcon"
|
|
|
|
role="img"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-08-29 12:48:00 +02:00
|
|
|
<div
|
|
|
|
aria-label="Unverified"
|
2022-10-05 13:41:01 +02:00
|
|
|
class="mx_DeviceTypeIcon_verificationIcon unverified"
|
2022-08-29 12:48:00 +02:00
|
|
|
role="img"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-08-08 08:59:22 +02:00
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_info"
|
|
|
|
>
|
|
|
|
<h4
|
|
|
|
class="mx_Heading_h4"
|
|
|
|
>
|
|
|
|
123
|
|
|
|
</h4>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_metadata"
|
|
|
|
>
|
2022-08-10 18:14:59 +02:00
|
|
|
<span
|
|
|
|
data-testid="device-metadata-isVerified"
|
|
|
|
>
|
|
|
|
Unverified
|
|
|
|
</span>
|
|
|
|
·
|
2022-08-08 08:59:22 +02:00
|
|
|
<span
|
|
|
|
data-testid="device-metadata-lastActivity"
|
|
|
|
>
|
|
|
|
Last activity 15:13
|
|
|
|
</span>
|
|
|
|
·
|
|
|
|
<span
|
|
|
|
data-testid="device-metadata-lastSeenIp"
|
|
|
|
>
|
|
|
|
1.2.3.4
|
|
|
|
</span>
|
2022-09-23 15:21:04 +02:00
|
|
|
·
|
|
|
|
<span
|
|
|
|
data-testid="device-metadata-deviceId"
|
|
|
|
>
|
|
|
|
123
|
|
|
|
</span>
|
2022-08-08 08:59:22 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_actions"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|