test(firefox): enable some passing tests (#536)

This commit is contained in:
Dmitry Gozman 2020-01-17 17:51:48 -08:00 committed by Andrey Lushnikov
parent d64c38b586
commit 6cf70e2e4c
3 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,7 @@ module.exports.describe = function({testRunner, expect, playwright, FFOX, CHROMI
await page.click('button');
expect(await page.evaluate(() => result)).toBe('Clicked');
});
it.skip(FFOX)('should click with disabled javascript', async({newPage, server}) => {
it('should click with disabled javascript', async({newPage, server}) => {
const page = await newPage({ javaScriptEnabled: false });
await page.goto(server.PREFIX + '/wrappedlink.html');
await Promise.all([

View File

@ -247,7 +247,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT})
const error = await errorPromise;
expect(error.message).toContain('navigation');
});
it.skip(FFOX)('should not throw an error when evaluation does a navigation', async({page, server}) => {
it('should not throw an error when evaluation does a navigation', async({page, server}) => {
await page.goto(server.PREFIX + '/one-style.html');
const result = await page.evaluate(() => {
window.location = '/empty.html';
@ -354,7 +354,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT})
const result = await childFrame.evaluate(foo => foo.bar, handle);
expect(result).toBe('baz');
});
it.skip(FFOX)('should allow cross-frame element handles', async({page, server}) => {
it('should allow cross-frame element handles', async({page, server}) => {
await page.goto(server.PREFIX + '/frames/one-frame.html');
const bodyHandle = await page.mainFrame().childFrames()[0].$('body');
const result = await page.evaluate(body => body.innerHTML, bodyHandle);

View File

@ -855,7 +855,7 @@ module.exports.describe = function({testRunner, expect, headless, playwright, FF
expect(await page.evaluate(() => result.onInput)).toEqual(['blue']);
expect(await page.evaluate(() => result.onChange)).toEqual(['blue']);
});
it.skip(FFOX)('should not throw when select causes navigation', async({page, server}) => { await page.goto(server.PREFIX + '/input/select.html');
it('should not throw when select causes navigation', async({page, server}) => { await page.goto(server.PREFIX + '/input/select.html');
await page.$eval('select', select => select.addEventListener('input', () => window.location = '/empty.html'));
await Promise.all([
page.select('select', 'blue'),