* Clicks an item in the menu, and optionally continues clicking items in subsequent sub-menus. * @param itemFilter A filter used to represent which item in the menu should be clicked. The * first matching menu item will be clicked. * @param subItemFilters A list of filters representing
(
itemFilter: Omit<MenuItemHarnessFilters, 'ancestor'>,
...subItemFilters: Omit<MenuItemHarnessFilters, 'ancestor'>[]
)
| 119 | * `subItemFilters` will be clicked. |
| 120 | */ |
| 121 | async clickItem( |
| 122 | itemFilter: Omit<MenuItemHarnessFilters, 'ancestor'>, |
| 123 | ...subItemFilters: Omit<MenuItemHarnessFilters, 'ancestor'>[] |
| 124 | ): Promise<void> { |
| 125 | await this.open(); |
| 126 | return clickItemImplementation(await this.getItems(itemFilter), itemFilter, subItemFilters); |
| 127 | } |
| 128 | |
| 129 | protected override async getRootHarnessLoader(): Promise<HarnessLoader> { |
| 130 | const panelId = await this._getPanelId(); |
no test coverage detected