mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Glimmer continued (#15786)
* generated item list * home link glimmerization * hover copy button * clean up * clean up * copy change
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user