renders device panel with devices 1`] = `
class="mx_DeviceTile"
data-testid="device-tile-device_3"
>
+
diff --git a/test/components/views/settings/devices/DeviceType-test.tsx b/test/components/views/settings/devices/DeviceType-test.tsx
new file mode 100644
index 0000000000..ac1c867eb7
--- /dev/null
+++ b/test/components/views/settings/devices/DeviceType-test.tsx
@@ -0,0 +1,44 @@
+/*
+Copyright 2022 The Matrix.org Foundation C.I.C.
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+*/
+
+import { render } from '@testing-library/react';
+import React from 'react';
+
+import { DeviceType } from '../../../../../src/components/views/settings/devices/DeviceType';
+
+describe('
', () => {
+ const defaultProps = {
+ isVerified: false,
+ isSelected: false,
+ };
+ const getComponent = (props = {}) =>
+
;
+
+ it('renders an unverified device', () => {
+ const { container } = render(getComponent());
+ expect(container).toMatchSnapshot();
+ });
+
+ it('renders a verified device', () => {
+ const { container } = render(getComponent({ isVerified: true }));
+ expect(container).toMatchSnapshot();
+ });
+
+ it('renders correctly when selected', () => {
+ const { container } = render(getComponent({ isSelected: true }));
+ expect(container).toMatchSnapshot();
+ });
+});
diff --git a/test/components/views/settings/devices/__snapshots__/CurrentDeviceSection-test.tsx.snap b/test/components/views/settings/devices/__snapshots__/CurrentDeviceSection-test.tsx.snap
index 20c72fc9d3..043fadc016 100644
--- a/test/components/views/settings/devices/__snapshots__/CurrentDeviceSection-test.tsx.snap
+++ b/test/components/views/settings/devices/__snapshots__/CurrentDeviceSection-test.tsx.snap
@@ -141,6 +141,20 @@ exports[`
renders device and correct security card when
class="mx_DeviceTile"
data-testid="device-tile-alices_device"
>
+
@@ -227,6 +241,20 @@ exports[`
renders device and correct security card when
class="mx_DeviceTile"
data-testid="device-tile-alices_device"
>
+
diff --git a/test/components/views/settings/devices/__snapshots__/DeviceSecurityCard-test.tsx.snap b/test/components/views/settings/devices/__snapshots__/DeviceSecurityCard-test.tsx.snap
index 900c94d451..8988694795 100644
--- a/test/components/views/settings/devices/__snapshots__/DeviceSecurityCard-test.tsx.snap
+++ b/test/components/views/settings/devices/__snapshots__/DeviceSecurityCard-test.tsx.snap
@@ -57,8 +57,12 @@ exports[`
renders with children 1`] = `
>
nice
-
diff --git a/test/components/views/settings/devices/__snapshots__/DeviceTile-test.tsx.snap b/test/components/views/settings/devices/__snapshots__/DeviceTile-test.tsx.snap
index cafd47a8a7..a2f568ecd1 100644
--- a/test/components/views/settings/devices/__snapshots__/DeviceTile-test.tsx.snap
+++ b/test/components/views/settings/devices/__snapshots__/DeviceTile-test.tsx.snap
@@ -6,6 +6,20 @@ exports[`
renders a device with no metadata 1`] = `
class="mx_DeviceTile"
data-testid="device-tile-123"
>
+
@@ -39,6 +53,20 @@ exports[`
renders a verified device with no metadata 1`] = `
class="mx_DeviceTile"
data-testid="device-tile-123"
>
+
@@ -72,6 +100,20 @@ exports[`
renders display name with a tooltip 1`] = `
class="mx_DeviceTile"
data-testid="device-tile-123"
>
+
@@ -109,6 +151,20 @@ exports[`
separates metadata with a dot 1`] = `
class="mx_DeviceTile"
data-testid="device-tile-123"
>
+
diff --git a/test/components/views/settings/devices/__snapshots__/DeviceType-test.tsx.snap b/test/components/views/settings/devices/__snapshots__/DeviceType-test.tsx.snap
new file mode 100644
index 0000000000..b056bd0bee
--- /dev/null
+++ b/test/components/views/settings/devices/__snapshots__/DeviceType-test.tsx.snap
@@ -0,0 +1,58 @@
+// Jest Snapshot v1, https://goo.gl/fbAQLP
+
+exports[`
renders a verified device 1`] = `
+
+`;
+
+exports[`
renders an unverified device 1`] = `
+
+`;
+
+exports[`
renders correctly when selected 1`] = `
+
+`;
diff --git a/test/components/views/settings/devices/__snapshots__/SecurityRecommendations-test.tsx.snap b/test/components/views/settings/devices/__snapshots__/SecurityRecommendations-test.tsx.snap
index 6de70e4f50..0ee9870b78 100644
--- a/test/components/views/settings/devices/__snapshots__/SecurityRecommendations-test.tsx.snap
+++ b/test/components/views/settings/devices/__snapshots__/SecurityRecommendations-test.tsx.snap
@@ -44,11 +44,15 @@ exports[`
renders both cards when user has both unver
Verify your sessions for enhanced secure messaging or sign out from those you don't recognize or use anymore.
@@ -80,11 +84,15 @@ exports[`
renders both cards when user has both unver
Consider signing out from old sessions (90 days or older) you don't use anymore
@@ -137,11 +145,15 @@ exports[`
renders inactive devices section when user
Verify your sessions for enhanced secure messaging or sign out from those you don't recognize or use anymore.
renders inactive devices section when user
Consider signing out from old sessions (90 days or older) you don't use anymore