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

Function buildUniqueName

tests/playwright/common.js:40–47  ·  view source on GitHub ↗
(prefix, explicitName)

Source from the content-addressed store, hash-verified

38}
39
40function buildUniqueName(prefix, explicitName) {
41 if (explicitName) {
42 return explicitName;
43 }
44 const safePrefix = sanitizeNameFragment(prefix) || 'Playwright';
45 const suffix = new Date().toISOString().replace(/[^\d]/g, '').slice(0, 17);
46 return `${safePrefix} ${suffix}`;
47}
48
49async function waitForIdle(page, timeout = 20000) {
50 await page.waitForLoadState('networkidle', { timeout }).catch(() => {});

Callers 15

21_filter.jsFile · 0.85
23_sort.jsFile · 0.85
22_drilldown.jsFile · 0.85
29_group_top_n.jsFile · 0.85

Calls 1

sanitizeNameFragmentFunction · 0.85

Tested by

no test coverage detected