(page, expectedText)
| 727 | } |
| 728 | |
| 729 | async function assertSimulationData(page, expectedText) { |
| 730 | await page.locator('#analyticsDialogContainer').first().waitFor({ state: 'visible', timeout: 30000 }); |
| 731 | const simulation = page.locator('#simulationData').first(); |
| 732 | await simulation.waitFor({ state: 'visible', timeout: 30000 }); |
| 733 | const actual = (await simulation.innerText()).trim(); |
| 734 | if (actual !== expectedText) { |
| 735 | throw new Error(`Simulation data mismatch. Expected "${expectedText}", got "${actual}"`); |
| 736 | } |
| 737 | } |
| 738 | |
| 739 | async function closeAnalyticsDialog(page) { |
| 740 | await clickFirst( |
no test coverage detected