Glimmer continued (#15786)

* generated item list

* home link glimmerization

* hover copy button

* clean up

* clean up

* copy change
This commit is contained in:
Angel Garbarino
2022-06-03 17:34:42 -07:00
committed by GitHub
parent 4ac2b575fa
commit 78485a3e01
9 changed files with 93 additions and 70 deletions

View File

@@ -11,13 +11,11 @@ module('Integration | Component | hover copy button', function (hooks) {
// ember-cli-clipboard helpers don't like the new style
test('it shows success message in tooltip', async function (assert) {
this.set('copyValue', 'foo');
await render(
hbs`<div class="has-copy-button" tabindex="-1">
<HoverCopyButton @copyValue={{copyValue}} />
</div>`
);
await render(hbs`
<div class="has-copy-button" tabindex="-1">
<HoverCopyButton @copyValue="foo" />
</div>
`);
await component.focusContainer();
await settled();
assert.ok(component.buttonIsVisible);
@@ -27,7 +25,12 @@ module('Integration | Component | hover copy button', function (hooks) {
});
test('it has the correct class when alwaysShow is true', async function (assert) {
this.set('copyValue', 'foo');
await render(hbs`
<HoverCopyButton
@copyValue="foo"
@alwaysShow={{true}}
/>
`);
await render(hbs`{{hover-copy-button alwaysShow=true copyValue=copyValue}}`);
assert.ok(component.buttonIsVisible);
assert.ok(component.wrapperClass.includes('hover-copy-button-static'));