Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: enable Page.emulateMedia tests on WK

Pavelc6afe0f15580
diff --git a/test/emulation.spec.js b/test/emulation.spec.js
index bb6cfb9135..18b5234aea 100644
--- a/test/emulation.spec.js
+++ b/test/emulation.spec.js
@@ -97,7 +97,7 @@ module.exports.addTests = function({testRunner, expect, playwright, FFOX, CHROME
});
});
- describe.skip(WEBKIT)('Page.emulateMedia type', function() {
+ describe('Page.emulateMedia type', function() {
it('should work', async({page, server}) => {
expect(await page.evaluate(() => matchMedia('screen').matches)).toBe(true);
expect(await page.evaluate(() => matchMedia('print').matches)).toBe(false);