Skip to content

Commit

Permalink
move 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 f824028
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions tests/integration/components/class-field-description-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,29 +37,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 f824028

Please sign in to comment.