(page, name)
| 723 | } |
| 724 | |
| 725 | async function deleteDataloadEntryIfExists(page, name) { |
| 726 | const entry = dataloadEntryLink(page, name); |
| 727 | const count = await entry.count().catch(() => 0); |
| 728 | if (!count) { |
| 729 | return false; |
| 730 | } |
| 731 | await openDataloadEntry(page, name); |
| 732 | await deleteCurrentDataloadEntry(page); |
| 733 | await page.waitForFunction( |
| 734 | (targetName) => !Array.from(document.querySelectorAll('#dataLoadList a, #dataDeleteList a')).some((node) => |
| 735 | (node.textContent || '').includes(targetName) |
| 736 | ), |
| 737 | name, |
| 738 | { timeout: 15000 } |
| 739 | ); |
| 740 | return true; |
| 741 | } |
| 742 | |
| 743 | async function assertSimulationData(page, expectedText) { |
| 744 | await page.locator('#analyticsDialogContainer').first().waitFor({ state: 'visible', timeout: 30000 }); |
no test coverage detected