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

Function openOrCreateStoredReport

tests/playwright/common.js:607–614  ·  view source on GitHub ↗
(page, reportName, reportSubheader, options = {})

Source from the content-addressed store, hash-verified

605}
606
607async function openOrCreateStoredReport(page, reportName, reportSubheader, options = {}) {
608 if (await reportExists(page, reportName)) {
609 await openExistingReport(page, reportName);
610 return 'opened';
611 }
612 await createStoredReport(page, reportName, reportSubheader, options);
613 return 'created';
614}
615
616async function waitForToast(page, timeout = 15000) {
617 const toast = page.locator('.toastify, [role="status"]:has(button[aria-label="Close"])').last();

Callers 5

11_report.jsFile · 0.85
12_group.jsFile · 0.85

Calls 3

reportExistsFunction · 0.85
openExistingReportFunction · 0.85
createStoredReportFunction · 0.85

Tested by

no test coverage detected