| 236 | const backButton = page.getByRole('button', { name: 'Back', exact: true }); |
| 237 | const forwardButton = page.getByRole('button', { name: 'Forward', exact: true }); |
| 238 | const state = async () => ({ scope: await scopeName(page), layers: await layerText(page), count: await countText(page), |
| 239 | back: await backButton.getAttribute('title', { timeout: 1000 }).catch(() => null), |
| 240 | backDisabled: await backButton.isDisabled({ timeout: 1000 }).catch(() => null), |
| 241 | forward: await forwardButton.getAttribute('title', { timeout: 1000 }).catch(() => null), |
| 242 | forwardDisabled: await forwardButton.isDisabled({ timeout: 1000 }).catch(() => null), |
| 243 | history: await page.evaluate(() => { const h = globalThis.__atlasGalaxy?.history; return h ? { index: h.index, entries: h.entries.length } : null; }) }); |
| 244 | const steps = []; |
| 245 | await select(page, ROOT); |
| 246 | await settled(page); |