| 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 | |
| 148 | async function open(page) { |
| 149 | await page.goto(`${ORIGIN}/?project=${encodeURIComponent(PROJECT)}&workspace=galaxy`, { waitUntil: 'domcontentloaded' }); |