Link list panel component (#182)
* chore: 🤖 update parent branch * chore: 🤖 fix merge conflict * chore: 🤖 merge conflict * refactor: 💡 merge conflict * chore: 🤖 update branch * fix: 🐛 translation * refactor: 💡 use <ul> & <li> and make entire row a link
This commit is contained in:
1 parent
811025bccb
commit
7080b07ab3
6 files changed
+114
-5
No files matched your search
@@ -0,0 +1,28 @@
|
||||
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 | link-list-panel/index', function (hooks) {
|
||||
setupRenderingTest(hooks);
|
||||
|
||||
test('it renders with icons and text', async function (assert) {
|
||||
assert.expect(5);
|
||||
await render(hbs`
|
||||
<LinkListPanel as |P|>
|
||||
<P.Item @icon='cloud-upload' @text='Storage Bucket' @route='scopes.scope.storage-buckets'>
|
||||
<Hds::Badge
|
||||
@text='AWS S3'
|
||||
@icon='aws-color'
|
||||
/>
|
||||
</P.Item>
|
||||
</LinkListPanel>
|
||||
`);
|
||||
|
||||
assert.dom('[data-test-icon="cloud-upload"]').isVisible();
|
||||
assert.dom('[data-test-icon="chevron-right"]').isVisible();
|
||||
assert.dom('[data-test-icon="aws-color"]').isVisible();
|
||||
assert.dom('.hds-badge__text').hasText('AWS S3');
|
||||
assert.dom('.link-list-item__text').hasText('Storage Bucket');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user