Options
All
  • Public
  • Public/Protected
  • All
Menu

Module toContainTitle

Index

Functions

Functions

toContainTitle

  • toContainTitle(page: Page, expectedTitle: string, options?: Options): Promise<SyncExpectationResult>
  • Use toContainTitle function when you want to check that page's title contains the expected title

    example
    await expect(page).toContainTitle('Doc');
    
    // also you can check text ignoring case sensitive
    await expect(page).toContainTitle('doc', {ignoreCase: true})
    

    Parameters

    • page: Page
    • expectedTitle: string
    • Optional options: Options

    Returns Promise<SyncExpectationResult>

Generated using TypeDoc