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

Function openNavigationEntry

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

Source from the content-addressed store, hash-verified

207}
208
209async function openNavigationEntry(page, name) {
210 const links = page.locator(`#app-navigation .app-navigation-entry > a[data-name="${name.replace(/"/g, '\\"')}"]`);
211 await links.first().waitFor({ state: 'attached', timeout: 20000 });
212
213 let link = links.filter({ visible: true }).first();
214 if (!(await link.count())) {
215 await ensureNavigationSection(page, 'reports');
216 link = links.filter({ visible: true }).first();
217 }
218 if (!(await link.count())) {
219 link = links.first();
220 }
221
222 await link.waitFor({ state: 'visible', timeout: 20000 });
223 await link.click();
224 await waitForIdle(page, 15000);
225}
226
227async function assertReportHeader(page, reportName) {
228 const header = reportHeaderLocator(page);

Callers 2

openExistingReportFunction · 0.85
createStoredReportFunction · 0.85

Calls 3

ensureNavigationSectionFunction · 0.85
waitForIdleFunction · 0.85
firstMethod · 0.80

Tested by

no test coverage detected