test(webkit): skip tests that fail on webkit-wpe
This commit is contained in:
parent
521a0348b1
commit
e6358b5a5c
|
|
@ -15,7 +15,7 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
module.exports.describe = function ({ testRunner, expect, defaultBrowserOptions, playwright }) {
|
module.exports.describe = function ({ testRunner, expect, defaultBrowserOptions, playwright, WEBKIT }) {
|
||||||
const {describe, xdescribe, fdescribe} = testRunner;
|
const {describe, xdescribe, fdescribe} = testRunner;
|
||||||
const {it, fit, xit, dit} = testRunner;
|
const {it, fit, xit, dit} = testRunner;
|
||||||
const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;
|
const {beforeAll, beforeEach, afterAll, afterEach} = testRunner;
|
||||||
|
|
@ -67,7 +67,7 @@ module.exports.describe = function ({ testRunner, expect, defaultBrowserOptions,
|
||||||
sameSite: 'None',
|
sameSite: 'None',
|
||||||
}]);
|
}]);
|
||||||
});
|
});
|
||||||
it('context.clearCookies() should work', async({page, server}) => {
|
it.skip(WEBKIT)('context.clearCookies() should work', async({page, server}) => {
|
||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
await page.browserContext().setCookies([{
|
await page.browserContext().setCookies([{
|
||||||
url: server.EMPTY_PAGE,
|
url: server.EMPTY_PAGE,
|
||||||
|
|
|
||||||
|
|
@ -56,7 +56,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT,
|
||||||
expect(event.isTrusted).toBe(true);
|
expect(event.isTrusted).toBe(true);
|
||||||
expect(event.button).toBe(0);
|
expect(event.button).toBe(0);
|
||||||
});
|
});
|
||||||
it('should resize the textarea', async({page, server}) => {
|
it.skip(WEBKIT)('should resize the textarea', async({page, server}) => {
|
||||||
await page.goto(server.PREFIX + '/input/textarea.html');
|
await page.goto(server.PREFIX + '/input/textarea.html');
|
||||||
const {x, y, width, height} = await page.evaluate(dimensions);
|
const {x, y, width, height} = await page.evaluate(dimensions);
|
||||||
const mouse = page.mouse;
|
const mouse = page.mouse;
|
||||||
|
|
@ -71,7 +71,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT,
|
||||||
expect(newDimensions.width).toBe(Math.round(width + 104));
|
expect(newDimensions.width).toBe(Math.round(width + 104));
|
||||||
expect(newDimensions.height).toBe(Math.round(height + 104));
|
expect(newDimensions.height).toBe(Math.round(height + 104));
|
||||||
});
|
});
|
||||||
it('should select the text with mouse', async({page, server}) => {
|
it.skip(WEBKIT)('should select the text with mouse', async({page, server}) => {
|
||||||
await page.goto(server.PREFIX + '/input/textarea.html');
|
await page.goto(server.PREFIX + '/input/textarea.html');
|
||||||
await page.focus('textarea');
|
await page.focus('textarea');
|
||||||
const text = 'This is the text that we are going to try to select. Let\'s see how it goes.';
|
const text = 'This is the text that we are going to try to select. Let\'s see how it goes.';
|
||||||
|
|
|
||||||
|
|
@ -344,7 +344,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT})
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe.skip(FFOX)('WebSocket', function() {
|
describe.skip(FFOX || WEBKIT)('WebSocket', function() {
|
||||||
it('should work', async({page, server}) => {
|
it('should work', async({page, server}) => {
|
||||||
const value = await page.evaluate((port) => {
|
const value = await page.evaluate((port) => {
|
||||||
let cb;
|
let cb;
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@ module.exports.describe = function({testRunner, expect, headless, playwright, FF
|
||||||
expect(await page.evaluate(() => !!window.opener)).toBe(false);
|
expect(await page.evaluate(() => !!window.opener)).toBe(false);
|
||||||
expect(await popup.evaluate(() => !!window.opener)).toBe(false);
|
expect(await popup.evaluate(() => !!window.opener)).toBe(false);
|
||||||
});
|
});
|
||||||
it.skip(FFOX)('should not treat navigations as new popups', async({page, server}) => {
|
it.skip(FFOX || WEBKIT)('should not treat navigations as new popups', async({page, server}) => {
|
||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
await page.setContent('<a target=_blank rel=noopener href="/one-style.html">yo</a>');
|
await page.setContent('<a target=_blank rel=noopener href="/one-style.html">yo</a>');
|
||||||
const [popup] = await Promise.all([
|
const [popup] = await Promise.all([
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT})
|
||||||
expect(response.request()).toBe(request);
|
expect(response.request()).toBe(request);
|
||||||
expect(response.ok()).toBe(true);
|
expect(response.ok()).toBe(true);
|
||||||
});
|
});
|
||||||
it.skip(FFOX)('should report web socket activity', async function({page, server}) {
|
it.skip(FFOX || WEBKIT)('should report web socket activity', async function({page, server}) {
|
||||||
const [worker] = await Promise.all([
|
const [worker] = await Promise.all([
|
||||||
page.waitForEvent('workercreated'),
|
page.waitForEvent('workercreated'),
|
||||||
page.goto(server.PREFIX + '/worker/worker.html'),
|
page.goto(server.PREFIX + '/worker/worker.html'),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue