Skip to content

Commit 7a39dc9

Browse files
committed
chore: bump playwright to 1.37.1 (microsoft#16)
1 parent 52b3930 commit 7a39dc9

File tree

4 files changed

+30
-24
lines changed

4 files changed

+30
-24
lines changed

ct-angular/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"@angular-devkit/build-angular": "^15.1.0",
2727
"@angular/cli": "~15.1.0",
2828
"@angular/compiler-cli": "^15.1.0",
29-
"@playwright/test": "1.37.0",
29+
"@playwright/test": "1.37.1",
3030
"@sand4rt/experimental-ct-angular": "workspace:*",
3131
"typescript": "~4.9.4"
3232
}

playwright-ct-angular/index.d.ts

+10-4
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,24 @@ export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig
3636
};
3737
};
3838

39-
type Slot = string | string[];
39+
type ComponentSlot = string | string[];
40+
type ComponentSlots = Record<string, ComponentSlot> & { default?: ComponentSlot };
41+
42+
type ComponentEvents = Record<string, Function>;
4043

4144
export interface MountOptions<HooksConfig extends JsonObject, Component> {
4245
props?: Partial<Component>, // TODO: filter props
43-
slots?: Record<string, Slot> & { default?: Slot };
44-
on?: Record<string, Function>;
46+
slots?: ComponentSlots;
47+
on?: ComponentEvents;
4548
hooksConfig?: HooksConfig;
4649
}
4750

4851
interface MountResult<Component> extends Locator {
4952
unmount(): Promise<void>;
50-
update(options: Omit<Omit<MountOptions<never, Component>, 'hooksConfig'>, 'slots'>): Promise<void>;
53+
update(options: {
54+
props?: Partial<Component>,
55+
on?: Partial<ComponentEvents>,
56+
}): Promise<void>;
5157
}
5258

5359
export interface ComponentFixtures {

playwright-ct-angular/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sand4rt/experimental-ct-angular",
3-
"version": "1.37.0",
3+
"version": "1.37.1",
44
"description": "Playwright Component Testing for Angular",
55
"homepage": "https://playwright.dev",
66
"repository": {
@@ -42,7 +42,7 @@
4242
"dependencies": {
4343
"@analogjs/vite-plugin-angular": "0.2.0-rc.3",
4444
"@angular-devkit/build-angular": "^16.1.0",
45-
"@playwright/experimental-ct-core": "1.37.0",
45+
"@playwright/experimental-ct-core": "1.37.1",
4646
"vite": "^4.4.7"
4747
},
4848
"devDependencies": {
@@ -54,14 +54,14 @@
5454
"@angular/platform-browser": "^16.1.7",
5555
"@angular/platform-browser-dynamic": "^16.1.7",
5656
"@angular/router": "^16.1.7",
57-
"@playwright/test": "1.37.0",
57+
"@playwright/test": "1.37.1",
5858
"rxjs": "~7.8.1",
5959
"tslib": "^2.5.0",
6060
"typescript": "^5.0.4",
6161
"zone.js": "~0.13.1"
6262
},
6363
"peerDependencies": {
64-
"@playwright/test": ">=1.37.0",
64+
"@playwright/test": ">=1.37.1",
6565
"typescript": ">=4.9.3",
6666
"@angular/common": ">=15.1.0 || >=16.0.0",
6767
"@angular/platform-browser": ">=15.1.0 || >=16.0.0",

pnpm-lock.yaml

+15-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)