Skip to content

Commit

Permalink
test: rm 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.
  • Loading branch information
MrChocolatine committed Nov 4, 2023
1 parent 1f3a268 commit ab8163d
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 ab8163d

Please sign in to comment.