diff --git a/test/package.json b/test/package.json index a6e429b..0a3011f 100644 --- a/test/package.json +++ b/test/package.json @@ -18,7 +18,7 @@ "webpack-cli": "^5.1.4" }, "scripts": { - "postinstall": "playwright install --with-deps chromium firefox", + "postinstall": "playwright install --with-deps", "prebuild:bundler": "wasm-pack build --target web --out-name test --out-dir out/bundler-base/pkg && shx cp index.* out/bundler-base", "build:bundler:webpack": "webpack", "build:bundler:rollup": "rollup -c", diff --git a/test/playwright.config.mjs b/test/playwright.config.mjs index 7a5780b..193bc55 100644 --- a/test/playwright.config.mjs +++ b/test/playwright.config.mjs @@ -25,10 +25,14 @@ export default defineConfig({ name: 'firefox', use: { ...devices['Desktop Firefox'] } }, - // Wasm doesn't seem to work in Playwright Webkit. - // { - // name: 'webkit', - // use: { ...devices['Desktop Safari'] } - // } + // Wasm doesn't work in WebKit on Windows. + ...(process.platform === 'win32' + ? [] + : [ + { + name: 'webkit', + use: { ...devices['Desktop Safari'] } + } + ]) ] });