From 62e1b3bf9c4d0a29325c64317724ef32945c5a79 Mon Sep 17 00:00:00 2001 From: Will McAllister <53065222+willmca@users.noreply.github.com> Date: Wed, 19 Jun 2024 13:32:26 -0400 Subject: [PATCH] Update dropdown.spec.ts add a check for class name to unit test --- src/app/components/dropdown/dropdown.spec.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/components/dropdown/dropdown.spec.ts b/src/app/components/dropdown/dropdown.spec.ts index 98f37ba2529..127a29c0b44 100755 --- a/src/app/components/dropdown/dropdown.spec.ts +++ b/src/app/components/dropdown/dropdown.spec.ts @@ -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(); });