Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ICustomPageMatchers<IsOpenOpts, IsClosedOpts>

This interface describes custom expectation matchers for Page.

It can be used for both positive and negative (.not) comparisons.

template

IsOpenOpts type of the opts parameter passed to Page's isOpen function

template

IsClosedOpts type of the opts parameter passed to Page's isClosed function

Type parameters

  • IsOpenOpts: __type

  • IsClosedOpts: __type

Hierarchy

Index

Methods

toBeClosed

  • toBeClosed(opts?: IsClosedOpts): boolean
  • Checks if Page is currently closed.

    Parameters

    • Optional opts: IsClosedOpts

      the opts parameter passed to Page's isClosed function

    Returns boolean

toBeOpen

  • toBeOpen(opts?: IsOpenOpts): boolean
  • Checks if Page is currently open.

    Parameters

    • Optional opts: IsOpenOpts

      the opts parameter passed to Page's isOpen function

    Returns boolean

toEventuallyBeClosed

  • toEventuallyBeClosed(opts?: ITimeout & IsClosedOpts): boolean
  • Checks if Page is eventually closed within a specific timeout.

    Parameters

    • Optional opts: ITimeout & IsClosedOpts

      the opts parameter passed to Page's eventually.isClosed function which also includes the timeout within which the condition is expected to be met

      If no timeout is specified, Page's default timeout is used.

    Returns boolean

toEventuallyBeOpen

  • toEventuallyBeOpen(opts?: ITimeout & IsOpenOpts): boolean
  • Checks if Page is eventually open within a specific timeout.

    Parameters

    • Optional opts: ITimeout & IsOpenOpts

      the opts parameter passed to Page's eventually.isOpen function which also includes the timeout within which the condition is expected to be met

      If no timeout is specified, Page's default timeout is used.

    Returns boolean

Generated using TypeDoc