mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
Browser version test (#152)
This patch adds a test for Browser.version() References #50.
This commit is contained in:
parent
cfc6a6ab38
commit
dd1459b733
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user