mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
backport of commit b78f4bffcc (#20604)
Co-authored-by: Jordan Reimer <zofskeez@gmail.com>
This commit is contained in:
committed by
GitHub
parent
b739a5487c
commit
5b8d69bc7d
3
changelog/20603.txt
Normal file
3
changelog/20603.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
```release-note:bug
|
||||
ui: fixes issue creating mfa login enforcement from method enforcements tab
|
||||
```
|
||||
@@ -78,7 +78,7 @@
|
||||
{{else if (eq this.tab "enforcements")}}
|
||||
<Toolbar>
|
||||
<ToolbarActions>
|
||||
<ToolbarLink @type="add" @params={{array "vault.cluster.access.mfa.enforcements.create"}}>
|
||||
<ToolbarLink @route="vault.cluster.access.mfa.enforcements.create" @type="add" data-test-enforcement-create>
|
||||
New enforcement
|
||||
</ToolbarLink>
|
||||
</ToolbarActions>
|
||||
|
||||
@@ -289,4 +289,16 @@ module('Acceptance | mfa-method', function (hooks) {
|
||||
.dom('[data-test-row-value="Max validation attempts"]')
|
||||
.hasText('10', 'Max validation attempts field is updated');
|
||||
});
|
||||
|
||||
test('it should navigate to enforcements create route from method enforcement tab', async function (assert) {
|
||||
await visit('/vault/access/mfa/methods');
|
||||
await click('[data-test-mfa-method-list-item]');
|
||||
await click('[data-test-tab="enforcements"]');
|
||||
await click('[data-test-enforcement-create]');
|
||||
assert.strictEqual(
|
||||
currentRouteName(),
|
||||
'vault.cluster.access.mfa.enforcements.create',
|
||||
'Navigates to enforcements create route from toolbar action'
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user