Skip to content

Commit

Permalink
chore: bump playwright to 1.37.1 (microsoft#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
sand4rt committed Nov 5, 2023
1 parent 042c7e2 commit dff53e7
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion ct-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@angular-devkit/build-angular": "^15.1.0",
"@angular/cli": "~15.1.0",
"@angular/compiler-cli": "^15.1.0",
"@playwright/test": "1.37.0",
"@playwright/test": "1.37.1",
"@sand4rt/experimental-ct-angular": "workspace:*",
"typescript": "~4.9.4"
}
Expand Down
14 changes: 10 additions & 4 deletions playwright-ct-angular/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,24 @@ export type PlaywrightTestConfig<T = {}, W = {}> = Omit<BasePlaywrightTestConfig
};
};

type Slot = string | string[];
type ComponentSlot = string | string[];
type ComponentSlots = Record<string, ComponentSlot> & { default?: ComponentSlot };

type ComponentEvents = Record<string, Function>;

export interface MountOptions<HooksConfig extends JsonObject, Component> {
props?: Partial<Component>, // TODO: filter props
slots?: Record<string, Slot> & { default?: Slot };
on?: Record<string, Function>;
slots?: ComponentSlots;
on?: ComponentEvents;
hooksConfig?: HooksConfig;
}

interface MountResult<Component> extends Locator {
unmount(): Promise<void>;
update(options: Omit<Omit<MountOptions<never, Component>, 'hooksConfig'>, 'slots'>): Promise<void>;
update(options: {
props?: Partial<Component>,
on?: Partial<ComponentEvents>,
}): Promise<void>;
}

export interface ComponentFixtures {
Expand Down
8 changes: 4 additions & 4 deletions playwright-ct-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sand4rt/experimental-ct-angular",
"version": "1.37.0",
"version": "1.37.1",
"description": "Playwright Component Testing for Angular",
"homepage": "https://playwright.dev",
"repository": {
Expand Down Expand Up @@ -42,7 +42,7 @@
"dependencies": {
"@analogjs/vite-plugin-angular": "0.2.0-rc.3",
"@angular-devkit/build-angular": "^16.1.0",
"@playwright/experimental-ct-core": "1.37.0",
"@playwright/experimental-ct-core": "1.37.1",
"vite": "^4.4.7"
},
"devDependencies": {
Expand All @@ -54,14 +54,14 @@
"@angular/platform-browser": "^16.1.7",
"@angular/platform-browser-dynamic": "^16.1.7",
"@angular/router": "^16.1.7",
"@playwright/test": "1.37.0",
"@playwright/test": "1.37.1",
"rxjs": "~7.8.1",
"tslib": "^2.5.0",
"typescript": "^5.0.4",
"zone.js": "~0.13.1"
},
"peerDependencies": {
"@playwright/test": ">=1.37.0",
"@playwright/test": ">=1.37.1",
"typescript": ">=4.9.3",
"@angular/common": ">=15.1.0 || >=16.0.0",
"@angular/platform-browser": ">=15.1.0 || >=16.0.0",
Expand Down

0 comments on commit dff53e7

Please sign in to comment.