(section)
| 349 | ); |
| 350 | |
| 351 | const rowLabelsOf = async (section) => |
| 352 | page.evaluate( |
| 353 | (name) => |
| 354 | [ |
| 355 | ...document.querySelectorAll( |
| 356 | `[data-testid="codeatlas-twin-section-${name}"] .atlas-twin-row-label`, |
| 357 | ), |
| 358 | ].map((node) => node.textContent?.trim() ?? ''), |
| 359 | section, |
| 360 | ); |
| 361 | const stateLabels = await rowLabelsOf('state'); |
| 362 | const errorLabels = await rowLabelsOf('errors'); |
| 363 | extras.stateLabels = stateLabels; |