MCPcopy
hub / github.com/angular/components / _getMenuPanel

Method _getMenuPanel

src/material/menu/testing/menu-harness.ts:135–138  ·  view source on GitHub ↗

Gets the menu panel associated with this menu.

()

Source from the content-addressed store, hash-verified

133
134 /** Gets the menu panel associated with this menu. */
135 private async _getMenuPanel(): Promise<TestElement | null> {
136 const panelId = await this._getPanelId();
137 return panelId ? this._documentRootLocator.locatorForOptional(`#${panelId}`)() : null;
138 }
139
140 /** Gets the id of the menu panel associated with this menu. */
141 private async _getPanelId(): Promise<string | null> {

Callers 2

isOpenMethod · 0.95
closeMethod · 0.95

Calls 2

_getPanelIdMethod · 0.95
locatorForOptionalMethod · 0.80

Tested by

no test coverage detected