Skip to content

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

test(webkit): add failing test for navigating after disabling javascript (#215)

Joel Einbinder78847c2f52d1
diff --git a/test/page.spec.js b/test/page.spec.js
index e2c4542a64..2e58ea84f3 100644
--- a/test/page.spec.js
+++ b/test/page.spec.js
@@ -838,6 +838,10 @@ module.exports.addTests = function({testRunner, expect, headless, playwright, FF
await page.goto('data:text/html, <script>var something = "forbidden"</script>');
expect(await page.evaluate('something')).toBe('forbidden');
});
+ it.skip(WEBKIT)('should be able to navigate after disabling javascript', async({page, server}) => {
+ await page.setJavaScriptEnabled(false);
+ await page.goto(server.EMPTY_PAGE);
+ });
});
describe('Page.setCacheEnabled', function() {