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 Jan 31, 2024
1 parent efbf013 commit 8085db4
Show file tree
Hide file tree
Showing 7 changed files with 126 additions and 164 deletions.
2 changes: 1 addition & 1 deletion ct-web-lit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"devDependencies": {
"@sand4rt/experimental-ct-web": "workspace:*",
"@playwright/test": "^1.41.1",
"@playwright/test": "1.41.1",
"typescript": "^5.1.3",
"vite": "^4.4.7"
}
Expand Down
2 changes: 1 addition & 1 deletion ct-web-lit/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default defineConfig({
testDir: 'tests',
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
reporter: 'html',
reporter: process.env.CI ? 'html' : 'line',
use: {
trace: 'on-first-retry',
ctViteConfig: {
Expand Down
2 changes: 1 addition & 1 deletion ct-web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"devDependencies": {
"@sand4rt/experimental-ct-web": "workspace:*",
"@playwright/test": "^1.41.1",
"@playwright/test": "1.41.1",
"typescript": "^5.1.3",
"vite": "^4.4.7"
}
Expand Down
2 changes: 1 addition & 1 deletion ct-web/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default defineConfig({
testDir: 'tests',
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
reporter: 'html',
reporter: process.env.CI ? 'html' : 'line',
use: {
trace: 'on-first-retry',
ctViteConfig: {
Expand Down
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 8085db4

Please sign in to comment.