(page: any, context: any)
| 167 | // Chromium only — used by the IME/composition commands below. |
| 168 | const cdpSessions = new WeakMap<object, Promise<any>>(); |
| 169 | function getCDP(page: any, context: any): Promise<any> { |
| 170 | let session = cdpSessions.get(page); |
| 171 | if (!session) { |
| 172 | session = context.newCDPSession(page); |
| 173 | cdpSessions.set(page, session!); |
| 174 | } |
| 175 | return session!; |
| 176 | } |
| 177 | |
| 178 | declare module 'vitest/browser' { |
| 179 | interface BrowserCommands { |
no test coverage detected