(page, expectedText)
| 741 | } |
| 742 | |
| 743 | async function assertSimulationData(page, expectedText) { |
| 744 | await page.locator('#analyticsDialogContainer').first().waitFor({ state: 'visible', timeout: 30000 }); |
| 745 | const simulation = page.locator('#simulationData').first(); |
| 746 | await simulation.waitFor({ state: 'visible', timeout: 30000 }); |
| 747 | const actual = (await simulation.innerText()).trim(); |
| 748 | if (actual !== expectedText) { |
| 749 | throw new Error(`Simulation data mismatch. Expected "${expectedText}", got "${actual}"`); |
| 750 | } |
| 751 | } |
| 752 | |
| 753 | async function closeAnalyticsDialog(page) { |
| 754 | await clickFirst( |
no test coverage detected