Interface: TextMatcherOptions
@termwright/test / TextMatcherOptions
Interface: TextMatcherOptions
Section titled “Interface: TextMatcherOptions”Defined in: test/src/matchers.ts:61
Options for TermwrightMatchers.toHaveText.
Extends
Section titled “Extends”Properties
Section titled “Properties”exact?
Section titled “exact?”
readonlyoptionalexact?:boolean
Defined in: test/src/matchers.ts:67
true (default for locators) compares the whole accessible text after
whitespace normalization; false asserts a substring. A terminal as the
subject always uses substring matching against the visible grid.
timeout?
Section titled “timeout?”
readonlyoptionaltimeout?:number
Defined in: test/src/matchers.ts:57
Milliseconds to keep re-probing. Defaults to the expect timeout class.