2022-08-15 15:30:18 +00:00
|
|
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
|
|
|
|
exports[`<CurrentDeviceSection /> displays device details on toggle click 1`] = `
|
|
|
|
HTMLCollection [
|
|
|
|
<div
|
2022-12-22 01:58:29 +00:00
|
|
|
class="mx_DeviceDetails mx_CurrentDeviceSection_deviceDetails"
|
2022-08-17 09:58:34 +00:00
|
|
|
data-testid="device-detail-alices_device"
|
2022-08-15 15:30:18 +00:00
|
|
|
>
|
|
|
|
<section
|
|
|
|
class="mx_DeviceDetails_section"
|
|
|
|
>
|
2022-09-15 14:34:50 +00:00
|
|
|
<div
|
|
|
|
class="mx_DeviceDetailHeading"
|
|
|
|
data-testid="device-detail-heading"
|
2022-08-15 15:30:18 +00:00
|
|
|
>
|
2022-12-20 01:17:05 +00:00
|
|
|
<h4
|
|
|
|
class="mx_Heading_h4"
|
2022-09-15 14:34:50 +00:00
|
|
|
>
|
|
|
|
alices_device
|
2022-12-20 01:17:05 +00:00
|
|
|
</h4>
|
2022-09-15 14:34:50 +00: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 11:45:09 +00: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 01:58:29 +00:00
|
|
|
Verify your current session for enhanced secure messaging.
|
2022-10-26 09:30:32 +00: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 11:45:09 +00:00
|
|
|
</p>
|
2022-09-15 14:34:50 +00:00
|
|
|
<div
|
|
|
|
class="mx_DeviceSecurityCard_actions"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary"
|
|
|
|
data-testid="verification-status-button-alices_device"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
Verify session
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-16 11:45:09 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-15 15:30:18 +00:00
|
|
|
</section>
|
|
|
|
<section
|
|
|
|
class="mx_DeviceDetails_section"
|
|
|
|
>
|
|
|
|
<p
|
|
|
|
class="mx_DeviceDetails_sectionHeading"
|
|
|
|
>
|
|
|
|
Session details
|
|
|
|
</p>
|
|
|
|
<table
|
2022-09-14 12:37:36 +00:00
|
|
|
class="mx_DeviceDetails_metadataTable"
|
2022-10-04 13:12:23 +00:00
|
|
|
data-testid="device-detail-metadata-session"
|
2022-08-15 15:30:18 +00:00
|
|
|
>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataLabel"
|
|
|
|
>
|
|
|
|
Session ID
|
|
|
|
</td>
|
|
|
|
<td
|
|
|
|
class="mxDeviceDetails_metadataValue"
|
|
|
|
>
|
|
|
|
alices_device
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</section>
|
2022-09-14 12:37:36 +00: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"
|
|
|
|
>
|
2022-09-14 16:18:32 +00:00
|
|
|
<span
|
|
|
|
class="mx_DeviceDetails_signOutButtonContent"
|
|
|
|
>
|
|
|
|
Sign out of this session
|
|
|
|
</span>
|
2022-09-14 12:37:36 +00:00
|
|
|
</div>
|
|
|
|
</section>
|
2022-08-15 15:30:18 +00:00
|
|
|
</div>,
|
|
|
|
]
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<CurrentDeviceSection /> handles when device is falsy 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsection"
|
|
|
|
data-testid="current-session-section"
|
|
|
|
>
|
2022-10-11 18:12:02 +00:00
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsectionHeading"
|
2022-08-15 15:30:18 +00:00
|
|
|
>
|
2022-10-11 18:12:02 +00:00
|
|
|
<h3
|
2023-06-29 10:30:25 +00:00
|
|
|
class="mx_Heading_h4 mx_SettingsSubsectionHeading_heading"
|
2022-10-11 18:12:02 +00:00
|
|
|
>
|
|
|
|
Current session
|
|
|
|
</h3>
|
2024-04-24 12:24:25 +00:00
|
|
|
<span
|
|
|
|
data-state="closed"
|
2022-10-13 07:07:34 +00:00
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
2024-04-24 12:24:25 +00:00
|
|
|
aria-disabled="true"
|
|
|
|
aria-expanded="false"
|
|
|
|
aria-haspopup="true"
|
|
|
|
aria-label="Options"
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_disabled"
|
|
|
|
data-testid="current-session-menu"
|
|
|
|
disabled=""
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_KebabContextMenu_icon"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</span>
|
2022-10-11 18:12:02 +00:00
|
|
|
</div>
|
2022-08-15 15:30:18 +00:00
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsection_content"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<CurrentDeviceSection /> renders device and correct security card when device is unverified 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsection"
|
|
|
|
data-testid="current-session-section"
|
|
|
|
>
|
2022-10-11 18:12:02 +00:00
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsectionHeading"
|
2022-08-15 15:30:18 +00:00
|
|
|
>
|
2022-10-11 18:12:02 +00:00
|
|
|
<h3
|
2023-06-29 10:30:25 +00:00
|
|
|
class="mx_Heading_h4 mx_SettingsSubsectionHeading_heading"
|
2022-10-11 18:12:02 +00:00
|
|
|
>
|
|
|
|
Current session
|
|
|
|
</h3>
|
2022-10-13 07:07:34 +00:00
|
|
|
<div
|
|
|
|
aria-expanded="false"
|
|
|
|
aria-haspopup="true"
|
2024-04-24 12:24:25 +00:00
|
|
|
aria-label="Options"
|
2022-10-13 07:07:34 +00:00
|
|
|
class="mx_AccessibleButton"
|
2024-04-24 12:24:25 +00:00
|
|
|
data-state="closed"
|
2022-10-13 07:07:34 +00:00
|
|
|
data-testid="current-session-menu"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_KebabContextMenu_icon"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-10-11 18:12:02 +00:00
|
|
|
</div>
|
2022-08-15 15:30:18 +00:00
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsection_content"
|
|
|
|
>
|
|
|
|
<div
|
2022-10-14 11:43:20 +00:00
|
|
|
class="mx_DeviceTile mx_DeviceTile_interactive"
|
2022-08-15 15:30:18 +00:00
|
|
|
data-testid="device-tile-alices_device"
|
|
|
|
>
|
2022-08-29 10:48:00 +00:00
|
|
|
<div
|
2022-10-05 11:41:01 +00:00
|
|
|
class="mx_DeviceTypeIcon"
|
2022-08-29 10:48:00 +00:00
|
|
|
>
|
|
|
|
<div
|
2022-10-06 10:34:11 +00:00
|
|
|
class="mx_DeviceTypeIcon_deviceIconWrapper"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="Unknown session type"
|
|
|
|
class="mx_DeviceTypeIcon_deviceIcon"
|
|
|
|
role="img"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-08-29 10:48:00 +00:00
|
|
|
<div
|
|
|
|
aria-label="Unverified"
|
2022-10-05 11:41:01 +00:00
|
|
|
class="mx_DeviceTypeIcon_verificationIcon unverified"
|
2022-08-29 10:48:00 +00:00
|
|
|
role="img"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-08-15 15:30:18 +00:00
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_info"
|
|
|
|
>
|
|
|
|
<h4
|
|
|
|
class="mx_Heading_h4"
|
|
|
|
>
|
|
|
|
alices_device
|
|
|
|
</h4>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_metadata"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
data-testid="device-metadata-isVerified"
|
|
|
|
>
|
|
|
|
Unverified
|
|
|
|
</span>
|
2022-09-23 13:21:04 +00:00
|
|
|
·
|
|
|
|
<span
|
|
|
|
data-testid="device-metadata-deviceId"
|
|
|
|
>
|
|
|
|
alices_device
|
|
|
|
</span>
|
2022-08-15 15:30:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_actions"
|
|
|
|
>
|
|
|
|
<div
|
2022-11-20 19:24:56 +00:00
|
|
|
aria-label="Show details"
|
2022-08-15 15:30:18 +00:00
|
|
|
class="mx_AccessibleButton mx_DeviceExpandDetailsButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_icon"
|
|
|
|
data-testid="current-session-toggle-details"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceExpandDetailsButton_icon"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<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 01:58:29 +00:00
|
|
|
Verify your current session for enhanced secure messaging.
|
2022-10-26 09:30:32 +00: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-15 15:30:18 +00:00
|
|
|
</p>
|
2022-09-08 15:35:53 +00:00
|
|
|
<div
|
|
|
|
class="mx_DeviceSecurityCard_actions"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary"
|
|
|
|
data-testid="verification-status-button-alices_device"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
Verify session
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-15 15:30:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|
|
|
|
|
|
|
|
exports[`<CurrentDeviceSection /> renders device and correct security card when device is verified 1`] = `
|
|
|
|
<div>
|
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsection"
|
|
|
|
data-testid="current-session-section"
|
|
|
|
>
|
2022-10-11 18:12:02 +00:00
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsectionHeading"
|
2022-08-15 15:30:18 +00:00
|
|
|
>
|
2022-10-11 18:12:02 +00:00
|
|
|
<h3
|
2023-06-29 10:30:25 +00:00
|
|
|
class="mx_Heading_h4 mx_SettingsSubsectionHeading_heading"
|
2022-10-11 18:12:02 +00:00
|
|
|
>
|
|
|
|
Current session
|
|
|
|
</h3>
|
2022-10-13 07:07:34 +00:00
|
|
|
<div
|
|
|
|
aria-expanded="false"
|
|
|
|
aria-haspopup="true"
|
2024-04-24 12:24:25 +00:00
|
|
|
aria-label="Options"
|
2022-10-13 07:07:34 +00:00
|
|
|
class="mx_AccessibleButton"
|
2024-04-24 12:24:25 +00:00
|
|
|
data-state="closed"
|
2022-10-13 07:07:34 +00:00
|
|
|
data-testid="current-session-menu"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_KebabContextMenu_icon"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-10-11 18:12:02 +00:00
|
|
|
</div>
|
2022-08-15 15:30:18 +00:00
|
|
|
<div
|
|
|
|
class="mx_SettingsSubsection_content"
|
|
|
|
>
|
|
|
|
<div
|
2022-10-14 11:43:20 +00:00
|
|
|
class="mx_DeviceTile mx_DeviceTile_interactive"
|
2022-08-15 15:30:18 +00:00
|
|
|
data-testid="device-tile-alices_device"
|
|
|
|
>
|
2022-08-29 10:48:00 +00:00
|
|
|
<div
|
2022-10-05 11:41:01 +00:00
|
|
|
class="mx_DeviceTypeIcon"
|
2022-08-29 10:48:00 +00:00
|
|
|
>
|
|
|
|
<div
|
2022-10-06 10:34:11 +00:00
|
|
|
class="mx_DeviceTypeIcon_deviceIconWrapper"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
aria-label="Unknown session type"
|
|
|
|
class="mx_DeviceTypeIcon_deviceIcon"
|
|
|
|
role="img"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-08-29 10:48:00 +00:00
|
|
|
<div
|
|
|
|
aria-label="Unverified"
|
2022-10-05 11:41:01 +00:00
|
|
|
class="mx_DeviceTypeIcon_verificationIcon unverified"
|
2022-08-29 10:48:00 +00:00
|
|
|
role="img"
|
|
|
|
/>
|
|
|
|
</div>
|
2022-08-15 15:30:18 +00:00
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_info"
|
|
|
|
>
|
|
|
|
<h4
|
|
|
|
class="mx_Heading_h4"
|
|
|
|
>
|
|
|
|
alices_device
|
|
|
|
</h4>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_metadata"
|
|
|
|
>
|
|
|
|
<span
|
|
|
|
data-testid="device-metadata-isVerified"
|
|
|
|
>
|
|
|
|
Unverified
|
|
|
|
</span>
|
2022-09-23 13:21:04 +00:00
|
|
|
·
|
|
|
|
<span
|
|
|
|
data-testid="device-metadata-deviceId"
|
|
|
|
>
|
|
|
|
alices_device
|
|
|
|
</span>
|
2022-08-15 15:30:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceTile_actions"
|
|
|
|
>
|
|
|
|
<div
|
2022-11-20 19:24:56 +00:00
|
|
|
aria-label="Show details"
|
2022-08-15 15:30:18 +00:00
|
|
|
class="mx_AccessibleButton mx_DeviceExpandDetailsButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_icon"
|
|
|
|
data-testid="current-session-toggle-details"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_DeviceExpandDetailsButton_icon"
|
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<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 01:58:29 +00:00
|
|
|
Verify your current session for enhanced secure messaging.
|
2022-10-26 09:30:32 +00: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-15 15:30:18 +00:00
|
|
|
</p>
|
2022-09-08 15:35:53 +00:00
|
|
|
<div
|
|
|
|
class="mx_DeviceSecurityCard_actions"
|
|
|
|
>
|
|
|
|
<div
|
|
|
|
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_primary"
|
|
|
|
data-testid="verification-status-button-alices_device"
|
|
|
|
role="button"
|
|
|
|
tabindex="0"
|
|
|
|
>
|
|
|
|
Verify session
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-08-15 15:30:18 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
`;
|