Skip to content

Commit

Permalink
test: added type for webview
Browse files Browse the repository at this point in the history
  • Loading branch information
ggilchrist-ledger committed Jul 13, 2023
1 parent 9e58137 commit 437b7c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/ledger-live-desktop/tests/models/LiveAppWebview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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;
Expand Down

0 comments on commit 437b7c3

Please sign in to comment.