Opens the menu if it is currently closed.
()
| 119 | |
| 120 | /** Opens the menu if it is currently closed. */ |
| 121 | async open(): Promise<void> { |
| 122 | if (!(await this.isOpen())) { |
| 123 | const trigger = await this._getTrigger(); |
| 124 | if (trigger) { |
| 125 | await trigger.click(); |
| 126 | } |
| 127 | } |
| 128 | } |
| 129 | |
| 130 | /** Closes the menu if it is currently open. */ |
| 131 | async close(): Promise<void> { |
nothing calls this directly
no test coverage detected