mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-25 18:08:14 +08:00
5e18abe7f7
* record device client inforamtion events on app start * matrix-client-information -> matrix_client_information * fix types * remove another unused export * add docs link * display device client information in device details * update snapshots * integration-ish test client information in metadata * tests * fix tests * export helper * DeviceClientInformation type * Device manager - select all devices (#9330) * add device selection that does nothing * multi select and sign out of sessions * test multiple selection * fix type after rebase * select all sessions * rename type * use ExtendedDevice type everywhere * rename clientName to appName for less collision with UA parser * fix bad find and replace * rename ExtendedDeviceInfo to ExtendedDeviceAppInfo * rename DeviceType comp to DeviceTypeIcon * update tests for new required property deviceType * add stubbed user agent parsing * add icons * set device type icon * device type icon tets * update snapshots for device type icon changes * desktop icon viewbox * i18n
234 lines
4.4 KiB
Plaintext
234 lines
4.4 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_DeviceTypeIcon"
|
|
>
|
|
<div
|
|
class="mx_DeviceTypeIcon_deviceIconWrapper"
|
|
>
|
|
<div
|
|
aria-label="Unknown session type"
|
|
class="mx_DeviceTypeIcon_deviceIcon"
|
|
role="img"
|
|
/>
|
|
</div>
|
|
<div
|
|
aria-label="Unverified"
|
|
class="mx_DeviceTypeIcon_verificationIcon unverified"
|
|
role="img"
|
|
/>
|
|
</div>
|
|
<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-deviceId"
|
|
>
|
|
123
|
|
</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_DeviceTypeIcon"
|
|
>
|
|
<div
|
|
class="mx_DeviceTypeIcon_deviceIconWrapper"
|
|
>
|
|
<div
|
|
aria-label="Unknown session type"
|
|
class="mx_DeviceTypeIcon_deviceIcon"
|
|
role="img"
|
|
/>
|
|
</div>
|
|
<div
|
|
aria-label="Unverified"
|
|
class="mx_DeviceTypeIcon_verificationIcon unverified"
|
|
role="img"
|
|
/>
|
|
</div>
|
|
<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-deviceId"
|
|
>
|
|
123
|
|
</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_DeviceTypeIcon"
|
|
>
|
|
<div
|
|
class="mx_DeviceTypeIcon_deviceIconWrapper"
|
|
>
|
|
<div
|
|
aria-label="Unknown session type"
|
|
class="mx_DeviceTypeIcon_deviceIcon"
|
|
role="img"
|
|
/>
|
|
</div>
|
|
<div
|
|
aria-label="Unverified"
|
|
class="mx_DeviceTypeIcon_verificationIcon unverified"
|
|
role="img"
|
|
/>
|
|
</div>
|
|
<div
|
|
class="mx_DeviceTile_info"
|
|
>
|
|
<h4
|
|
class="mx_Heading_h4"
|
|
>
|
|
My device
|
|
</h4>
|
|
<div
|
|
class="mx_DeviceTile_metadata"
|
|
>
|
|
<span
|
|
data-testid="device-metadata-isVerified"
|
|
>
|
|
Unverified
|
|
</span>
|
|
·
|
|
<span
|
|
data-testid="device-metadata-deviceId"
|
|
>
|
|
123
|
|
</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_DeviceTypeIcon"
|
|
>
|
|
<div
|
|
class="mx_DeviceTypeIcon_deviceIconWrapper"
|
|
>
|
|
<div
|
|
aria-label="Unknown session type"
|
|
class="mx_DeviceTypeIcon_deviceIcon"
|
|
role="img"
|
|
/>
|
|
</div>
|
|
<div
|
|
aria-label="Unverified"
|
|
class="mx_DeviceTypeIcon_verificationIcon unverified"
|
|
role="img"
|
|
/>
|
|
</div>
|
|
<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>
|
|
·
|
|
<span
|
|
data-testid="device-metadata-deviceId"
|
|
>
|
|
123
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div
|
|
class="mx_DeviceTile_actions"
|
|
/>
|
|
</div>
|
|
</div>
|
|
`;
|