mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test(firefox): enable some passing tests (#536)
This commit is contained in:
parent
d64c38b586
commit
6cf70e2e4c
@ -78,7 +78,7 @@ module.exports.describe = function({testRunner, expect, playwright, FFOX, CHROMI
|
|||||||
await page.click('button');
|
await page.click('button');
|
||||||
expect(await page.evaluate(() => result)).toBe('Clicked');
|
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 });
|
const page = await newPage({ javaScriptEnabled: false });
|
||||||
await page.goto(server.PREFIX + '/wrappedlink.html');
|
await page.goto(server.PREFIX + '/wrappedlink.html');
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
|
@ -247,7 +247,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT})
|
|||||||
const error = await errorPromise;
|
const error = await errorPromise;
|
||||||
expect(error.message).toContain('navigation');
|
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');
|
await page.goto(server.PREFIX + '/one-style.html');
|
||||||
const result = await page.evaluate(() => {
|
const result = await page.evaluate(() => {
|
||||||
window.location = '/empty.html';
|
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);
|
const result = await childFrame.evaluate(foo => foo.bar, handle);
|
||||||
expect(result).toBe('baz');
|
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');
|
await page.goto(server.PREFIX + '/frames/one-frame.html');
|
||||||
const bodyHandle = await page.mainFrame().childFrames()[0].$('body');
|
const bodyHandle = await page.mainFrame().childFrames()[0].$('body');
|
||||||
const result = await page.evaluate(body => body.innerHTML, bodyHandle);
|
const result = await page.evaluate(body => body.innerHTML, bodyHandle);
|
||||||
|
@ -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.onInput)).toEqual(['blue']);
|
||||||
expect(await page.evaluate(() => result.onChange)).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 page.$eval('select', select => select.addEventListener('input', () => window.location = '/empty.html'));
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
page.select('select', 'blue'),
|
page.select('select', 'blue'),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user