mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-10 16:47:01 +02:00
27 lines
1.0 KiB
JavaScript
27 lines
1.0 KiB
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { module, test } from 'qunit';
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
import { setupEngine } from 'ember-engines/test-support';
|
|
import { setupMirage } from 'ember-cli-mirage/test-support';
|
|
import { render } from '@ember/test-helpers';
|
|
import hbs from 'htmlbars-inline-precompile';
|
|
|
|
module('Integration | Component | ldap | ConfigCta', function (hooks) {
|
|
setupRenderingTest(hooks);
|
|
setupEngine(hooks, 'ldap');
|
|
setupMirage(hooks);
|
|
|
|
test('it should render message and action', async function (assert) {
|
|
await render(hbs`<ConfigCta />`, { owner: this.engine });
|
|
assert.dom('[data-test-empty-state-title]').hasText('LDAP not configured', 'Title renders');
|
|
assert
|
|
.dom('[data-test-empty-state-message]')
|
|
.hasText('Get started by setting up the connection with your existing LDAP system.', 'Message renders');
|
|
assert.dom('[data-test-config-cta] a').hasText('Configure LDAP', 'Action renders');
|
|
});
|
|
});
|