(page, name)
| 709 | } |
| 710 | |
| 711 | async function deleteDataloadEntryIfExists(page, name) { |
| 712 | const entry = dataloadEntryLink(page, name); |
| 713 | const count = await entry.count().catch(() => 0); |
| 714 | if (!count) { |
| 715 | return false; |
| 716 | } |
| 717 | await openDataloadEntry(page, name); |
| 718 | await deleteCurrentDataloadEntry(page); |
| 719 | await page.waitForFunction( |
| 720 | (targetName) => !Array.from(document.querySelectorAll('#dataLoadList a, #dataDeleteList a')).some((node) => |
| 721 | (node.textContent || '').includes(targetName) |
| 722 | ), |
| 723 | name, |
| 724 | { timeout: 15000 } |
| 725 | ); |
| 726 | return true; |
| 727 | } |
| 728 | |
| 729 | async function assertSimulationData(page, expectedText) { |
| 730 | await page.locator('#analyticsDialogContainer').first().waitFor({ state: 'visible', timeout: 30000 }); |
no test coverage detected