2022-08-11 17:13:17 +08:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
2022-08-16 19:45:09 +08:00
|
|
|
exports[`<DeviceDetails /> renders a verified device 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceDetails"
|
2022-08-17 17:58:34 +08:00
|
|
|
data-testid="device-detail-my-device"
|
2022-08-16 19:45:09 +08:00
|
|
|
>
|
|
|
|
<section
|
|
|
|
class="mx_DeviceDetails_section"
|
|
|
|
>
|
2022-09-15 22:34:50 +08:00
|
|
|
<div
|
|
|
|
class="mx_DeviceDetailHeading"
|
|
|
|
data-testid="device-detail-heading"
|
2022-08-16 19:45:09 +08:00
|
|
|
>
|
2022-12-20 09:17:05 +08:00
|
|
|
<h4
|
|
|
|
class="mx_Heading_h4"
|
2022-09-15 22:34:50 +08:00
|
|
|
>
|
|
|
|
my-device
|
2022-12-20 09:17:05 +08:00
|
|
|
</h4>
|
2022-09-15 22:34:50 +08:00
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_DeviceDetailHeading_renameCta mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link_inline"
|
|
|
|
data-testid="device-heading-rename-cta"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
Rename
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-16 19:45:09 +08:00
|
|
|
<div
|
|
|
|
class="mx_DeviceSecurityCard"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceSecurityCard_icon Verified"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
height="16"
|
|
|
|
width="16"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceSecurityCard_content"
|
|
|
|
>
|
|
|
|
<p
|
|
|
|
class="mx_DeviceSecurityCard_heading"
|
|
|
|
>
|
|
|
|
Verified session
|
|
|
|
</p>
|
|
|
|
<p
|
|
|
|
class="mx_DeviceSecurityCard_description"
|
|
|
|
>
|
2022-12-22 09:58:29 +08:00
|
|
|
Your current session is ready for secure messaging.
|
2022-10-26 17:30:32 +08:00
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_LearnMore_button mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link_inline"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
Learn more
|
|
|
|
</div>
|
2022-08-16 19:45:09 +08:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<section
|
|
|
|
class="mx_DeviceDetails_section"
|
|
|
|
>
|
|
|
|
<p
|
|
|
|
class="mx_DeviceDetails_sectionHeading"
|
|
|
|
>
|
|
|
|
Session details
|
|
|
|
</p>
|
|
|
|
<table
|
2022-09-14 20:37:36 +08:00
|
|
|
class="mx_DeviceDetails_metadataTable"
|
2022-10-04 21:12:23 +08:00
|
|
|
data-testid="device-detail-metadata-session"
|
2022-08-16 19:45:09 +08:00
|
|
|
>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataLabel"
|
|
|
|
>
|
|
|
|
Session ID
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataValue"
|
|
|
|
>
|
|
|
|
my-device
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</section>
|
2022-09-15 00:18:32 +08:00
|
|
|
<section
|
|
|
|
class="mx_DeviceDetails_section"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_danger_inline"
|
|
|
|
data-testid="device-detail-sign-out-cta"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_DeviceDetails_signOutButtonContent"
|
|
|
|
>
|
|
|
|
Sign out of this session
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</section>
|
2022-08-16 19:45:09 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
2022-08-11 17:13:17 +08:00
|
|
|
exports[`<DeviceDetails /> renders device with metadata 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceDetails"
|
2022-08-17 17:58:34 +08:00
|
|
|
data-testid="device-detail-my-device"
|
2022-08-11 17:13:17 +08:00
|
|
|
>
|
|
|
|
<section
|
|
|
|
class="mx_DeviceDetails_section"
|
|
|
|
>
|
2022-09-15 22:34:50 +08:00
|
|
|
<div
|
|
|
|
class="mx_DeviceDetailHeading"
|
|
|
|
data-testid="device-detail-heading"
|
2022-08-11 17:13:17 +08:00
|
|
|
>
|
2022-12-20 09:17:05 +08:00
|
|
|
<h4
|
|
|
|
class="mx_Heading_h4"
|
2022-09-15 22:34:50 +08:00
|
|
|
>
|
|
|
|
My Device
|
2022-12-20 09:17:05 +08:00
|
|
|
</h4>
|
2022-09-15 22:34:50 +08:00
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_DeviceDetailHeading_renameCta mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link_inline"
|
|
|
|
data-testid="device-heading-rename-cta"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
Rename
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-16 19:45:09 +08:00
|
|
|
<div
|
|
|
|
class="mx_DeviceSecurityCard"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceSecurityCard_icon Unverified"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
height="16"
|
|
|
|
width="16"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceSecurityCard_content"
|
|
|
|
>
|
|
|
|
<p
|
|
|
|
class="mx_DeviceSecurityCard_heading"
|
|
|
|
>
|
|
|
|
Unverified session
|
|
|
|
</p>
|
|
|
|
<p
|
|
|
|
class="mx_DeviceSecurityCard_description"
|
|
|
|
>
|
2022-12-22 09:58:29 +08:00
|
|
|
Verify your current session for enhanced secure messaging.
|
2022-10-26 17:30:32 +08:00
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_LearnMore_button mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link_inline"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
Learn more
|
|
|
|
</div>
|
2022-08-16 19:45:09 +08:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-11 17:13:17 +08:00
|
|
|
</section>
|
|
|
|
<section
|
|
|
|
class="mx_DeviceDetails_section"
|
|
|
|
>
|
|
|
|
<p
|
|
|
|
class="mx_DeviceDetails_sectionHeading"
|
|
|
|
>
|
|
|
|
Session details
|
|
|
|
</p>
|
|
|
|
<table
|
2022-09-14 20:37:36 +08:00
|
|
|
class="mx_DeviceDetails_metadataTable"
|
2022-10-04 21:12:23 +08:00
|
|
|
data-testid="device-detail-metadata-session"
|
2022-08-11 17:13:17 +08:00
|
|
|
>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataLabel"
|
|
|
|
>
|
|
|
|
Session ID
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataValue"
|
|
|
|
>
|
|
|
|
my-device
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataLabel"
|
|
|
|
>
|
|
|
|
Last activity
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataValue"
|
|
|
|
>
|
|
|
|
Sun 22:34
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<table
|
2022-09-14 20:37:36 +08:00
|
|
|
class="mx_DeviceDetails_metadataTable"
|
2022-10-04 21:12:23 +08:00
|
|
|
data-testid="device-detail-metadata-application"
|
|
|
|
>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Application
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataLabel"
|
|
|
|
>
|
|
|
|
Name
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataValue"
|
|
|
|
>
|
|
|
|
Element Web
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<table
|
|
|
|
class="mx_DeviceDetails_metadataTable"
|
|
|
|
data-testid="device-detail-metadata-device"
|
2022-08-11 17:13:17 +08:00
|
|
|
>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Device
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2022-10-07 16:49:35 +08:00
|
|
|
<tr>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataLabel"
|
|
|
|
>
|
|
|
|
Model
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataValue"
|
|
|
|
>
|
|
|
|
Iphone X
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataLabel"
|
|
|
|
>
|
|
|
|
Operating system
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataValue"
|
|
|
|
>
|
|
|
|
Windows 95
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-10-18 21:00:01 +08:00
|
|
|
<tr>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataLabel"
|
|
|
|
>
|
|
|
|
Browser
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataValue"
|
|
|
|
>
|
|
|
|
Firefox 100
|
|
|
|
</td>
|
|
|
|
</tr>
|
2022-08-11 17:13:17 +08:00
|
|
|
<tr>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataLabel"
|
|
|
|
>
|
|
|
|
IP address
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataValue"
|
|
|
|
>
|
|
|
|
123.456.789
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</section>
|
2022-09-15 00:18:32 +08:00
|
|
|
<section
|
|
|
|
class="mx_DeviceDetails_section"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_danger_inline"
|
|
|
|
data-testid="device-detail-sign-out-cta"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_DeviceDetails_signOutButtonContent"
|
|
|
|
>
|
|
|
|
Sign out of this session
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</section>
|
2022-08-11 17:13:17 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<DeviceDetails /> renders device without metadata 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceDetails"
|
2022-08-17 17:58:34 +08:00
|
|
|
data-testid="device-detail-my-device"
|
2022-08-11 17:13:17 +08:00
|
|
|
>
|
|
|
|
<section
|
|
|
|
class="mx_DeviceDetails_section"
|
|
|
|
>
|
2022-09-15 22:34:50 +08:00
|
|
|
<div
|
|
|
|
class="mx_DeviceDetailHeading"
|
|
|
|
data-testid="device-detail-heading"
|
2022-08-11 17:13:17 +08:00
|
|
|
>
|
2022-12-20 09:17:05 +08:00
|
|
|
<h4
|
|
|
|
class="mx_Heading_h4"
|
2022-09-15 22:34:50 +08:00
|
|
|
>
|
|
|
|
my-device
|
2022-12-20 09:17:05 +08:00
|
|
|
</h4>
|
2022-09-15 22:34:50 +08:00
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_DeviceDetailHeading_renameCta mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link_inline"
|
|
|
|
data-testid="device-heading-rename-cta"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
Rename
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-16 19:45:09 +08:00
|
|
|
<div
|
|
|
|
class="mx_DeviceSecurityCard"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceSecurityCard_icon Unverified"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
height="16"
|
|
|
|
width="16"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceSecurityCard_content"
|
|
|
|
>
|
|
|
|
<p
|
|
|
|
class="mx_DeviceSecurityCard_heading"
|
|
|
|
>
|
|
|
|
Unverified session
|
|
|
|
</p>
|
|
|
|
<p
|
|
|
|
class="mx_DeviceSecurityCard_description"
|
|
|
|
>
|
2022-12-22 09:58:29 +08:00
|
|
|
Verify your current session for enhanced secure messaging.
|
2022-10-26 17:30:32 +08:00
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_LearnMore_button mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link_inline"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
Learn more
|
|
|
|
</div>
|
2022-08-16 19:45:09 +08:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-11 17:13:17 +08:00
|
|
|
</section>
|
|
|
|
<section
|
|
|
|
class="mx_DeviceDetails_section"
|
|
|
|
>
|
|
|
|
<p
|
|
|
|
class="mx_DeviceDetails_sectionHeading"
|
|
|
|
>
|
|
|
|
Session details
|
|
|
|
</p>
|
|
|
|
<table
|
2022-09-14 20:37:36 +08:00
|
|
|
class="mx_DeviceDetails_metadataTable"
|
2022-10-04 21:12:23 +08:00
|
|
|
data-testid="device-detail-metadata-session"
|
2022-08-11 17:13:17 +08:00
|
|
|
>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataLabel"
|
|
|
|
>
|
|
|
|
Session ID
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataValue"
|
|
|
|
>
|
|
|
|
my-device
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</section>
|
2022-09-15 00:18:32 +08:00
|
|
|
<section
|
|
|
|
class="mx_DeviceDetails_section"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_danger_inline"
|
|
|
|
data-testid="device-detail-sign-out-cta"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
class="mx_DeviceDetails_signOutButtonContent"
|
|
|
|
>
|
|
|
|
Sign out of this session
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</section>
|
2022-08-11 17:13:17 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|