Skip to content

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

Fix: Add unique key prop to React elements in FilmStrip component (#37817)

Copilote5536694e8a9
diff --git a/packages/trace-viewer/src/ui/actionList.tsx b/packages/trace-viewer/src/ui/actionList.tsx
index 4b162a170a..d4f2dd1a0a 100644
--- a/packages/trace-viewer/src/ui/actionList.tsx
+++ b/packages/trace-viewer/src/ui/actionList.tsx
@@ -171,7 +171,7 @@ export function renderTitleForCall(action: ActionTraceEvent): { elements: React.
elements.push(param);
title.push(param);
} else {
- elements.push(<span className='action-title-param'>{param}</span>);
+ elements.push(<span key={elements.length} className='action-title-param'>{param}</span>);
title.push(param);
}
currentIndex = match.index + fullMatch.length;