MCPcopy
hub / github.com/vuejs/core / enterValue

Function enterValue

packages/vue/__tests__/e2e/e2eUtils.ts:172–177  ·  view source on GitHub ↗
(selector: string, value: string)

Source from the content-addressed store, hash-verified

170 }
171
172 async function enterValue(selector: string, value: string) {
173 const el = (await page.$(selector))!
174 await el.evaluate(node => ((node as HTMLInputElement).value = ''))
175 await el.type(value)
176 await el.press('Enter')
177 }
178
179 async function clearValue(selector: string) {
180 return await page.$eval(

Callers 1

testTodomvcFunction · 0.70

Calls 1

evaluateMethod · 0.65

Tested by

no test coverage detected