|
2 | 2 | import EmberObject from '@ember/object';
|
3 | 3 | import { module, test } from 'qunit';
|
4 | 4 | import { setupRenderingTest } from 'ember-qunit';
|
5 |
| -import { |
6 |
| - render, |
7 |
| - click, |
8 |
| - findAll, |
9 |
| - find, |
10 |
| - triggerEvent, |
11 |
| -} from '@ember/test-helpers'; |
| 5 | +import { render, click, findAll, find } from '@ember/test-helpers'; |
12 | 6 | import hbs from 'htmlbars-inline-precompile';
|
13 | 7 |
|
14 | 8 | module('Integration | Component | class field description', function (hooks) {
|
@@ -37,29 +31,6 @@ module('Integration | Component | class field description', function (hooks) {
|
37 | 31 | assert.dom(findAll('.args')[0]).hasText('(param1, param2, param3)');
|
38 | 32 | });
|
39 | 33 |
|
40 |
| - test('On hover -- the link icon shows up', async function (assert) { |
41 |
| - this.set('type', 'method'); |
42 |
| - this.set( |
43 |
| - 'field', |
44 |
| - EmberObject.create({ |
45 |
| - access: 'public', |
46 |
| - deprecated: true, |
47 |
| - name: 'concat', |
48 |
| - description: 'concatenates', |
49 |
| - params: [{ name: 'param1' }, { name: 'param2' }, { name: 'param3' }], |
50 |
| - }) |
51 |
| - ); |
52 |
| - |
53 |
| - await render( |
54 |
| - hbs`<ClassFieldDescription @type={{this.type}} @field={{this.field}}/>` |
55 |
| - ); |
56 |
| - |
57 |
| - await triggerEvent('.class-field-description--link', 'mouseenter'); |
58 |
| - assert |
59 |
| - .dom('.class-field-description--link-hover') |
60 |
| - .exists('The link icon appears when hovering on the method text'); |
61 |
| - }); |
62 |
| - |
63 | 34 | test('it calls the provided action on link-click with the field name as an arg', async function (assert) {
|
64 | 35 | this.set('updateAnchor', (name) => {
|
65 | 36 | assert.equal(
|
|
0 commit comments