Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

Fix test IDs and WebSocket typing

Abi Rajad04c54c67d49
diff --git a/frontend/src/components/unified-input/tabs/UploadTab.tsx b/frontend/src/components/unified-input/tabs/UploadTab.tsx
index 2e843e09..f967b8c2 100644
--- a/frontend/src/components/unified-input/tabs/UploadTab.tsx
+++ b/frontend/src/components/unified-input/tabs/UploadTab.tsx
@@ -184,7 +184,7 @@ function UploadTab({ doCreate }: Props) {
<div className="flex flex-col items-center gap-6">
{screenRecorderState === ScreenRecorderState.INITIAL && !hasUploadedFile && (
<div {...getRootProps({ style })} data-testid="upload-dropzone">
- <input {...getInputProps({ "data-testid": "upload-input" })} />
+ <input data-testid="upload-input" {...getInputProps()} />
<div className="flex flex-col items-center gap-3">
<div className="w-16 h-16 rounded-full bg-gray-100 flex items-center justify-center">
<svg
diff --git a/frontend/src/tests/qa.test.ts b/frontend/src/tests/qa.test.ts
index bd90a375..1fbe3991 100644
--- a/frontend/src/tests/qa.test.ts
+++ b/frontend/src/tests/qa.test.ts
@@ -496,6 +496,6 @@ async function installMockWebSocket(page: Page) {
}
}
- window.WebSocket = MockWebSocket;
+ window.WebSocket = MockWebSocket as unknown as typeof WebSocket;
});
}