From 96e707f6f834199eda9e379e45e9288237e5f7e2 Mon Sep 17 00:00:00 2001 From: Holger Benl Date: Fri, 8 Mar 2024 12:20:21 +0100 Subject: [PATCH] Fix iteration in TestStepSourceLocationCache --- .../TestSuite/suspense/TestStepSourceLocationCache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/components/TestSuite/suspense/TestStepSourceLocationCache.ts b/src/ui/components/TestSuite/suspense/TestStepSourceLocationCache.ts index 704bd08e65f..4e0f7fa76ea 100644 --- a/src/ui/components/TestSuite/suspense/TestStepSourceLocationCache.ts +++ b/src/ui/components/TestSuite/suspense/TestStepSourceLocationCache.ts @@ -26,7 +26,7 @@ function getCypressMarkerFrame(frames: Frame[]) { let cypressSourceId: string | undefined; let userSourceId: string | undefined; - for (let i = 1; i <= frames.length; i++) { + for (let i = 1; i < frames.length; i++) { const sourceId = frames[i].functionLocation?.[0].sourceId; if (!cypressSourceId && sourceId !== pluginSourceId) { // The first non-plugin source will be cypress