| 204 | folders: geometry.labels.filter((item) => item.kind === 'folder' || item.kind === 'lane').length, overlaps: geometry.overlaps.length, overlapping: geometry.overlaps.slice(0, 6) }); |
| 205 | |
| 206 | async function selectEntry(page, pattern) { |
| 207 | const select = page.getByLabel('Behavior entry point').first(); |
| 208 | const options = await select.locator('option').allTextContents(); |
| 209 | const index = options.findIndex((option) => pattern.test(option)); |
| 210 | if (index < 0) return null; |
| 211 | await select.selectOption({ index }); |
| 212 | return options[index]; |
| 213 | } |
| 214 | async function behaviorState(page) { |
| 215 | return page.evaluate(() => { |
| 216 | const select = document.querySelector('select[aria-label="Behavior entry point"]'); |