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
fix: bundles watch mode (#35887)
Yury Semikhatsky3cf6fa2db4f6
diff --git a/packages/playwright-core/bundles/utils/build.js b/packages/playwright-core/bundles/utils/build.jsindex 08cd4786ed..c14196668a 100644--- a/packages/playwright-core/bundles/utils/build.js+++ b/packages/playwright-core/bundles/utils/build.js@@ -43,7 +43,8 @@ if (!fs.existsSync(outdir))await ctx.rebuild();if (process.argv.includes('--watch'))await ctx.watch();- await ctx.dispose();+ else+ await ctx.dispose();})().catch(error => {console.error(error);process.exit(1);diff --git a/packages/playwright-core/bundles/zip/build.js b/packages/playwright-core/bundles/zip/build.jsindex a7246b832b..114ed463a9 100644--- a/packages/playwright-core/bundles/zip/build.js+++ b/packages/playwright-core/bundles/zip/build.js@@ -50,7 +50,8 @@ let patchFdSlicerToHideBufferDeprecationWarning = {await ctx.rebuild();if (process.argv.includes('--watch'))await ctx.watch();- await ctx.dispose();+ else+ await ctx.dispose();})().catch(error => {console.error(error);process.exit(1);diff --git a/packages/playwright/bundles/utils/build.js b/packages/playwright/bundles/utils/build.jsindex 6fca8d3e0a..1feb97ea26 100644--- a/packages/playwright/bundles/utils/build.js+++ b/packages/playwright/bundles/utils/build.js@@ -33,7 +33,8 @@ const esbuild = require('esbuild');await ctx.rebuild();if (process.argv.includes('--watch'))await ctx.watch();- await ctx.dispose();+ else+ await ctx.dispose();})().catch(error => {console.error(error);process.exit(1);