mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-23 15:41:07 +02:00
* naming updates * start of renaming usage-metrics to client-usage * update screenshots and remove docs for removed charts * add redirect from usage-metrics to client-usage and rename doc file * rename links * add screenshot for attribution table * update table screenshot * update urls to new pattern * Update website/content/docs/commands/operator/usage.mdx Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com> * Update website/content/docs/concepts/client-count/client-usage.mdx Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com> * Update website/content/docs/concepts/client-count/client-usage.mdx Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com> * Update website/content/docs/concepts/client-count/client-usage.mdx Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com> * Update website/content/docs/concepts/client-count/counting.mdx Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com> * Update website/content/partials/faq/client-count/tools.mdx Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com> * alt text improvements + removed outdated faq section --------- Co-authored-by: claire bontempo <cbontempo@hashicorp.com> Co-authored-by: Sarah Chavis <62406755+schavis@users.noreply.github.com>
33 lines
1.1 KiB
JavaScript
33 lines
1.1 KiB
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { module, test } from 'qunit';
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
import { render } from '@ember/test-helpers';
|
|
import { hbs } from 'ember-cli-htmlbars';
|
|
|
|
module('Integration | Component | clients/usage-stats', function (hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
test('it renders', async function (assert) {
|
|
await render(
|
|
hbs`
|
|
<Clients::UsageStats @title="My stats" @description="a very important description">
|
|
yielded content!
|
|
</Clients::UsageStats>`
|
|
);
|
|
|
|
assert.dom('[data-test-usage-stats="My stats"]').exists();
|
|
assert.dom('h3').hasText('My stats', 'title renders in h3 tag');
|
|
assert.dom('p').hasText('a very important description', 'description renders in p tag');
|
|
assert
|
|
.dom('[data-test-usage-stats="My stats"]')
|
|
.hasTextContaining('yielded content!', 'it renders yielded content');
|
|
assert
|
|
.dom('a')
|
|
.hasAttribute('href', 'https://developer.hashicorp.com/vault/docs/concepts/client-count/client-usage');
|
|
});
|
|
});
|