mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-14 20:04:13 -04:00
add beta tags
This commit is contained in:
parent
26d24d9e78
commit
a9837bce0b
5 changed files with 9 additions and 6 deletions
|
|
@ -16,7 +16,7 @@
|
|||
<Nav.Link
|
||||
@route="vault.cluster.sync"
|
||||
@text="Secrets Sync"
|
||||
@badge={{unless this.version.isEnterprise "Enterprise"}}
|
||||
@badge={{if this.version.isEnterprise "Beta" "Enterprise"}}
|
||||
data-test-sidebar-nav-link="Secrets Sync"
|
||||
/>
|
||||
{{#if (has-permission "access")}}
|
||||
|
|
|
|||
|
|
@ -17,6 +17,9 @@
|
|||
{{#if this.version.isCommunity}}
|
||||
<Hds::Badge @text="Enterprise feature" @color="highlight" @size="large" />
|
||||
{{/if}}
|
||||
{{#if this.version.isEnterprise}}
|
||||
<Hds::Badge @text="Beta" @color="highlight" @size="large" />
|
||||
{{/if}}
|
||||
</h1>
|
||||
</p.levelLeft>
|
||||
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ module('Integration | Component | sync | Page::Destinations', function (hooks) {
|
|||
test('it should render header and tabs', async function (assert) {
|
||||
await this.renderComponent();
|
||||
assert.dom(breadcrumb).includesText('Secrets Sync', 'Breadcrumb renders');
|
||||
assert.dom(title).hasText('Secrets Sync', 'Page title renders');
|
||||
assert.dom(title).hasText('Secrets Sync Beta', 'Page title renders');
|
||||
assert.dom(tab('Overview')).exists('Overview tab renders');
|
||||
assert.dom(tab('Destinations')).exists('Destinations tab renders');
|
||||
});
|
||||
|
|
|
|||
|
|
@ -60,13 +60,13 @@ module('Integration | Component | sync | Page::Overview', function (hooks) {
|
|||
test('it should render landing cta component for enterprise', async function (assert) {
|
||||
this.set('destinations', []);
|
||||
await settled();
|
||||
assert.dom(title).hasText('Secrets Sync', 'Page title renders');
|
||||
assert.dom(title).hasText('Secrets Sync Beta', 'Page title renders');
|
||||
assert.dom(cta.button).hasText('Create first destination', 'CTA action renders');
|
||||
assert.dom(cta.summary).exists('CTA renders');
|
||||
});
|
||||
|
||||
test('it should render header, tabs and toolbar for overview state', async function (assert) {
|
||||
assert.dom(title).hasText('Secrets Sync', 'Page title renders');
|
||||
assert.dom(title).hasText('Secrets Sync Beta', 'Page title renders');
|
||||
assert.dom(breadcrumb).exists({ count: 1 }, 'Correct number of breadcrumbs render');
|
||||
assert.dom(breadcrumb).includesText('Secrets Sync', 'Top level breadcrumb renders');
|
||||
assert.dom(cta.button).doesNotExist('CTA does not render');
|
||||
|
|
|
|||
|
|
@ -41,11 +41,11 @@ module('Integration | Component | sync | SyncHeader', function (hooks) {
|
|||
|
||||
test('it should just render title for enterprise version', async function (assert) {
|
||||
await this.renderComponent();
|
||||
assert.dom(title).hasText('Secrets Sync');
|
||||
assert.dom(title).hasText('Secrets Sync Beta');
|
||||
});
|
||||
|
||||
test('it should render title and promotional enterprise badge for community version', async function (assert) {
|
||||
this.version.type = null;
|
||||
this.version.type = 'community';
|
||||
await this.renderComponent();
|
||||
assert.dom(title).hasText('Secrets Sync Enterprise feature');
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue