Use toHaveTitle function when you want to check that page's title is equal to the expected title
example
awaitexpect(page).toHaveTitle('Documentation');// also you can check text ignoring case sensitiveawaitexpect(page).toHaveTitle('documentation', {ignoreCase:true})
Use
toHaveTitle
function when you want to check that page's title is equal to the expected title