Closes the menu if it is currently open.
()
| 129 | |
| 130 | /** Closes the menu if it is currently open. */ |
| 131 | async close(): Promise<void> { |
| 132 | if (await this.isOpen()) { |
| 133 | const trigger = await this._getTrigger(); |
| 134 | if (trigger) { |
| 135 | await trigger.click(); |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | /** Queries all menu items inside this menu container. */ |
| 141 | async getItems(filters: MenuItemHarnessFilters = {}): Promise<MenuItemHarness[]> { |
no test coverage detected