(browser: Playwright)
| 1063 | } |
| 1064 | |
| 1065 | export async function waitForDevToolsIndicator(browser: Playwright) { |
| 1066 | const devToolsIndicator = browser.locateDevToolsIndicator() |
| 1067 | try { |
| 1068 | await devToolsIndicator.waitFor({ timeout: 5000 }) |
| 1069 | } catch (errorCause) { |
| 1070 | const error = new Error( |
| 1071 | 'Expected DevTools Indicator but found no visible one.' |
| 1072 | ) |
| 1073 | Error.captureStackTrace(error, waitForDevToolsIndicator) |
| 1074 | throw error |
| 1075 | } |
| 1076 | |
| 1077 | return devToolsIndicator |
| 1078 | } |
| 1079 | |
| 1080 | export async function assertNoDevToolsIndicator(browser: Playwright) { |
| 1081 | const devToolsIndicator = browser.locateDevToolsIndicator() |
no test coverage detected