Skip to content

Commit

Permalink
chore: bump playwright to 1.41.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sand4rt committed Feb 17, 2024
1 parent cf0e365 commit 723a321
Show file tree
Hide file tree
Showing 5 changed files with 531 additions and 140 deletions.
4 changes: 2 additions & 2 deletions ct-web-lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
},
"devDependencies": {
"@sand4rt/experimental-ct-web": "workspace:*",
"@playwright/test": "^1.41.1",
"@playwright/test": "1.41.1",
"typescript": "^5.1.3",
"vite": "^4.4.7"
"vite": "^5.0.12"
}
}
4 changes: 2 additions & 2 deletions ct-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"devDependencies": {
"@sand4rt/experimental-ct-web": "workspace:*",
"@playwright/test": "^1.41.1",
"@playwright/test": "1.41.1",
"typescript": "^5.1.3",
"vite": "^4.4.7"
"vite": "^5.0.12"
}
}
5 changes: 3 additions & 2 deletions playwright-ct-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
}
},
"dependencies": {
"@playwright/experimental-ct-core": "^1.41.1"
"@playwright/experimental-ct-core": "1.41.1"
},
"devDependencies": {
"@playwright/test": "1.41.1"
Expand All @@ -52,6 +52,7 @@
"@playwright/test": ">=1.41.1"
},
"bin": {
"playwright": "./cli.js"
"playwright": "cli.js",
"pw-angular": "cli.js"
}
}
5 changes: 2 additions & 3 deletions playwright-ct-web/registerSource.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,13 @@ function __pwCreateSlot(value) {
}

window.playwrightMount = async (component, rootElement, hooksConfig) => {
if (!isObjectComponent(component))
if (component.__pw_type === 'jsx')
throw new Error('JSX mount notation is not supported');

for (const hook of window['__pw_hooks_before_mount'] || [])
await hook({ hooksConfig });

console.log(component)
const webComponent = new component();
const webComponent = new component.type();
__pwUpdateProps(webComponent, component.props);
__pwUpdateSlots(webComponent, component.slots);
__pwUpdateEvents(webComponent, component.on);
Expand Down
Loading

0 comments on commit 723a321

Please sign in to comment.