Checks whether the menu container is visible.
()
| 103 | |
| 104 | /** Checks whether the menu container is visible. */ |
| 105 | async isOpen(): Promise<boolean> { |
| 106 | const host = await this.host(); |
| 107 | // Menu bars are always visible persistently. |
| 108 | if (await host.matchesSelector('[ngMenuBar]')) { |
| 109 | return true; |
| 110 | } |
| 111 | return (await host.getAttribute('data-visible')) === 'true'; |
| 112 | } |
| 113 | |
| 114 | /** Whether the menu is a menu bar. */ |
| 115 | async isMenuBar(): Promise<boolean> { |
no test coverage detected