diff --git a/packages/test-utils/types/index.d.ts b/packages/test-utils/types/index.d.ts index d2ad4695c..30144e16d 100644 --- a/packages/test-utils/types/index.d.ts +++ b/packages/test-utils/types/index.d.ts @@ -75,7 +75,7 @@ interface BaseWrapper { selector: Selector | void } -export interface Wrapper extends BaseWrapper { +export interface Wrapper extends BaseWrapper { readonly vm: V readonly element: el readonly options: WrapperOptions @@ -83,7 +83,7 @@ export interface Wrapper ext get (selector: VueClass): Wrapper get (selector: ComponentOptions): Wrapper get>(selector: FunctionalComponentOptions): Wrapper - get(selector: string): Wrapper + get(selector: string): Wrapper get (selector: RefSelector): Wrapper get (selector: NameSelector): Wrapper @@ -96,7 +96,7 @@ export interface Wrapper ext find (selector: VueClass): Wrapper find (selector: ComponentOptions): Wrapper find>(selector: FunctionalComponentOptions): Wrapper - find(selector: string): Wrapper + find(selector: string): Wrapper find (selector: RefSelector): Wrapper find (selector: NameSelector): Wrapper diff --git a/packages/test-utils/types/test/wrapper.ts b/packages/test-utils/types/test/wrapper.ts index a19ed7959..845eafaea 100644 --- a/packages/test-utils/types/test/wrapper.ts +++ b/packages/test-utils/types/test/wrapper.ts @@ -69,6 +69,7 @@ found = wrapper.find({ name: 'my-button' }) selector = found.selector wrapper.find('input').element.value +wrapper.find('div').element.click() let array = wrapper.findAll('.bar') selector = array.selector