fix(wkwin): misc test fixes (#502)
This commit is contained in:
parent
0f1c30d54a
commit
a71f31d07e
|
|
@ -51,7 +51,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT})
|
||||||
expect(cookies.length).toBe(1);
|
expect(cookies.length).toBe(1);
|
||||||
expect(cookies[0].httpOnly).toBe(true);
|
expect(cookies[0].httpOnly).toBe(true);
|
||||||
});
|
});
|
||||||
it.skip(WEBKIT && process.platform === 'linux')('should properly report "Strict" sameSite cookie', async({context, page, server}) => {
|
it.skip(WEBKIT && process.platform !== 'darwin')('should properly report "Strict" sameSite cookie', async({context, page, server}) => {
|
||||||
server.setRoute('/empty.html', (req, res) => {
|
server.setRoute('/empty.html', (req, res) => {
|
||||||
res.setHeader('Set-Cookie', 'name=value;SameSite=Strict');
|
res.setHeader('Set-Cookie', 'name=value;SameSite=Strict');
|
||||||
res.end();
|
res.end();
|
||||||
|
|
@ -61,7 +61,7 @@ module.exports.describe = function({testRunner, expect, FFOX, CHROMIUM, WEBKIT})
|
||||||
expect(cookies.length).toBe(1);
|
expect(cookies.length).toBe(1);
|
||||||
expect(cookies[0].sameSite).toBe('Strict');
|
expect(cookies[0].sameSite).toBe('Strict');
|
||||||
});
|
});
|
||||||
it.skip(WEBKIT && process.platform === 'linux')('should properly report "Lax" sameSite cookie', async({context, page, server}) => {
|
it.skip(WEBKIT && process.platform !== 'darwin')('should properly report "Lax" sameSite cookie', async({context, page, server}) => {
|
||||||
server.setRoute('/empty.html', (req, res) => {
|
server.setRoute('/empty.html', (req, res) => {
|
||||||
res.setHeader('Set-Cookie', 'name=value;SameSite=Lax');
|
res.setHeader('Set-Cookie', 'name=value;SameSite=Lax');
|
||||||
res.end();
|
res.end();
|
||||||
|
|
|
||||||
|
|
@ -76,8 +76,6 @@ module.exports.describe = function({testRunner, expect, playwright, FFOX, CHROMI
|
||||||
expect(await page.evaluate(() => matchMedia('(orientation: landscape)').matches)).toBe(false);
|
expect(await page.evaluate(() => matchMedia('(orientation: landscape)').matches)).toBe(false);
|
||||||
await page.setViewport(iPhoneLandscape.viewport);
|
await page.setViewport(iPhoneLandscape.viewport);
|
||||||
expect(await page.evaluate(() => matchMedia('(orientation: landscape)').matches)).toBe(true)
|
expect(await page.evaluate(() => matchMedia('(orientation: landscape)').matches)).toBe(true)
|
||||||
await page.setViewport({width: 100, height: 100});
|
|
||||||
expect(await page.evaluate(() => matchMedia('(orientation: landscape)').matches)).toBe(false);
|
|
||||||
});
|
});
|
||||||
it.skip(FFOX || WEBKIT)('should fire orientationchange event', async({page, server}) => {
|
it.skip(FFOX || WEBKIT)('should fire orientationchange event', async({page, server}) => {
|
||||||
await page.goto(server.PREFIX + '/mobile.html');
|
await page.goto(server.PREFIX + '/mobile.html');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue