From 437b7c366b167f23ea6a2e53195af1028ba80a85 Mon Sep 17 00:00:00 2001 From: Gregor Gilchrist Date: Thu, 13 Jul 2023 10:20:38 +0200 Subject: [PATCH] test: added type for webview --- apps/ledger-live-desktop/tests/models/LiveAppWebview.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ledger-live-desktop/tests/models/LiveAppWebview.ts b/apps/ledger-live-desktop/tests/models/LiveAppWebview.ts index ab1fb3a84147..5e99a1b45dcb 100644 --- a/apps/ledger-live-desktop/tests/models/LiveAppWebview.ts +++ b/apps/ledger-live-desktop/tests/models/LiveAppWebview.ts @@ -133,7 +133,7 @@ export class LiveAppWebview { async clickWebviewElement(elementName: string) { await this.page.evaluate(elementName => { const webview = document.querySelector("webview"); - (webview as any).executeJavaScript( + (webview as WebviewTag).executeJavaScript( `(function() { const element = document.querySelector('${elementName}'); element.click(); @@ -150,7 +150,7 @@ export class LiveAppWebview { async textIsPresent(textToCheck: string) { const result: boolean = await this.page.evaluate(textToCheck => { const webview = document.querySelector("webview"); - return (webview as any) + return (webview as WebviewTag) .executeJavaScript( `(function() { return document.querySelector('*').innerHTML;