Use toContainTitle function when you want to check that page's title contains the expected title
toContainTitle
await expect(page).toContainTitle('Doc'); // also you can check text ignoring case sensitive await expect(page).toContainTitle('doc', {ignoreCase: true})
Generated using TypeDoc
Use
toContainTitle
function when you want to check that page's title contains the expected title