| 1002 | } |
| 1003 | |
| 1004 | export async function toggleDevToolsIndicatorPopover( |
| 1005 | browser: Playwright |
| 1006 | ): Promise<void> { |
| 1007 | const devToolsIndicator = await waitForDevToolsIndicator(browser) |
| 1008 | |
| 1009 | try { |
| 1010 | await devToolsIndicator.click() |
| 1011 | } catch (cause) { |
| 1012 | const error = new Error('No DevTools Indicator to toggle.', { cause }) |
| 1013 | Error.captureStackTrace(error, toggleDevToolsIndicatorPopover) |
| 1014 | throw error |
| 1015 | } |
| 1016 | } |
| 1017 | |
| 1018 | export async function getSegmentExplorerRoute(browser: Playwright) { |
| 1019 | return await browser |