| 947 | /* K12: die Namen im Mini-Galaxy von Explore liegen nicht aufeinander */ |
| 948 | |
| 949 | async function openWorkflowFile(page) { |
| 950 | await page.goto(`${ORIGIN}/?project=${encodeURIComponent(PROJECT)}&workspace=explore`, { waitUntil: 'domcontentloaded' }); |
| 951 | await page.waitForSelector('.atlas-shell', { timeout: 30000 }); |
| 952 | await wait(1500); |
| 953 | for (const path of ['.github', '.github/workflows']) { |
| 954 | const row = page.locator(`.atlas-tree-row[data-path="${path}"]`).first(); |
| 955 | await row.waitFor({ timeout: 30000 }); |
| 956 | for (let attempt = 0; attempt < 4 && (await row.getAttribute('data-expanded')) !== 'true'; attempt++) { await row.click(); await wait(1200); } |
| 957 | } |
| 958 | await page.locator('.atlas-tree-row[data-path=".github/workflows/new_contributor_pr.yml"]').first().click(); |
| 959 | await page.waitForFunction(() => /New contributor message/.test(document.body.innerText), null, { timeout: 30000 }).catch(() => {}); |
| 960 | await page.waitForFunction(() => document.querySelectorAll('.atlas-galaxy [data-testid="atlas-galaxy-root-marker"]').length > 1, null, { timeout: 30000 }).catch(() => {}); |
| 961 | await wait(3000); |
| 962 | } |
| 963 | |
| 964 | /** Alle Beschriftungen im Mini-Galaxy, im DOM gemessen, dazu die Namen der Szene; Paare, die sich ueberlagern. */ |
| 965 | async function miniLabels(page) { |