test(firefox): add puppeteer-firefox unique evaluation tests (#3891)

References #3889
This commit is contained in:
Andrey Lushnikov
2019-02-01 18:40:40 -08:00
committed by GitHub
parent 6bb0350b4d
commit b5e53fdbf4
3 changed files with 46 additions and 2 deletions

View File

@@ -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);
});