Skip to content

Commit 194f74f

Browse files
authored
fix(types): allow all elements (#169)
1 parent 12184a8 commit 194f74f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

projects/testing-library/src/lib/models.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export interface RenderResult<ComponentType, WrapperType = ComponentType> extend
1111
* The containing DOM node of your rendered Angular Component.
1212
* This is a regular DOM node, so you can call container.querySelector etc. to inspect the children.
1313
*/
14-
container: HTMLElement;
14+
container: Element;
1515
/**
1616
* @description
1717
* Prints out the component's DOM with syntax highlighting.

projects/testing-library/src/lib/testing-library.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ async function waitForElementToBeRemovedWrapper<T>(
273273
): Promise<void> {
274274
let cb;
275275
if (typeof callback !== 'function') {
276-
const elements = (Array.isArray(callback) ? callback : [callback]) as HTMLElement[];
276+
const elements = (Array.isArray(callback) ? callback : [callback]) as Element[];
277277
const getRemainingElements = elements.map((element) => {
278278
let parent = element.parentElement;
279279
while (parent.parentElement) {

0 commit comments

Comments
 (0)