Skip to content

Commit

Permalink
renames replication links in sidebar nav (#21061)
Browse files Browse the repository at this point in the history
  • Loading branch information
zofskeez authored Jun 7, 2023
1 parent 28f7256 commit 6c64a20
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions ui/app/components/sidebar/nav/cluster.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@
<Nav.Link
@route="vault.cluster.replication.mode.index"
@model="dr"
@text="DR Primary"
data-test-sidebar-nav-link="DR Primary"
@text="Disaster Recovery"
data-test-sidebar-nav-link="Disaster Recovery"
/>

{{#if (has-feature "Performance Replication")}}
<Nav.Link
@route="vault.cluster.replication.mode.index"
@model="performance"
@text="Performance Secondary"
data-test-sidebar-nav-link="Performance Secondary"
@text="Performance"
data-test-sidebar-nav-link="Performance"
/>
{{/if}}
{{/if}}
Expand Down
4 changes: 2 additions & 2 deletions ui/tests/acceptance/enterprise-sidebar-nav-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ module('Acceptance | Enterprise | sidebar navigation', function (hooks) {
assert.strictEqual(currentURL(), '/vault/replication', 'Replication route renders');
await click('[data-test-replication-enable]');

await click(link('Performance Secondary'));
await click(link('Performance'));
assert.strictEqual(
currentURL(),
'/vault/replication/performance',
'Replication performance route renders'
);

await click(link('DR Primary'));
await click(link('Disaster Recovery'));
assert.strictEqual(currentURL(), '/vault/replication/dr', 'Replication dr route renders');
// disable replication now that we have checked the links
await click('[data-test-replication-link="manage"]');
Expand Down
4 changes: 2 additions & 2 deletions ui/tests/integration/components/sidebar/nav/cluster-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ module('Integration | Component | sidebar-nav-cluster', function (hooks) {
'Access',
'Policies',
'Tools',
'DR Primary',
'Performance Secondary',
'Disaster Recovery',
'Performance',
'Replication',
'Raft Storage',
'Client count',
Expand Down

0 comments on commit 6c64a20

Please sign in to comment.