test('nav loads correctly', async () => { const navbar = await page.$eval('.navbar', el => el ? true : false) const listItems = await page.$$('.nav-li')Testing your React App with Puppeteer and Jest2.9K17Rajat SFer MartinFollowSep 2, 2018 · 1 min readHi rajat, why don’t you return `!!el` instead? Would that work? Thanks!