From d17ca957aaae515624d944ca362982fdd1d7d01e Mon Sep 17 00:00:00 2001 From: Michael Chadwick Date: Fri, 8 Nov 2024 10:14:23 -0800 Subject: [PATCH] added some messages to tests --- .../tests/pages/components/password-validator-test.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/frontend/tests/pages/components/password-validator-test.js b/packages/frontend/tests/pages/components/password-validator-test.js index 62cb4a9bfa..c32d0ca214 100644 --- a/packages/frontend/tests/pages/components/password-validator-test.js +++ b/packages/frontend/tests/pages/components/password-validator-test.js @@ -10,17 +10,16 @@ module('Integration | Component | password-validator', function (hooks) { test('it renders', async function (assert) { await render(hbs``); - assert.ok(component); - assert.strictEqual(component.label, 'Password:'); + assert.ok(component, 'component exists'); + assert.strictEqual(component.label, 'Password:', 'has Password label'); }); test('it fails blank password', async function (assert) { await render(hbs``); - assert.false(component.hasError); + assert.false(component.hasError, 'no error with no input'); await component.submit(); - - assert.true(component.hasError); + assert.true(component.hasError, 'shows blank password error'); }); test('it fails short password', async function (assert) {