* Upgrade desktop UI to Ember 4.12.2 * refactor: 💡 refactor scripts Refactor concurrently scripts, and removed duplicate entries in `eslintrc.js` ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11747 * refactor: 💡 peer dependencies Revert changes to `peerDependencies`. ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11747 * refactor: 💡 revert config back before upgrade Revert `styelint-standard-config-scss` back to 6.0.0 so that it can be put into seperate ticket. ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11747 * Update _notify.scss fix misspelling * refactor: 💡 revert dependency Revert `stylelint-config-standard-scss` back to original version ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11747
37 lines
1.0 KiB
JavaScript
37 lines
1.0 KiB
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import { module, test } from 'qunit';
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
import { render, find } from '@ember/test-helpers';
|
|
import { hbs } from 'ember-cli-htmlbars';
|
|
|
|
module('Integration | Component | dialog-detail', function (hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
test('it renders', async function (assert) {
|
|
await render(hbs`<DialogDetail />`);
|
|
assert.ok(find('.dialog-detail'));
|
|
});
|
|
|
|
test('it renders with content', async function (assert) {
|
|
this.set('value', 'Test');
|
|
await render(hbs`
|
|
<DialogDetail as |dialogDetail|>
|
|
<dialogDetail.notification />
|
|
<dialogDetail.body>
|
|
<h2>{{this.value}}</h2>
|
|
</dialogDetail.body>
|
|
<dialogDetail.footer></dialogDetail.footer>
|
|
</DialogDetail>
|
|
`);
|
|
|
|
assert.ok(find('.dialog-detail'));
|
|
assert.ok(find('.rose-dialog-header'));
|
|
assert.ok(find('.rose-dialog-body'));
|
|
assert.ok(find('.rose-dialog-footer'));
|
|
});
|
|
});
|