test: 💍 fix classnames
This commit is contained in:
1 parent
6b7b5fd45d
commit
2b7d3a327a
4 files changed
+25
-12
No files matched your search
@@ -1,6 +1,6 @@
|
||||
<div ...attributes class="rose-toolbar">
|
||||
{{yield (hash
|
||||
search=(component "rose/anonymous")
|
||||
filter=(component "rose/anonymous" class="rose-toolbar-search")
|
||||
search=(component "rose/anonymous" class="rose-toolbar-search")
|
||||
filter=(component "rose/anonymous" class="rose-toolbar-filter")
|
||||
)}}
|
||||
</div>
|
||||
@@ -1,10 +1 @@
|
||||
.rose-toolbar {
|
||||
background-color: #fbfbfc;
|
||||
display: flex;
|
||||
.rose-form {
|
||||
display: flex;
|
||||
}
|
||||
.rose-dropdown {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
@import 'toolbar';
|
||||
@@ -0,0 +1,10 @@
|
||||
.rose-toolbar {
|
||||
background-color: var(--ui-gray-subtler-6);
|
||||
display: flex;
|
||||
.rose-form {
|
||||
display: flex;
|
||||
}
|
||||
.rose-dropdown {
|
||||
margin-left: auto;
|
||||
}
|
||||
}
|
||||
@@ -12,10 +12,22 @@ module('Integration | Component | rose/toolbar', function (hooks) {
|
||||
assert.ok(find('.rose-toolbar'));
|
||||
});
|
||||
|
||||
test('it renders with attributes', async function (assert) {
|
||||
await render(hbs`<Rose::Toolbar id="toolbar"/>`);
|
||||
assert.ok(find('#toolbar'));
|
||||
});
|
||||
|
||||
test('it renders with filter', async function (assert) {
|
||||
await render(hbs`<Rose::Toolbar as |toolbar| >
|
||||
<toolbar.filter />
|
||||
</Rose::Toolbar>`);
|
||||
assert.ok(find('.rose-toolbar-filter'));
|
||||
});
|
||||
|
||||
test('it renders with search', async function (assert) {
|
||||
await render(hbs`<Rose::Toolbar as |toolbar| >
|
||||
<toolbar.search />
|
||||
</Rose::Toolbar>`);
|
||||
assert.ok(find('.rose-toolbar-search'));
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user