Skip to content

Commit

Permalink
chore: bump playwright to 1.37.1 (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
sand4rt authored Aug 17, 2023
1 parent eb33aa9 commit 082ac40
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 27 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.37.0",
"@playwright/test": "^1.37.1",
"typescript": "^5.1.3",
"vite": "^4.4.7"
}
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.37.0",
"@playwright/test": "^1.37.1",
"typescript": "^5.1.3",
"vite": "^4.4.7"
}
Expand Down
15 changes: 11 additions & 4 deletions playwright-ct-web/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,25 @@ type HTMLAttributes<Component extends HTMLElement> = Partial<WritablePart<PickBy
type CustomProperties<Component extends HTMLElement> = Partial<PickByValue<Component, JsonValue>>;
type ComponentProps<Component extends HTMLElement> = HTMLAttributes<Component> & CustomProperties<Component>;

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

type ComponentEvents = Record<string, Function>;

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

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

export interface ComponentFixtures {
Expand Down
8 changes: 4 additions & 4 deletions playwright-ct-web/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sand4rt/experimental-ct-web",
"version": "1.37.0",
"version": "1.37.1",
"description": "Playwright Component Testing for Web Components",
"homepage": "https://playwright.dev",
"repository": {
Expand Down Expand Up @@ -44,13 +44,13 @@
},
"dependencies": {
"vite": "^4.4.7",
"@playwright/experimental-ct-core": "^1.37.0"
"@playwright/experimental-ct-core": "^1.37.1"
},
"devDependencies": {
"@playwright/test": "1.37.0"
"@playwright/test": "1.37.1"
},
"peerDependencies": {
"@playwright/test": ">=1.37.0"
"@playwright/test": ">=1.37.1"
},
"bin": {
"playwright": "./cli.js"
Expand Down
34 changes: 17 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 082ac40

Please sign in to comment.