From b19cbee609730ebdcf884c77c9675a75f6a6973a Mon Sep 17 00:00:00 2001 From: Susmitha Girumala Date: Wed, 30 Sep 2020 22:25:40 -0400 Subject: [PATCH] feat: Disable change password link in header --- ui/core/app/router.js | 3 ++- ui/core/app/templates/application.hbs | 4 ++-- ui/core/tests/acceptance/accounts/change-password-test.js | 5 +++++ ui/core/tests/unit/routes/account/change-password-test.js | 5 +++-- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ui/core/app/router.js b/ui/core/app/router.js index 0894289f9..bebf3f0a2 100644 --- a/ui/core/app/router.js +++ b/ui/core/app/router.js @@ -94,6 +94,7 @@ Router.map(function () { }); this.route('account', function() { - this.route('change-password'); + // Enable after full account feature implementation + // this.route('change-password'); }); }); diff --git a/ui/core/app/templates/application.hbs b/ui/core/app/templates/application.hbs index f8de5b3f9..d63eee931 100644 --- a/ui/core/app/templates/application.hbs +++ b/ui/core/app/templates/application.hbs @@ -19,9 +19,9 @@ @iconOnly={{true}} @icon="boundary-icons/user-profile" as |dropdown| > - + {{!-- {{t 'actions.change-password'}} - + --}} diff --git a/ui/core/tests/acceptance/accounts/change-password-test.js b/ui/core/tests/acceptance/accounts/change-password-test.js index 27a28ba3d..fee06b101 100644 --- a/ui/core/tests/acceptance/accounts/change-password-test.js +++ b/ui/core/tests/acceptance/accounts/change-password-test.js @@ -1,3 +1,5 @@ +// Enable after account workflow implementation +/* import { module, test } from 'qunit'; import { visit, currentURL, click, find, fillIn } from '@ember/test-helpers'; import { setupApplicationTest } from 'ember-qunit'; @@ -15,6 +17,7 @@ module('Acceptance | accounts | change password', function (hooks) { setupApplicationTest(hooks); setupMirage(hooks); + const instances = { scopes: { global: null, @@ -114,4 +117,6 @@ module('Acceptance | accounts | change password', function (hooks) { await visit(urls.changePassword); assert.notEqual(currentURL(), urls.changePassword); }); + }); +*/ diff --git a/ui/core/tests/unit/routes/account/change-password-test.js b/ui/core/tests/unit/routes/account/change-password-test.js index ee6856d35..4481d783e 100644 --- a/ui/core/tests/unit/routes/account/change-password-test.js +++ b/ui/core/tests/unit/routes/account/change-password-test.js @@ -5,7 +5,8 @@ module('Unit | Route | account/change-password', function(hooks) { setupTest(hooks); test('it exists', function(assert) { - let route = this.owner.lookup('route:account/change-password'); - assert.ok(route); + // let route = this.owner.lookup('route:account/change-password'); + // assert.ok(route); + assert.expect(0); }); });