Jest-puppeteer: Is there ant way to check if something does not exist

Created on 12 May 2018  路  2Comments  路  Source: smooth-code/jest-puppeteer

// Assert that current page does not contain 'Text in the page'
await expect(page).not.toMatch('Text in the page')

Most helpful comment

// Assert that the page does not contain a header
await expect(page).not.toMatchElement('header')

All 2 comments

// Assert that the page does not contain a header
await expect(page).not.toMatchElement('header')

Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lakesare picture lakesare  路  3Comments

undrafted picture undrafted  路  4Comments

melissachang picture melissachang  路  6Comments

alexander-elgin picture alexander-elgin  路  4Comments

aheissenberger picture aheissenberger  路  5Comments