// Assert that current page does not contain 'Text in the page' await expect(page).not.toMatch('Text in the page')
// Assert that the page does not contain a header await expect(page).not.toMatchElement('header')
Thank you.
Most helpful comment