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

Function expect

packages/effect/test/ui/Play.test.ts:392–401  ·  view source on GitHub ↗
(locator: Locator.Locator)

Source from the content-addressed store, hash-verified

390 return driver.step("hum", (action) => action.heard(false))
391 },
392 expect(locator: Locator.Locator) {
393 return driver.expect(locator, {
394 toBeTag: (tag: string): Play.Matcher => (nodes) =>
395 nodes.length === 1 && nodes[0]!.tag === tag
396 ? undefined
397 : "it is another tag"
398 }) as Play.Expect & {
399 toBeTag(tag: string): Effect.Effect<void, Play.StepError>
400 }
401 }
402 })
403 })
404 yield* pad.tap("Save")

Calls 1

expectMethod · 0.65

Tested by

no test coverage detected