Device manager - add verification details to session details (PSG-644) (#9187)
* extract security card for session verification to shared comp * add card to device details * tidy * fix section spacing * update snapshots
This commit is contained in:
parent
ba171f1fe5
commit
9bf77963ee
8 changed files with 250 additions and 23 deletions
|
@ -22,6 +22,7 @@ import DeviceDetails from '../../../../../src/components/views/settings/devices/
|
|||
describe('<DeviceDetails />', () => {
|
||||
const baseDevice = {
|
||||
device_id: 'my-device',
|
||||
isVerified: false,
|
||||
};
|
||||
const defaultProps = {
|
||||
device: baseDevice,
|
||||
|
@ -50,4 +51,13 @@ describe('<DeviceDetails />', () => {
|
|||
const { container } = render(getComponent({ device }));
|
||||
expect(container).toMatchSnapshot();
|
||||
});
|
||||
|
||||
it('renders a verified device', () => {
|
||||
const device = {
|
||||
...baseDevice,
|
||||
isVerified: true,
|
||||
};
|
||||
const { container } = render(getComponent({ device }));
|
||||
expect(container).toMatchSnapshot();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue