refactor: 💡 Change save crdential library behaviour

Change save credential library behaviour to not redirect after saving a
change
This commit is contained in:
Carlos Alcaide committed 2021-07-27 14:27:13 -07:00
1 parent dc7ebec668
commit 8cceb4090f
2 files changed
+3 -2

No files matched your search

@@ -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();
}
@@ -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);