Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: update download test failure expectation (#2225)
Pavel Feldmana4b670464e4d
diff --git a/test/download.spec.js b/test/download.spec.jsindex aa7c0b25da..5f09430feb 100644--- a/test/download.spec.js+++ b/test/download.spec.js@@ -16,7 +16,7 @@const fs = require('fs');const path = require('path');-const {FFOX, CHROMIUM, WEBKIT, MAC} = require('./utils').testOptions(browserType);+const {FFOX, CHROMIUM, WEBKIT, MAC, WIN} = require('./utils').testOptions(browserType);describe('Download', function() {beforeEach(async(state) => {@@ -57,7 +57,7 @@ describe('Download', function() {expect(fs.readFileSync(path).toString()).toBe('Hello world');await page.close();});- it.fail(WEBKIT && MAC)('should report non-navigation downloads', async({browser, server}) => {+ it.fail(WEBKIT && WIN)('should report non-navigation downloads', async({browser, server}) => {// Mac WebKit embedder does not download in this case, although Safari does.server.setRoute('/download', (req, res) => {res.setHeader('Content-Type', 'application/octet-stream');