refactor(firefox): migrate onto ExecutionContext events (#4064)

Juggler now has Runtime domain that emits Execution Context events
"ExecutionContextCreated" and "ExecutionContextDestroyed".
This commit is contained in:
Andrey Lushnikov
2019-02-24 23:07:24 -08:00
committed by GitHub
parent 56dafd7424
commit 4ecbd91e4b
6 changed files with 81 additions and 23 deletions

View File

@@ -209,7 +209,7 @@ module.exports.addTests = function({testRunner, expect}) {
const result = await page.evaluate(() => document.execCommand('copy'));
expect(result).toBe(true);
});
it_fails_ffox('should throw a nice error after a navigation', async({page, server}) => {
it('should throw a nice error after a navigation', async({page, server}) => {
const executionContext = await page.mainFrame().executionContext();
await Promise.all([