mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-22 23:21:08 +02:00
* delete vertical bar grouped * delete individual routes and tabs for client count types * add nav-bar component to hide tab in production * first round of test updates * skip client list tests for now * reogranize overview tests * fix css color for chart * change chart styling from grid to flex * add split view for running total chart * update latest colors from designs * add changelog * rename yield blocks to be more flexible * add conditional for description * delete routes
28 lines
812 B
JavaScript
28 lines
812 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { module, test } from 'qunit';
|
|
import { setupRenderingTest } from 'vault/tests/helpers';
|
|
import { render } from '@ember/test-helpers';
|
|
import { hbs } from 'ember-cli-htmlbars';
|
|
import { GENERAL } from 'vault/tests/helpers/general-selectors';
|
|
|
|
module('Integration | Component | clients/counts/nav-bar', function (hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
hooks.beforeEach(function () {
|
|
this.renderComponent = async () => {
|
|
await render(hbs`<Clients::Counts::NavBar />`);
|
|
};
|
|
});
|
|
|
|
test('it renders default tabs', async function (assert) {
|
|
await this.renderComponent();
|
|
|
|
assert.dom(GENERAL.tab('overview')).hasText('Overview');
|
|
assert.dom(GENERAL.tab('client list')).hasText('Client list');
|
|
});
|
|
});
|