mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-03-25 00:27:12 +01:00
The logic is not yet shared with the desktop because of subltle differences and logic too hard to read and debug. - Do NOT report failed check as compromised device (For example device disconnected during action doesn't mean it's compromised, inform user about the error via Toast in that case) - Share one DeviceCompromisedModal for compromised state.
17 lines
496 B
TypeScript
17 lines
496 B
TypeScript
class DeviceAuthenticitySuccess {
|
|
async waitForScreen() {
|
|
await waitFor(element(by.id('@screen/AuthenticitySuccess')))
|
|
.toBeVisible()
|
|
.withTimeout(10000);
|
|
}
|
|
|
|
async tapCloseButton() {
|
|
const closeButton = element(by.id('@device-authenticity/close-button'));
|
|
|
|
await waitFor(closeButton).toBeVisible().withTimeout(10000);
|
|
await closeButton.tap();
|
|
}
|
|
}
|
|
|
|
export const onDeviceAuthenticitySuccess = new DeviceAuthenticitySuccess();
|