qunit-dom icon indicating copy to clipboard operation
qunit-dom copied to clipboard

Issue with assert.dom(this.element) types with latest Ember and QUnit

Open knownasilya opened this issue 2 years ago • 3 comments

Getting type error like:

Argument of type 'Element | Document' is not assignable to parameter of type 'string | Element | null | undefined'.

The type of this.element is

TestContext.element: Element | Document

but assert.dom doesn't expect a Document.

"ember-source": "~4.5.0", "@types/qunit": "^2.19.0", "ember-qunit": "^5.1.5", "qunit": "^2.19.1", "qunit-dom": "^2.0.0",

knownasilya avatar Jun 18 '22 01:06 knownasilya

Yes, we intentionally do not accept document because it is missing some APIs

Turbo87 avatar Jun 18 '22 07:06 Turbo87

Is this an issue with ember-qunit? cc @rwjblue

knownasilya avatar Jun 19 '22 02:06 knownasilya

This is still an issue. Any updates here?

raido avatar Nov 03 '23 09:11 raido