| 273 | |
| 274 | /** Die Beispiele ueber der Kommandozeile, so wie sie dastehen. */ |
| 275 | const commandExamples = (page) => |
| 276 | page.evaluate(() => { |
| 277 | const input = document.querySelector('[data-testid="atlas-command-input"]'); |
| 278 | return { |
| 279 | placeholder: input?.getAttribute('placeholder') ?? '', |
| 280 | open: document.querySelector('[data-testid="atlas-command-examples"]') !== null, |
| 281 | rows: [...document.querySelectorAll('[data-testid="atlas-command-example"]')].map((node) => ({ |
| 282 | id: node.getAttribute('data-example') ?? '', |
| 283 | symbol: node.getAttribute('data-symbol') ?? '', |
| 284 | text: node.querySelector('.atlas-command-example-text')?.textContent?.trim() ?? '', |
| 285 | tag: node.tagName, |
| 286 | focusable: node.tabIndex >= 0, |
| 287 | })), |
| 288 | }; |
| 289 | }); |
| 290 | |
| 291 | /** Was unter dem Diagramm steht, gezaehlt am gerenderten Baum. */ |
| 292 | const honestyBlock = (page) => |