1
- import { ElementHandle , Frame } from "puppeteer" ;
1
+ import { type ElementHandle , type Frame } from "puppeteer" ;
2
2
import { getHintForElement } from "./utils/getHintForElement" ;
3
3
import {
4
4
rangoCommandWithTarget ,
@@ -20,7 +20,7 @@ describe("Main frame", () => {
20
20
} ) ;
21
21
22
22
test ( "Extra hints are saved" , async ( ) => {
23
- const hintable = await page . $ ( "#custom-button" ) ! ;
23
+ const hintable = await page . $ ( "#custom-button" ) ;
24
24
const hint = await hintable ! . evaluate ( getHintForElement ) ;
25
25
26
26
await rangoCommandWithTarget ( "includeExtraSelectors" , [ hint ] ) ;
@@ -68,7 +68,7 @@ describe("iFrame", () => {
68
68
} ) ;
69
69
70
70
test ( "Extra hints are saved" , async ( ) => {
71
- const hintable = await frame . $ ( "#custom-button" ) ! ;
71
+ const hintable = await frame . $ ( "#custom-button" ) ;
72
72
const hint = await hintable ! . evaluate ( getHintForElement ) ;
73
73
74
74
await rangoCommandWithTarget ( "includeExtraSelectors" , [ hint ] ) ;
@@ -114,7 +114,7 @@ describe("Staging", () => {
114
114
} ) ;
115
115
116
116
test ( "Hints marked are removed after refreshing hints" , async ( ) => {
117
- const hintable = await page . $ ( "#custom-button" ) ! ;
117
+ const hintable = await page . $ ( "#custom-button" ) ;
118
118
const hint = await hintable ! . evaluate ( getHintForElement ) ;
119
119
120
120
await rangoCommandWithTarget ( "includeExtraSelectors" , [ hint ] ) ;
@@ -132,7 +132,7 @@ describe("Staging", () => {
132
132
} ) ;
133
133
134
134
test ( "Hints marked are removed after custom hints reset" , async ( ) => {
135
- const hintable = await page . $ ( "#custom-button" ) ! ;
135
+ const hintable = await page . $ ( "#custom-button" ) ;
136
136
const hint = await hintable ! . evaluate ( getHintForElement ) ;
137
137
138
138
await rangoCommandWithTarget ( "includeExtraSelectors" , [ hint ] ) ;
0 commit comments