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

Function openRefreshMenu

tests/playwright/27_options_refresh.js:48–60  ·  view source on GitHub ↗
(page, label)

Source from the content-addressed store, hash-verified

46}
47
48async function openRefreshMenu(page, label) {
49 if (await page.locator('#refresh0').isVisible().catch(() => false)) {
50 return;
51 }
52 await page.locator('#optionsMenuIcon').click();
53 const refreshButton = page.locator('#optionsMenuRefresh');
54 await refreshButton.waitFor({ state: 'visible', timeout: 15000 });
55 await refreshButton.hover();
56 await page.locator('#refresh0').waitFor({ state: 'visible', timeout: 15000 });
57 if (!(await page.locator('#optionsMenuMainReport').isVisible())) {
58 throw new Error(`Expected the main report menu to stay visible while hovering ${label}`);
59 }
60}
61
62(async () => {
63 const browser = await chromium.launch({ headless: config.headless });

Callers 1

Calls 1

isVisibleMethod · 0.80

Tested by

no test coverage detected