* Returns the menu's sections if any.
()
| 442 | * Returns the menu's sections if any. |
| 443 | */ |
| 444 | getSections(): HTMLElement[] { |
| 445 | let menu = this.getMenu(); |
| 446 | if (menu) { |
| 447 | return within(menu).queryAllByRole('group'); |
| 448 | } else { |
| 449 | return []; |
| 450 | } |
| 451 | } |
| 452 | |
| 453 | /** |
| 454 | * Returns the menu's options if present. Can be filtered to a subsection of the menu if provided |
no test coverage detected