(page, maxDialogs = 3)
| 322 | } |
| 323 | |
| 324 | async function confirmVisibleDialogs(page, maxDialogs = 3) { |
| 325 | let confirmed = 0; |
| 326 | for (let index = 0; index < maxDialogs; index += 1) { |
| 327 | const confirmButton = page.locator('#analyticsDialogBtnGo').first(); |
| 328 | const visible = await confirmButton.isVisible().catch(() => false); |
| 329 | if (!visible) { |
| 330 | break; |
| 331 | } |
| 332 | await confirmButton.click(); |
| 333 | confirmed += 1; |
| 334 | await page.waitForTimeout(500); |
| 335 | } |
| 336 | return confirmed; |
| 337 | } |
| 338 | |
| 339 | async function waitForNavigationEntryState(page, name, state) { |
| 340 | const entry = page |
no test coverage detected