(tab)
| 225 | } |
| 226 | |
| 227 | function getCategoryTabLabel(tab) { |
| 228 | const text = normalizeText( |
| 229 | tab?.getAttribute?.('aria-label') |
| 230 | || tab?.getAttribute?.('data-tooltip') |
| 231 | || tab?.getAttribute?.('title') |
| 232 | || tab?.textContent |
| 233 | || '' |
| 234 | ); |
| 235 | return text; |
| 236 | } |
| 237 | |
| 238 | function collectCategoryTabs() { |
| 239 | const tabs = Array.from(document.querySelectorAll('[role="tab"], [data-tooltip-align][role="link"]')); |
no test coverage detected