Skip to content

Commit

Permalink
remove now irrelevant test (ember-learn#882)
Browse files Browse the repository at this point in the history
we're no longer hiding the link icon until the header is hovered, which makes this test irrelevant
  • Loading branch information
Lukas Nys committed Sep 10, 2023
1 parent d6f4ca9 commit 815b8b5
Showing 1 changed file with 1 addition and 30 deletions.
31 changes: 1 addition & 30 deletions tests/integration/components/class-field-description-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@
import EmberObject from '@ember/object';
import { module, test } from 'qunit';
import { setupRenderingTest } from 'ember-qunit';
import {
render,
click,
findAll,
find,
triggerEvent,
} from '@ember/test-helpers';
import { render, click, findAll, find } from '@ember/test-helpers';
import hbs from 'htmlbars-inline-precompile';

module('Integration | Component | class field description', function (hooks) {
Expand Down Expand Up @@ -37,29 +31,6 @@ module('Integration | Component | class field description', function (hooks) {
assert.dom(findAll('.args')[0]).hasText('(param1, param2, param3)');
});

test('On hover -- the link icon shows up', async function (assert) {
this.set('type', 'method');
this.set(
'field',
EmberObject.create({
access: 'public',
deprecated: true,
name: 'concat',
description: 'concatenates',
params: [{ name: 'param1' }, { name: 'param2' }, { name: 'param3' }],
})
);

await render(
hbs`<ClassFieldDescription @type={{this.type}} @field={{this.field}}/>`
);

await triggerEvent('.class-field-description--link', 'mouseenter');
assert
.dom('.class-field-description--link-hover')
.exists('The link icon appears when hovering on the method text');
});

test('it calls the provided action on link-click with the field name as an arg', async function (assert) {
this.set('updateAnchor', (name) => {
assert.equal(
Expand Down

0 comments on commit 815b8b5

Please sign in to comment.