(page, label)
| 46 | } |
| 47 | |
| 48 | async function openRefreshMenu(page, label) { |
| 49 | if (await page.locator('#refresh0').isVisible().catch(() => false)) { |
| 50 | return; |
| 51 | } |
| 52 | await page.locator('#optionsMenuIcon').click(); |
| 53 | const refreshButton = page.locator('#optionsMenuRefresh'); |
| 54 | await refreshButton.waitFor({ state: 'visible', timeout: 15000 }); |
| 55 | await refreshButton.hover(); |
| 56 | await page.locator('#refresh0').waitFor({ state: 'visible', timeout: 15000 }); |
| 57 | if (!(await page.locator('#optionsMenuMainReport').isVisible())) { |
| 58 | throw new Error(`Expected the main report menu to stay visible while hovering ${label}`); |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | (async () => { |
| 63 | const browser = await chromium.launch({ headless: config.headless }); |
no test coverage detected