(label: string, body: () => Promise<void>)
| 118 | try { |
| 119 | const page = await app.firstWindow({ timeout: 120_000 }); |
| 120 | const step = async (label: string, body: () => Promise<void>) => { |
| 121 | await body(); |
| 122 | stepIndex += 1; |
| 123 | await page.screenshot({ |
| 124 | path: join( |
| 125 | runDir, |
| 126 | `${String(stepIndex).padStart(2, "0")}-${label.toLowerCase().replace(/[^a-z0-9]+/g, "-")}.png`, |
| 127 | ), |
| 128 | }); |
| 129 | }; |
| 130 | |
| 131 | await step("app boots into the web console", async () => { |
| 132 | await page.getByText("Settings").first().waitFor({ timeout: 120_000 }); |