MCPcopy Create free account
hub / github.com/Rello/analytics / assertSimulationData

Function assertSimulationData

tests/playwright/common.js:743–751  ·  view source on GitHub ↗
(page, expectedText)

Source from the content-addressed store, hash-verified

741}
742
743async 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
753async function closeAnalyticsDialog(page) {
754 await clickFirst(

Calls 1

firstMethod · 0.45

Tested by

no test coverage detected