fix(ct): vue update slots (#28835)
Due to [Vue 3.4](https://blog.vuejs.org/posts/vue-3-4): _"refactored reactivity system that makes effect triggering more accurate and efficient"_ closes: https://github.com/microsoft/playwright/issues/28830
This commit is contained in:
Родитель
58fa4fce74
Коммит
eebb69121e
|
@ -288,6 +288,9 @@ window.playwrightUpdate = async (rootElement, component) => {
|
|||
wrapper.component.slots = __pwWrapFunctions(slots);
|
||||
__pwAllListeners.set(wrapper, listeners);
|
||||
|
||||
if (typeof slots !== 'undefined')
|
||||
wrapper.component.effect.run();
|
||||
|
||||
for (const [key, value] of Object.entries(props))
|
||||
wrapper.component.props[key] = value;
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
"typecheck": "vue-tsc --noEmit"
|
||||
},
|
||||
"dependencies": {
|
||||
"vue": "^3.2.31",
|
||||
"vue": "^3.4.0",
|
||||
"vue-router": "^4.1.5"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
Загрузка…
Ссылка в новой задаче