| 142 | const toolbar = (page) => page.locator('.atlas-graph-exploration').first(); |
| 143 | const scopeName = (page) => page.locator('.atlas-graph-scope-name').first().innerText({ timeout: 1000 }).catch(() => ''); |
| 144 | const countText = (page) => page.locator('.atlas-graph-scope-count').first().innerText({ timeout: 1000 }).catch(() => ''); |
| 145 | const layerText = (page) => toolbar(page).evaluate((bar) => [...bar.querySelectorAll('span')].map((el) => el.textContent?.trim() ?? '') |
| 146 | .find((text) => /^\d+ layers?$/.test(text)) ?? '').catch(() => ''); |
| 147 | |