MCPcopy Create free account
hub / github.com/METR/vivaria / assertInputHasValue

Function assertInputHasValue

ui/test-util/assertions.ts:33–36  ·  view source on GitHub ↗
(name: string, expected: string)

Source from the content-addressed store, hash-verified

31}
32
33export function assertInputHasValue(name: string, expected: string) {
34 const input: HTMLInputElement = screen.getByRole('textbox', { name })
35 expect(input.value).toEqual(expected)
36}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected