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

Function fillRequired

tests/playwright/common.js:81–89  ·  view source on GitHub ↗
(page, selector, value, label)

Source from the content-addressed store, hash-verified

79}
80
81async function fillRequired(page, selector, value, label) {
82 const locator = page.locator(selector).first();
83 await locator.waitFor({ state: 'visible', timeout: 12000 });
84 await locator.fill(value);
85 const currentValue = await locator.inputValue();
86 if (currentValue !== value) {
87 throw new Error(`Could not fill ${label}. Expected "${value}", got "${currentValue}"`);
88 }
89}
90
91async function ensureAnalyticsLoaded(page, config) {
92 await page.goto(config.baseUrl, { waitUntil: 'domcontentloaded', timeout: 45000 });

Callers 10

addReportDataRowFunction · 0.85
createStoredReportFunction · 0.85
addRowFunction · 0.85
14_add_del_data.jsFile · 0.85

Calls 1

firstMethod · 0.80

Tested by

no test coverage detected