mirror of
https://github.com/microsoft/playwright.git
synced 2024-11-24 06:49:04 +03:00
fix(ct): vue jsx component.update type (#32213)
partial fix for: https://github.com/microsoft/playwright/issues/31927#issuecomment-2267065378 The options object wasn't treated as partial, unlike in other frameworks, which led to the `component.update({ props: {} })` type being selected instead the `component.update(<Component prop={} />)` during jsx usage.
This commit is contained in:
parent
010778f6c5
commit
c87ca052d1
2
packages/playwright-ct-vue/index.d.ts
vendored
2
packages/playwright-ct-vue/index.d.ts
vendored
@ -55,7 +55,7 @@ export interface MountResultJsx extends Locator {
|
||||
export const test: TestType<{
|
||||
mount<HooksConfig>(
|
||||
component: JSX.Element,
|
||||
options: MountOptionsJsx<HooksConfig>
|
||||
options?: MountOptionsJsx<HooksConfig>
|
||||
): Promise<MountResultJsx>;
|
||||
mount<HooksConfig, Component = unknown>(
|
||||
component: Component,
|
||||
|
Loading…
Reference in New Issue
Block a user