Device manager - add verify current session button (PSG-527) (#9252)
* add verify current session button * i18n * strict type issues
This commit is contained in:
parent
8bc03aabba
commit
61904778f5
9 changed files with 113 additions and 25 deletions
|
@ -34,6 +34,7 @@ describe('<CurrentDeviceSection />', () => {
|
|||
|
||||
const defaultProps = {
|
||||
device: alicesVerifiedDevice,
|
||||
onVerifyCurrentDevice: jest.fn(),
|
||||
isLoading: false,
|
||||
};
|
||||
const getComponent = (props = {}): React.ReactElement =>
|
||||
|
|
|
@ -216,6 +216,18 @@ exports[`<CurrentDeviceSection /> renders device and correct security card when
|
|||
>
|
||||
Verify or sign out from this session for best security and reliability.
|
||||
</p>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -316,6 +328,18 @@ exports[`<CurrentDeviceSection /> renders device and correct security card when
|
|||
>
|
||||
Verify or sign out from this session for best security and reliability.
|
||||
</p>
|
||||
<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>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue