mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
test(firefox): add puppeteer-firefox unique evaluation tests (#3891)
References #3889
This commit is contained in:
@@ -132,7 +132,7 @@ module.exports.addTests = function({testRunner, expect, product}) {
|
||||
await page.goto(server.PREFIX + '/global-var.html');
|
||||
expect(await page.evaluate('globalVar')).toBe(123);
|
||||
});
|
||||
it('should use the same sandbox', async({page}) => {
|
||||
it('should modify global environment', async({page}) => {
|
||||
await page.evaluate(() => window.globalVar = 123);
|
||||
expect(await page.evaluate('globalVar')).toBe(123);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user