Skip to content

Commit f2c721b

Browse files
committed
fix(test): unshadow capture-helper catch bindings
check-lint-core-4 (run 31872054461) flagged no-shadow: the failure diagnostics refactor in c59ef0b named its parameter 'error' while two inner catches reused the name.
1 parent 9e911d5 commit f2c721b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎ui/src/test-helpers/control-ui-e2e.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2743,15 +2743,15 @@ async function captureControlUiE2eFailureDiagnosticsUnsafe(
27432743
),
27442744
};
27452745
});
2746-
} catch (error) {
2747-
captureErrors.push(`page.evaluate: ${String(error)}`);
2746+
} catch (evaluateError) {
2747+
captureErrors.push(`page.evaluate: ${String(evaluateError)}`);
27482748
}
27492749
let screenshotWritten = false;
27502750
try {
27512751
await page.screenshot({ fullPage: true, path: screenshotPath });
27522752
screenshotWritten = true;
2753-
} catch (error) {
2754-
captureErrors.push(`page.screenshot: ${String(error)}`);
2753+
} catch (screenshotError) {
2754+
captureErrors.push(`page.screenshot: ${String(screenshotError)}`);
27552755
}
27562756
const report = {
27572757
schemaVersion: 2,

0 commit comments

Comments
 (0)