From 40d1e0ea7a1c6ea583299e1a8ded81f355f0a6f2 Mon Sep 17 00:00:00 2001 From: Susmitha Girumala Date: Tue, 15 Sep 2020 14:18:48 -0400 Subject: [PATCH] test: Update set password form test --- .../account/password/set-password-test.js | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) 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')); }); + });