Skip to content

Commit

Permalink
fix: harness fix
Browse files Browse the repository at this point in the history
  • Loading branch information
markuczy committed Jun 25, 2024
1 parent 3877f8f commit 36f3ea2
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ListItemHarness | null> {
Expand Down

0 comments on commit 36f3ea2

Please sign in to comment.