From 8cceb4090fcc6ba59da7021fe146aeb68a80c818 Mon Sep 17 00:00:00 2001 From: Carlos Alcaide Date: Tue, 27 Jul 2021 14:27:13 -0700 Subject: [PATCH] =?UTF-8?q?refactor:=20=F0=9F=92=A1=20Change=20save=20crde?= =?UTF-8?q?ntial=20library=20behaviour?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change save credential library behaviour to not redirect after saving a change --- .../credential-stores/credential-store/credential-libraries.js | 3 ++- .../acceptance/credential-library/credential-library-test.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/admin/app/routes/scopes/scope/credential-stores/credential-store/credential-libraries.js b/ui/admin/app/routes/scopes/scope/credential-stores/credential-store/credential-libraries.js index d9602dba4..84684ecfd 100644 --- a/ui/admin/app/routes/scopes/scope/credential-stores/credential-store/credential-libraries.js +++ b/ui/admin/app/routes/scopes/scope/credential-stores/credential-store/credential-libraries.js @@ -47,7 +47,8 @@ export default class ScopesScopeCredentialStoresCredentialStoreCredentialLibrari async save(credentialLibrary) { await credentialLibrary.save(); await this.transitionTo( - 'scopes.scope.credential-stores.credential-store.credential-libraries' + 'scopes.scope.credential-stores.credential-store.credential-libraries.credential-library', + credentialLibrary ); this.refresh(); } diff --git a/ui/admin/tests/acceptance/credential-library/credential-library-test.js b/ui/admin/tests/acceptance/credential-library/credential-library-test.js index 77dbc0912..245fc7157 100644 --- a/ui/admin/tests/acceptance/credential-library/credential-library-test.js +++ b/ui/admin/tests/acceptance/credential-library/credential-library-test.js @@ -137,7 +137,7 @@ module('Acceptance | credential-library', function (hooks) { ); }); - test.skip('can save changes to existing credential library', async function (assert) { + test('can save changes to existing credential library', async function (assert) { assert.expect(3); assert.notEqual(instances.credentialLibrary.name, 'random string'); await visit(urls.credentialLibrary);