Skip to content

Commit

Permalink
test: remove use of this.element
Browse files Browse the repository at this point in the history
TypeScript error as it is not supposed to be publicly exposed:
- emberjs/ember-test-helpers#1306
- https://github.com/emberjs/ember-qunit/blob/v8.0.1/docs/migration.md
  • Loading branch information
MrChocolatine committed Nov 12, 2023
1 parent 7c801bb commit d43c29f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integration/components/feature-controls-test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { module, test, assert } from 'qunit'
import { setupRenderingTest } from 'dummy/tests/helpers'
import { click, render } from '@ember/test-helpers'
import { click, find, render } from '@ember/test-helpers'
import { hbs } from 'ember-cli-htmlbars'
import { camelize } from '@ember/string'
import resetStorages from 'ember-local-storage/test-support/reset-storage'
Expand Down Expand Up @@ -128,7 +128,7 @@ module('Integration | Component | feature-controls', function (hooks) {
.isChecked('flagFalse should be checked after click')

assert
.dom(this.element.querySelector('[data-test-label-flag="flagFalse"]'))
.dom(find('[data-test-label-flag="flagFalse"]'))
.hasText('❗', "flagFalse's label should have a content")
})

Expand Down

0 comments on commit d43c29f

Please sign in to comment.