Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(types): allow all elements #169

Merged
merged 1 commit into from
Nov 21, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion projects/testing-library/src/lib/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface RenderResult<ComponentType, WrapperType = ComponentType> extend
* The containing DOM node of your rendered Angular Component.
* This is a regular DOM node, so you can call container.querySelector etc. to inspect the children.
*/
container: HTMLElement;
container: Element;
/**
* @description
* Prints out the component's DOM with syntax highlighting.
Expand Down
2 changes: 1 addition & 1 deletion projects/testing-library/src/lib/testing-library.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ async function waitForElementToBeRemovedWrapper<T>(
): Promise<void> {
let cb;
if (typeof callback !== 'function') {
const elements = (Array.isArray(callback) ? callback : [callback]) as HTMLElement[];
const elements = (Array.isArray(callback) ? callback : [callback]) as Element[];
const getRemainingElements = elements.map((element) => {
let parent = element.parentElement;
while (parent.parentElement) {
Expand Down