Add the new Card component with header, body and footer for the desktop
client. This card will be used within the connection dialog to show
credentials
✅ Closes: ICU-1432
29 lines
831 B
JavaScript
29 lines
831 B
JavaScript
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 | card', function (hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
test('it renders', async function (assert) {
|
|
await render(hbs`<Card />`);
|
|
assert.ok(find('.credentials-card'));
|
|
});
|
|
|
|
test('it renders with content', async function (assert) {
|
|
await render(hbs`
|
|
<Card as |card|>
|
|
<card.header></card.header>
|
|
<card.body></card.body>
|
|
<card.footer></card.footer>
|
|
</Card>
|
|
`);
|
|
|
|
assert.ok(find('.credentials-card'));
|
|
assert.ok(find('.credentials-card-header'));
|
|
assert.ok(find('.credentials-card-body'));
|
|
assert.ok(find('.credentials-card-footer'));
|
|
});
|
|
});
|