Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: use path as key in div (#35317)
Simon Knott62821516bfe4
diff --git a/packages/html-reporter/src/testResultView.tsx b/packages/html-reporter/src/testResultView.tsxindex 0e3fb1002d..ff979ffd4f 100644--- a/packages/html-reporter/src/testResultView.tsx+++ b/packages/html-reporter/src/testResultView.tsx@@ -126,8 +126,8 @@ export const TestResultView: React.FC<{</AutoChip></Anchor>}{!!videos.length && <Anchor id='attachment-video'><AutoChip header='Videos' revealOnAnchorId='attachment-video'>- {videos.map((a, i) => <div key={`video-${i}`}>- <video key={a.path} controls> {/* key is required to ensure video is updated when the path changes */}+ {videos.map(a => <div key={a.path}>+ <video controls><source src={a.path} type={a.contentType}/></video><AttachmentLink attachment={a} result={result}></AttachmentLink>