MCPcopy Create free account
hub / github.com/Effect-TS/effect / click

Function click

packages/effect/test/ui/WorkedExample.test.ts:47–47  ·  view source on GitHub ↗
(root: Root, text: string)

Source from the content-addressed store, hash-verified

45type Root = Pick<TestHost.TestRoot<any, any, any>, "get" | "fetches">
46
47const click = (root: Root, text: string) => Locator.fire(root.get(Locator.text(text, { exact: true })), "click")
48const nameInput = (root: Root) => root.get(Locator.attr("aria-label", "Name")) as TestHost.TestElement
49const rename = (root: Root, name: string) => {
50 Locator.fire(nameInput(root), "input", { value: name })

Callers 2

timelineOfFunction · 0.70

Calls 3

fireMethod · 0.65
getMethod · 0.65
textMethod · 0.65

Tested by

no test coverage detected