(label, caption)
| 997 | const wanted = ['permissions', 'new_contributor_pr.yml', '.github/workflows/new_contributor_pr.yml', 'jobs']; |
| 998 | const views = []; |
| 999 | const look = async (label, caption) => { |
| 1000 | const measured = await miniLabels(page); |
| 1001 | views.push({ label, ...measured }); |
| 1002 | await shot(page, 'K12', label, `${caption}: ${measured.labels.length} labels, ${measured.overlaps.length} overlapping pairs`); |
| 1003 | const panel = await page.locator('.atlas-galaxy').first().boundingBox(); |
| 1004 | if (panel) { |
| 1005 | const file = `${label}-mini.png`; |
| 1006 | await page.screenshot({ path: join(OUT, 'K12', file), clip: panel }); |
| 1007 | await appendFile(join(OUT, 'K12', 'index.md'), `- \`${file}\`: the mini-Galaxy alone (${Math.round(panel.width)} x ${Math.round(panel.height)} px)\n`); |
| 1008 | } |
| 1009 | }; |
| 1010 | await look('chat-closed', 'Chat closed, the YAML file open'); |
| 1011 | await page.getByRole('button', { name: 'Open chat' }).first().click().catch(() => {}); |
| 1012 | await wait(2500); |
no test coverage detected