| 164 | return { guardIsTheRealOne: true, refusals }; |
| 165 | }; |
| 166 | const noAutoRequestDuring = async (area, action) => { |
| 167 | const before = sidecarRequests; |
| 168 | await action(); |
| 169 | await page.waitForTimeout(100); |
| 170 | const requests = sidecarRequests - before; |
| 171 | report.autoRequests += requests; |
| 172 | report.autoRequestReadings.push({ area, requests }); |
| 173 | }; |
| 174 | const exercise = async ({ area, button, restore, root, built, ai, shot, screenshotTarget, scope = page }) => { |
| 175 | const askButton = scope.locator(button); |
| 176 | const rootNode = typeof root === 'string' ? page.locator(root) : root ?? scope; |