diff --git a/test/test.js b/test/test.js index 0a23e3548d4..613b553d75a 100644 --- a/test/test.js +++ b/test/test.js @@ -81,6 +81,14 @@ describe('Puppeteer', function() { await page.close(); })); + describe('Browser.version', function() { + it('should return whether we are in headless', SX(async function() { + let version = await browser.version(); + expect(version.length).toBeGreaterThan(0); + expect(version.startsWith('Headless')).toBe(headless); + })); + }); + describe('Page.evaluate', function() { it('should work', SX(async function() { let result = await page.evaluate(() => 7 * 3);