Skip to main content

install_expect

Function install_expect 

Source
pub fn install_expect<'js>(ctx: &Ctx<'js>) -> Result<()>
Expand description

Install the expect global. Exposes:

  • expect(value | locator | page | apiResponse | fn) -> Expect
  • expect.poll(fn, opts?) -> ExpectPoll
  • expect.soft(target) -> Expect (with .is_soft set)
  • Asymmetric matchers: any, anything, arrayContaining, objectContaining, stringContaining, stringMatching, closeTo, plus the expect.not.* shorthand.