@vitest/browser 4.0.0-beta.7 → 4.0.0-beta.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/context.d.ts CHANGED
@@ -544,7 +544,7 @@ export interface Locator extends LocatorSelectors {
544
544
  *
545
545
  * @see {@link https://vitest.dev/guide/browser/locators#element}
546
546
  */
547
- element(): Element
547
+ element(): HTMLElement | SVGElement
548
548
  /**
549
549
  * Returns an array of elements matching the selector.
550
550
  *
@@ -552,7 +552,7 @@ export interface Locator extends LocatorSelectors {
552
552
  *
553
553
  * @see {@link https://vitest.dev/guide/browser/locators#elements}
554
554
  */
555
- elements(): Element[]
555
+ elements(): (HTMLElement | SVGElement)[]
556
556
  /**
557
557
  * Returns an element matching the selector.
558
558
  *
@@ -561,7 +561,7 @@ export interface Locator extends LocatorSelectors {
561
561
  *
562
562
  * @see {@link https://vitest.dev/guide/browser/locators#query}
563
563
  */
564
- query(): Element | null
564
+ query(): HTMLElement | SVGElement | null
565
565
  /**
566
566
  * Wraps an array of `.elements()` matching the selector in a new `Locator`.
567
567
  *