| 349 | } |
| 350 | |
| 351 | async function openWorkflowFile(page) { |
| 352 | await open(page, PROJECT, 'explore'); |
| 353 | for (const path of ['.github', '.github/workflows']) { |
| 354 | const row = page.locator(`.atlas-tree-row[data-path="${path}"]`).first(); |
| 355 | await row.waitFor({ timeout: 30000 }); |
| 356 | for (let attempt = 0; attempt < 4 && (await row.getAttribute('data-expanded')) !== 'true'; attempt++) { await row.click(); await wait(1200); } |
| 357 | } |
| 358 | const file = page.locator('.atlas-tree-row[data-path=".github/workflows/new_contributor_pr.yml"]').first(); |
| 359 | await file.waitFor({ timeout: 30000 }); |
| 360 | await file.click(); |
| 361 | await page.waitForFunction(() => /New contributor message/.test(document.body.innerText), null, { timeout: 30000 }).catch(() => {}); |
| 362 | await wait(2500); |
| 363 | } |
| 364 | |
| 365 | async function k17(page) { |
| 366 | await openWorkflowFile(page); |