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

Method click

packages/effect/src/chat/ChatTest.ts:1453–1464  ·  view source on GitHub ↗
(messageId: string, id: string, options?: { readonly option?: string | undefined })

Source from the content-addressed store, hash-verified

1451 }
1452
1453 click(messageId: string, id: string, options?: { readonly option?: string | undefined }) {
1454 return Effect.flatMap(
1455 this.clickExit(messageId, id, options),
1456 (exit) =>
1457 Exit.isSuccess(exit) ? Effect.void : Effect.fail(failure(
1458 this.rule,
1459 "a click on element " + id + " of message " + messageId,
1460 describeExit(exit),
1461 Option.getOrUndefined(Exit.findErrorOption(exit))
1462 ))
1463 )
1464 }
1465
1466 /** Sends a command through the hook, with the suite's recording handler. */
1467 command(id: string, options?: { readonly text?: string | undefined }) {

Callers 2

openModalMethod · 0.95
conformanceFunction · 0.95

Calls 4

clickExitMethod · 0.95
describeExitFunction · 0.85
failureFunction · 0.70
failMethod · 0.65

Tested by

no test coverage detected