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

Function toggleLock

packages/effect/test/ui/kit/Fieldset.test.ts:65–67  ·  view source on GitHub ↗
(app: Element)

Source from the content-addressed store, hash-verified

63})
64
65const toggleLock = (app: Element) =>
66 Effect.sync(() => app.querySelector<HTMLButtonElement>(".lock")!.click())
67 .pipe(Effect.andThen(tick))
68
69// Chromium blurs the focused control as a fieldset around it is disabled, before the render that disables
70// it has finished. happy-dom doesn't.

Callers 1

Fieldset.test.tsFile · 0.85

Calls 3

pipeMethod · 0.65
clickMethod · 0.65
syncMethod · 0.45

Tested by

no test coverage detected