File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -15,12 +15,14 @@ jest.mock('playwright', () => {
15
15
const mockOn = jest . fn ( ) ;
16
16
const mockIsClosed = jest . fn ( ) . mockReturnValue ( false ) ;
17
17
18
- // Mock iframe click
18
+ // Mock iframe click and fill
19
19
const mockIframeClick = jest . fn ( ) . mockImplementation ( ( ) => Promise . resolve ( ) ) ;
20
+ const mockIframeFill = jest . fn ( ) . mockImplementation ( ( ) => Promise . resolve ( ) ) ;
20
21
const mockIframeLocator = jest . fn ( ) . mockReturnValue ( {
21
- click : mockIframeClick
22
+ click : mockIframeClick ,
23
+ fill : mockIframeFill
22
24
} ) ;
23
-
25
+
24
26
// Mock locator
25
27
const mockLocatorClick = jest . fn ( ) . mockImplementation ( ( ) => Promise . resolve ( ) ) ;
26
28
const mockLocatorFill = jest . fn ( ) . mockImplementation ( ( ) => Promise . resolve ( ) ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ export const BROWSER_TOOLS = [
8
8
"playwright_screenshot" ,
9
9
"playwright_click" ,
10
10
"playwright_iframe_click" ,
11
+ "playwright_iframe_fill" ,
11
12
"playwright_fill" ,
12
13
"playwright_select" ,
13
14
"playwright_hover" ,
You can’t perform that action at this time.
0 commit comments