Skip to content

Commit

Permalink
rewrote test
Browse files Browse the repository at this point in the history
  • Loading branch information
crisnicandrei committed Nov 10, 2023
1 parent 5947e6e commit 5cc0475
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ describe('InlineValueEditComponent', () => {
expect(Number(utcDt.format('h'))).toEqual(3);
});

it('should expand the title when hovering with the mouse over it', () => {
it('should expand the title when hovering with the mouse over it', async () => {
component.type = 'text';
component.isPublicArchive = true;
fixture.detectChanges();
Expand All @@ -397,8 +397,7 @@ describe('InlineValueEditComponent', () => {
nameContainer.dispatchEvent(new Event('mouseenter'));
fixture.detectChanges();

fixture.whenStable().then(() => {
expect(nameContainer.classList).toContain('is-name-hovered');
});
await fixture.whenStable();
expect(nameContainer.classList).toContain('is-name-hovered');
});
});

0 comments on commit 5cc0475

Please sign in to comment.