(root: Root, name: string)
| 47 | const click = (root: Root, text: string) => Locator.fire(root.get(Locator.text(text, { exact: true })), "click") |
| 48 | const nameInput = (root: Root) => root.get(Locator.attr("aria-label", "Name")) as TestHost.TestElement |
| 49 | const 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. */ |
| 54 | const cardName = (root: Root) => Locator.textOf(root.get(Locator.tag("h2"))) |
| 55 | const fetchesOf = (root: Root, read: string) => root.fetches().filter((fetch) => fetch.query === read) |
no test coverage detected