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

High Level DOM Assertions for QUnit

Results 60 qunit-dom issues
Sort by recently updated
recently updated
newest added

Current signature of the method `dom()`: https://github.com/simplabs/qunit-dom/blob/6c31d65d825c8c09fab1c4f604b8a89945c06e11/lib/qunit-dom.ts#L10 But it is not completely accurate and triggers an error when `rootElement` comes from a basic `querySelector()`: ```js const myTable = this.element.querySelector(/* my-selector...

This adds the ability to restrict your selection to the first element that contains the given text. ```js assert.dom('button').containingText('submit').hasAttribute('disabled'); ``` This gives a reasonable replacement for the never-standardized `:contains()` selector...

The type signature of `hasAttribute` lists both `value` and `message` as optional however this isn't possible to pull off in TypesScript as passing a message string as the second argument...

enhancement
beginner-friendly

Similar to https://github.com/testing-library/jest-dom#tohavedescription. I'm trying to use [Testing Library](https://testing-library.com/) with QUnit, and I think `hasDescription()` would fit really nice. Example: ```html Email Email is invalid ``` ```js assert.dom(getByLabelText("Email")).hasDescription("Email is invalid");...

enhancement

Can we have a straight forward alias named `isHidden` for `isNotVisible`

enhancement

Presently, `assert.dom(el).isNotVisible()` will fail if the element in question has been hidden using the `visibility: hidden` style. Is this intentional? If not, and it's just an oversight, how do people...

bug

today, qunit-dom's default path points to the wrong file. in a real ESM environment, `import * as anything from 'qunit-dom'` points at the ember addon index.js instead of anything useful....

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@arethetypeswrong/cli](https://togithub.com/arethetypeswrong/arethetypeswrong.github.io) ([source](https://togithub.com/arethetypeswrong/arethetypeswrong.github.io/tree/HEAD/packages/cli)) | [`0.12.2` -> `0.15.3`](https://renovatebot.com/diffs/npm/@arethetypeswrong%2fcli/0.12.2/0.15.3) |...

dependencies
renovatebot

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [rollup](https://rollupjs.org/) ([source](https://togithub.com/rollup/rollup)) | [`2.79.1` -> `4.18.0`](https://renovatebot.com/diffs/npm/rollup/2.79.1/4.18.0) |...