mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-29 14:00:48 +08:00
b7872f2ff7
* add session manager tab to user settings * fussy import ordering * i18n * extract device fetching logic into hook * use new extended device type in device tile, add verified metadata * add current session section, test * tidy * update types for DeviceWithVerification
148 lines
2.5 KiB
Plaintext
148 lines
2.5 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`<DeviceTile /> renders a device with no metadata 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_DeviceTile"
|
|
data-testid="device-tile-123"
|
|
>
|
|
<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>
|
|
·
|
|
·
|
|
</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"
|
|
>
|
|
<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>
|
|
·
|
|
·
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="mx_DeviceTile_actions"
|
|
/>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`<DeviceTile /> renders display name with a tooltip 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_DeviceTile"
|
|
data-testid="device-tile-123"
|
|
>
|
|
<div
|
|
class="mx_DeviceTile_info"
|
|
>
|
|
<div
|
|
tabindex="0"
|
|
>
|
|
<h4
|
|
class="mx_Heading_h4"
|
|
>
|
|
My device
|
|
</h4>
|
|
</div>
|
|
<div
|
|
class="mx_DeviceTile_metadata"
|
|
>
|
|
<span
|
|
data-testid="device-metadata-isVerified"
|
|
>
|
|
Unverified
|
|
</span>
|
|
·
|
|
·
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="mx_DeviceTile_actions"
|
|
/>
|
|
</div>
|
|
</div>
|
|
`;
|
|
|
|
exports[`<DeviceTile /> separates metadata with a dot 1`] = `
|
|
<div>
|
|
<div
|
|
class="mx_DeviceTile"
|
|
data-testid="device-tile-123"
|
|
>
|
|
<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>
|
|
·
|
|
<span
|
|
data-testid="device-metadata-lastActivity"
|
|
>
|
|
Last activity 15:13
|
|
</span>
|
|
·
|
|
<span
|
|
data-testid="device-metadata-lastSeenIp"
|
|
>
|
|
1.2.3.4
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="mx_DeviceTile_actions"
|
|
/>
|
|
</div>
|
|
</div>
|
|
`;
|