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

Function openOrCreateStoredReport

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

Source from the content-addressed store, hash-verified

591}
592
593async function openOrCreateStoredReport(page, reportName, reportSubheader, options = {}) {
594 if (await reportExists(page, reportName)) {
595 await openExistingReport(page, reportName);
596 return 'opened';
597 }
598 await createStoredReport(page, reportName, reportSubheader, options);
599 return 'created';
600}
601
602async function waitForToast(page, timeout = 15000) {
603 const toast = page.locator('.toastify').first();

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