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

Function assertSimulationData

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

Source from the content-addressed store, hash-verified

727}
728
729async 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
739async function closeAnalyticsDialog(page) {
740 await clickFirst(

Calls 1

firstMethod · 0.80

Tested by

no test coverage detected