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

Function waitForNavigationEntryExists

tests/playwright/common.js:348–359  ·  view source on GitHub ↗
(page, name)

Source from the content-addressed store, hash-verified

346}
347
348async function waitForNavigationEntryExists(page, name) {
349 await page.waitForFunction(
350 (targetName) => {
351 const links = Array.from(document.querySelectorAll('#app-navigation .app-navigation-entry > a'));
352 const buttons = Array.from(document.querySelectorAll('#app-navigation button[data-name]'));
353 return links.some((node) => (node.textContent || '').includes(targetName)) ||
354 buttons.some((node) => (node.getAttribute('data-name') || '').includes(targetName));
355 },
356 name,
357 { timeout: 25000 }
358 );
359}
360
361async function reportExists(page, name) {
362 await ensureNavigationSection(page, 'reports');

Callers 2

openExistingReportFunction · 0.85
createStoredReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected