Files
trezor-suite/suite-native/app/e2e/pageObjects/deviceAuthenticitySuccess.ts
Matej Kriz 4b53159c43 fix(suite-native): fix the logic for Device Auth Check from Device Settings
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.
2025-05-13 18:40:20 +02:00

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();