* Upgrade desktop UI to Ember 4.12.2 * refactor: 💡 refactor scripts Refactor concurrently scripts, and removed duplicate entries in `eslintrc.js` ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11747 * refactor: 💡 peer dependencies Revert changes to `peerDependencies`. ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11747 * refactor: 💡 revert config back before upgrade Revert `styelint-standard-config-scss` back to 6.0.0 so that it can be put into seperate ticket. ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11747 * Update _notify.scss fix misspelling * refactor: 💡 revert dependency Revert `stylelint-config-standard-scss` back to original version ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-11747
24 lines
752 B
JavaScript
24 lines
752 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
*/
|
|
|
|
import { module, test } from 'qunit';
|
|
import { setupRenderingTest } from 'ember-qunit';
|
|
import { render, find } from '@ember/test-helpers';
|
|
import { hbs } from 'ember-cli-htmlbars';
|
|
|
|
module('Integration | Component | copyable', function (hooks) {
|
|
setupRenderingTest(hooks);
|
|
|
|
test('it renders', async function (assert) {
|
|
this.set('actionText', 'text');
|
|
await render(
|
|
hbs`<Copyable @buttonText="Copy me" @text="foo">{{this.actionText}}</Copyable>`,
|
|
);
|
|
assert.ok(find('.copyable'));
|
|
assert.strictEqual(find('.copyable-content').textContent.trim(), 'text');
|
|
assert.strictEqual(find('.copyable-button').textContent.trim(), 'Copy me');
|
|
});
|
|
});
|