Skip to content

Commit

Permalink
fix: apply same fix for findAll
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusBorg committed Jun 11, 2021
1 parent acbc848 commit 00c8592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vueWrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export class VueWrapper<T extends ComponentPublicInstance>
findAll(selector: string): DOMWrapper<Element>[] {
const results = this.parentElement['__vue_app__']
? this.parentElement.querySelectorAll(selector)
: this.element.querySelectorAll(selector)
: this.element.querySelectorAll ? this.element.querySelectorAll(selector) : []

return Array.from(results).map((element) => new DOMWrapper(element))
}
Expand Down

0 comments on commit 00c8592

Please sign in to comment.