gleewright/error

Errors that can cause a test step to fail.

Types

Why a step failed.

pub type Error {
  AssertionFailed(message: String)
  Timeout(message: String)
  PlaywrightError(message: String)
  Failed(message: String)
  Panic(message: String)
}

Constructors

  • AssertionFailed(message: String)

    An expect assertion did not hold before its timeout ran out.

  • Timeout(message: String)

    A Playwright action (click, navigation, …) did not complete in time.

  • PlaywrightError(message: String)

    Playwright reported some other error, e.g. a failed navigation or a locator that matched more than one element.

  • Failed(message: String)

    The test was failed explicitly with step.fail.

  • Panic(message: String)

    The test panicked, e.g. through a failing assert or let assert.

Values

pub fn to_string(error: Error) -> String

A human readable description of the error.

✨ Search Document