refactor: Show acknowledgement text when copied using copyabl

This commit is contained in:
Susmitha Girumala committed 2020-09-30 22:15:30 -04:00
1 parent 56b99a99a0
commit ce2fb39f59
29 files changed
+138 -34

No files matched your search

@@ -7,7 +7,7 @@ module('Integration | Component | copyable', function(hooks) {
setupRenderingTest(hooks);
test('it renders', async function(assert) {
await render(hbs`<Copyable @text="Copy me">text</Copyable>`);
await render(hbs`<Copyable @buttonText="Copy me">text</Copyable>`);
assert.ok(find('.copyable'));
assert.equal(find('.copyable-content').textContent.trim(), 'text');
assert.equal(find('.copyable-button').textContent.trim(), 'Copy me');