Skip to content

Commit

Permalink
test: add block coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnaceMaes committed Apr 27, 2024
1 parent d799803 commit 2592926
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions test-app/tests/integration/components/ph-icon-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,31 @@ module('Integration | Component | ph-icon', function (hooks) {

assert.dom().hasText('');
assert.dom('[data-test-id="acorn"]').exists();
assert.dom('[data-test-id="acorn"]').hasTagName('svg');
});

test('it allows nesting animatiins', async function (assert) {
await render(hbs`
<PhAcorn data-test-id="acorn">
<animate
attributeName="opacity"
values="0;1;0"
dur="4s"
repeatCount="indefinite"
data-test-id="icon-animation"
/>
<animateTransform
attributeName="transform"
attributeType="XML"
type="rotate"
dur="5s"
from="0 0 0"
to="360 0 0"
repeatCount="indefinite"
/>
<PhAcorn />`);

assert.dom('[data-test-id="acorn"]').exists();
assert.dom('[data-test-id="icon-animation"]').exists();
});
});

0 comments on commit 2592926

Please sign in to comment.