Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: hide stackTrace.js from recorded frames (#16242)

Max Schmitt57fcb590f738
diff --git a/packages/playwright-core/src/utils/stackTrace.ts b/packages/playwright-core/src/utils/stackTrace.ts
index 641ab1180a..b9c07dd04d 100644
--- a/packages/playwright-core/src/utils/stackTrace.ts
+++ b/packages/playwright-core/src/utils/stackTrace.ts
@@ -130,7 +130,7 @@ export function captureStackTrace(rawStack?: string): ParsedStackTrace {
return true;
if (f.frame.file.startsWith(TEST_DIR_SRC) || f.frame.file.startsWith(TEST_DIR_LIB))
return false;
- if (i && f.frame.file.startsWith(CORE_DIR))
+ if (f.frame.file.startsWith(CORE_DIR))
return false;
return true;
});