Function failIfErrorMessage

Checks that no error toast message is visible on the page

  • Parameters

    • page: Page

      The Playwright Page object

    • timeout: number = 1000

      Maximum time in ms to wait for error toast (defaults to 1000); must be small, to avoid the message to disappear normally

    Returns Promise<void>

    Promise that resolves if no error toast is found