diff --git a/ui/desktop/app/components/card/index.hbs b/ui/desktop/app/components/card/index.hbs
index 1b571a872..d0d766aeb 100644
--- a/ui/desktop/app/components/card/index.hbs
+++ b/ui/desktop/app/components/card/index.hbs
@@ -1,15 +1,17 @@
+
{{yield
(hash
- header=(component
- 'rose/anonymous' tagName='header' class='card-header'
- )
- body=(component
- 'rose/anonymous' tagName='div' class='card-body'
- )
- footer=(component
- 'rose/anonymous' tagName='footer' class='card-footer'
- )
+ body=(component 'rose/anonymous' tagName='div' class='card-body')
+ footer=(component 'rose/anonymous' tagName='footer' class='card-footer')
)
}}
-
+
\ No newline at end of file
diff --git a/ui/desktop/tests/integration/components/card-test.js b/ui/desktop/tests/integration/components/card-test.js
index 03c63ab96..8df798416 100644
--- a/ui/desktop/tests/integration/components/card-test.js
+++ b/ui/desktop/tests/integration/components/card-test.js
@@ -25,4 +25,22 @@ module('Integration | Component | card', function (hooks) {
assert.ok(find('.card-body'));
assert.ok(find('.card-footer'));
});
+
+ test('header renders an icon when defined', async function (assert) {
+ await render(hbs`
+
+
+
+
+
+ `);
+
+ assert.ok(find('.card'));
+ assert.ok(find('.card-header'));
+ assert.ok(find('.card-header .rose-icon'));
+ assert.equal(this.element.textContent.trim(), 'This is a heading test');
+ });
});