Skip to content

Commit

Permalink
Update dropdown.spec.ts
Browse files Browse the repository at this point in the history
add a check for class name to unit test
  • Loading branch information
willmca committed Jun 19, 2024
1 parent 64ed9dd commit 62e1b3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/components/dropdown/dropdown.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ describe('Dropdown', () => {

const dropdownPanel = fixture.debugElement.query(By.css('.p-dropdown-panel'));
expect(dropdownPanel).toBeTruthy();
expect(container.className).toContain('p-dropdown-open');
expect(dropdown.overlayVisible).toBeTrue();
});

Expand Down

0 comments on commit 62e1b3b

Please sign in to comment.