Skip to content

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

test: make async stacks pass on WebKit (#277)

Yury Semikhatsky629c56b0ab01
diff --git a/test/page.spec.js b/test/page.spec.js
index 5b4d56458f..a44a1edf61 100644
--- a/test/page.spec.js
+++ b/test/page.spec.js
@@ -98,10 +98,10 @@ module.exports.addTests = function({testRunner, expect, headless, playwright, FF
});
describe('Async stacks', () => {
- it.skip(WEBKIT)('should work', async({page, server}) => {
+ it('should work', async({page, server}) => {
server.setRoute('/empty.html', (req, res) => {
- res.statusCode = 204;
- res.end();
+ req.socket.write('deadbeef');
+ req.socket.end();
});
let error = null;
await page.goto(server.EMPTY_PAGE).catch(e => error = e);