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(ct): vue2 do not destroy events on update (#17995)
sand4rte0ce2a9bc112
diff --git a/packages/playwright-ct-vue2/registerSource.mjs b/packages/playwright-ct-vue2/registerSource.mjsindex c27981d8e5..85a7187691 100644--- a/packages/playwright-ct-vue2/registerSource.mjs+++ b/packages/playwright-ct-vue2/registerSource.mjs@@ -193,12 +193,6 @@ window.playwrightUpdate = async (element, options) => {const component = wrapper.componentInstance;const { nodeData, slots } = createComponent(options, component.$createElement);-- for (const [name] of Object.entries(component.$listeners || {})) {- component.$off(name);- delete component.$listeners[name];- }-for (const [name, value] of Object.entries(nodeData.on || {})) {component.$on(name, value);component.$listeners[name] = value;