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

Function waitForNavigationEntryExists

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

Source from the content-addressed store, hash-verified

357}
358
359async function waitForNavigationEntryExists(page, name) {
360 await page.waitForFunction(
361 (targetName) => {
362 const links = Array.from(document.querySelectorAll('#app-navigation .app-navigation-entry > a'));
363 const buttons = Array.from(document.querySelectorAll('#app-navigation button[data-name]'));
364 return links.some((node) => (node.textContent || '').includes(targetName)) ||
365 buttons.some((node) => (node.getAttribute('data-name') || '').includes(targetName));
366 },
367 name,
368 { timeout: 25000 }
369 );
370}
371
372async function reportExists(page, name) {
373 await ensureNavigationSection(page, 'reports');

Callers 2

openExistingReportFunction · 0.85
createStoredReportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected