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

Function waitForRefreshSelection

tests/playwright/27_options_refresh.js:32–37  ·  view source on GitHub ↗
(page, selector)

Source from the content-addressed store, hash-verified

30}
31
32async function waitForRefreshSelection(page, selector) {
33 await page.waitForFunction((targetSelector) => {
34 const field = document.querySelector(targetSelector);
35 return !!field && field.checked === true;
36 }, selector, { timeout: 15000 });
37}
38
39async function openRefreshMenu(page, label) {
40 if (await page.locator('#refresh0').isVisible().catch(() => false)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected