diff --git a/libs/angular-testing/src/lib/harnesses/primeng/p-dropdown.harness.ts b/libs/angular-testing/src/lib/harnesses/primeng/p-dropdown.harness.ts index 0dc82ae0..8b83a968 100644 --- a/libs/angular-testing/src/lib/harnesses/primeng/p-dropdown.harness.ts +++ b/libs/angular-testing/src/lib/harnesses/primeng/p-dropdown.harness.ts @@ -44,8 +44,9 @@ export class PDropdownHarness extends ContentContainerComponentHarness { async getDropdownItems() { await this.open() - const dropdownItems = this.locatorForAll(ListItemHarness)() - return await dropdownItems + const rootLocator = this.documentRootLocatorFactory() + const items = await rootLocator.harnessLoaderFor('.p-dropdown-items') + return await items.getAllHarnesses(ListItemHarness) } async getDropdownItem(itemText: string): Promise {