| 793 | return last; |
| 794 | } |
| 795 | async function showView(page, item) { |
| 796 | await page.locator(`[data-workspace-tab="${item.workspace}"]`).first().click(); |
| 797 | await wait(700); |
| 798 | if (item.view) { await page.locator('.atlas-workspace-stage').getByRole('button', { name: item.view, exact: true }).first().click().catch(() => {}); await wait(700); } |
| 799 | if (item.sub) { await page.locator('.atlas-workspace-stage').getByRole('button', { name: item.sub, exact: true }).first().click().catch(() => {}); await wait(700); } |
| 800 | } |
| 801 | /** Paths and dotted names a view shows; a stale view shows ones the fresh view of its project does not. */ |
| 802 | const pathTokens = (text) => new Set(text.match(/[\w.@-]+\/[\w./@-]+/g) ?? []); |
| 803 | /** What the Galaxy draws: its headline names the indexed node count, which differs per project, while the stage text has no paths. */ |