This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 827
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Kerry Archibald
committed
Aug 15, 2022
1 parent
e1edc2b
commit 69a3b26
Showing
4 changed files
with
310 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
173 changes: 173 additions & 0 deletions
173
test/components/views/settings/devices/__snapshots__/FilteredDeviceList-test.tsx.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`<FilteredDeviceList /> displays no results message when there are no devices 1`] = ` | ||
HTMLCollection [ | ||
<div | ||
class="mx_FilteredDeviceList_noResults" | ||
> | ||
No sessions found. | ||
</div>, | ||
] | ||
`; | ||
|
||
exports[`<FilteredDeviceList /> filtering filters correctly for Inactive 1`] = ` | ||
HTMLCollection [ | ||
<div | ||
class="mx_FilteredDeviceList_securityCard" | ||
> | ||
<div | ||
class="mx_DeviceSecurityCard" | ||
> | ||
<div | ||
class="mx_DeviceSecurityCard_icon Inactive" | ||
> | ||
<div | ||
height="16" | ||
width="16" | ||
/> | ||
</div> | ||
<div | ||
class="mx_DeviceSecurityCard_content" | ||
> | ||
<p | ||
class="mx_DeviceSecurityCard_heading" | ||
> | ||
Inactive sessions | ||
</p> | ||
<p | ||
class="mx_DeviceSecurityCard_description" | ||
> | ||
Consider signing out from old sessions (90 days or older) you don't use anymore | ||
</p> | ||
</div> | ||
</div> | ||
</div>, | ||
] | ||
`; | ||
|
||
exports[`<FilteredDeviceList /> filtering filters correctly for Unverified 1`] = ` | ||
HTMLCollection [ | ||
<div | ||
class="mx_FilteredDeviceList_securityCard" | ||
> | ||
<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 sessions | ||
</p> | ||
<p | ||
class="mx_DeviceSecurityCard_description" | ||
> | ||
Verify your sessions for enhanced secure messaging or sign out from those you don't recognize or use anymore. | ||
</p> | ||
</div> | ||
</div> | ||
</div>, | ||
] | ||
`; | ||
|
||
exports[`<FilteredDeviceList /> filtering filters correctly for Verified 1`] = ` | ||
HTMLCollection [ | ||
<div | ||
class="mx_FilteredDeviceList_securityCard" | ||
> | ||
<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 sessions | ||
</p> | ||
<p | ||
class="mx_DeviceSecurityCard_description" | ||
> | ||
For best security, sign out from any session that you don't recognize or use anymore. | ||
</p> | ||
</div> | ||
</div> | ||
</div>, | ||
] | ||
`; | ||
|
||
exports[`<FilteredDeviceList /> filtering renders no results correctly for Inactive 1`] = ` | ||
HTMLCollection [ | ||
<div | ||
class="mx_FilteredDeviceList_noResults" | ||
> | ||
No inactive sessions found. | ||
<div | ||
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link_inline" | ||
data-testid="devices-clear-filter-btn" | ||
role="button" | ||
tabindex="0" | ||
> | ||
Show all | ||
</div> | ||
</div>, | ||
] | ||
`; | ||
|
||
exports[`<FilteredDeviceList /> filtering renders no results correctly for Unverified 1`] = ` | ||
HTMLCollection [ | ||
<div | ||
class="mx_FilteredDeviceList_noResults" | ||
> | ||
No unverified sessions found. | ||
<div | ||
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link_inline" | ||
data-testid="devices-clear-filter-btn" | ||
role="button" | ||
tabindex="0" | ||
> | ||
Show all | ||
</div> | ||
</div>, | ||
] | ||
`; | ||
|
||
exports[`<FilteredDeviceList /> filtering renders no results correctly for Verified 1`] = ` | ||
HTMLCollection [ | ||
<div | ||
class="mx_FilteredDeviceList_noResults" | ||
> | ||
No verified sessions found. | ||
<div | ||
class="mx_AccessibleButton mx_AccessibleButton_hasKind mx_AccessibleButton_kind_link_inline" | ||
data-testid="devices-clear-filter-btn" | ||
role="button" | ||
tabindex="0" | ||
> | ||
Show all | ||
</div> | ||
</div>, | ||
] | ||
`; |