feat: 🎸 Add component sidebar in Admin UI
Add layout component sidebar in Admin UI and a view (Session recordings)
already using it
✅ Closes: ICU-8145
This commit is contained in:
1 parent
b9cf61932b
commit
78392ff9b4
4 files changed
+69
-10
No files matched your search
@@ -0,0 +1,23 @@
|
||||
import { module, test } from 'qunit';
|
||||
import { setupRenderingTest } from 'admin/tests/helpers';
|
||||
import { render } from '@ember/test-helpers';
|
||||
import { hbs } from 'ember-cli-htmlbars';
|
||||
|
||||
module('Integration | Component | layout/sidebar', function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
test('it renders', async function (assert) {
|
||||
await render(hbs`
|
||||
<Layout::Sidebar as |sb|>
|
||||
<sb.body>Body content</sb.body>
|
||||
<sb.sidebar>Sidebar content</sb.sidebar>
|
||||
</Layout::Sidebar>
|
||||
`);
|
||||
|
||||
assert.dom('.layout-sidebar').isVisible();
|
||||
assert.dom('.layout-sidebar-body').isVisible();
|
||||
assert.dom('.layout-sidebar-body').hasText('Body content');
|
||||
assert.dom('.layout-sidebar-sidebar').isVisible();
|
||||
assert.dom('.layout-sidebar-sidebar').hasText('Sidebar content');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user