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

Function rename

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

Source from the content-addressed store, hash-verified

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 })
51 Locator.fire(root.get(Locator.tag("form")), "submit")
52}
53/** The card's heading: the user's name as the card shows it. */
54const cardName = (root: Root) => Locator.textOf(root.get(Locator.tag("h2")))
55const fetchesOf = (root: Root, read: string) => root.fetches().filter((fetch) => fetch.query === read)

Callers 2

timelineOfFunction · 0.70

Calls 4

nameInputFunction · 0.85
fireMethod · 0.65
getMethod · 0.65
tagMethod · 0.65

Tested by

no test coverage detected