2023-03-14 13:18:55 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) HashiCorp, Inc.
|
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*/
|
|
|
|
|
2020-05-11 15:37:11 +00:00
|
|
|
import { module, test } from 'qunit';
|
|
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
|
|
import { render } from '@ember/test-helpers';
|
|
|
|
import { hbs } from 'ember-cli-htmlbars';
|
|
|
|
|
2022-09-15 08:43:17 +00:00
|
|
|
module('Integration | Component | auth-profile', function (hooks) {
|
2020-05-11 15:37:11 +00:00
|
|
|
setupRenderingTest(hooks);
|
|
|
|
|
2022-09-15 08:43:17 +00:00
|
|
|
test('it renders', async function (assert) {
|
2020-05-11 15:37:11 +00:00
|
|
|
// Set any properties with this.set('myProperty', 'value');
|
|
|
|
// Handle any actions with this.set('myAction', function(val) { ... });
|
|
|
|
|
|
|
|
await render(hbs`<AuthProfile />`);
|
|
|
|
|
2023-02-10 21:32:19 +00:00
|
|
|
assert.notStrictEqual(this.element.textContent.indexOf('AccessorID'), -1);
|
2020-05-11 15:37:11 +00:00
|
|
|
|
|
|
|
// Template block usage:
|
|
|
|
await render(hbs`
|
|
|
|
<AuthProfile></AuthProfile>
|
|
|
|
`);
|
|
|
|
|
2023-02-10 21:32:19 +00:00
|
|
|
assert.notStrictEqual(this.element.textContent.indexOf('AccessorID'), -1);
|
2020-05-11 15:37:11 +00:00
|
|
|
});
|
|
|
|
});
|