diff --git a/ui/core/tests/integration/components/form/account/password/set-password-test.js b/ui/core/tests/integration/components/form/account/password/set-password-test.js index 8aacee5e1..a5904574b 100644 --- a/ui/core/tests/integration/components/form/account/password/set-password-test.js +++ b/ui/core/tests/integration/components/form/account/password/set-password-test.js @@ -1,26 +1,24 @@ import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; -import { render } from '@ember/test-helpers'; +import { render, find } from '@ember/test-helpers'; import { hbs } from 'ember-cli-htmlbars'; module('Integration | Component | form/account/password/set-password', function(hooks) { setupRenderingTest(hooks); test('it renders', async function(assert) { - // Set any properties with this.set('myProperty', 'value'); - // Handle any actions with this.set('myAction', function(val) { ... }); + this.submit = () => {}; + this.cancel = () => {}; + this.model = { type: 'password' }; - await render(hbs``); - - assert.equal(this.element.textContent.trim(), ''); - - // Template block usage: await render(hbs` - - template block text - - `); + `); - assert.equal(this.element.textContent.trim(), 'template block text'); + assert.ok(find('form')); }); + });