Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(test): reformat File constructor call in dispatchFileDrop

Steven Enamakel31873464b021
diff --git a/app/test/e2e/helpers/element-helpers.ts b/app/test/e2e/helpers/element-helpers.ts
index 374fffac9c..916f7a6095 100644
--- a/app/test/e2e/helpers/element-helpers.ts
+++ b/app/test/e2e/helpers/element-helpers.ts
@@ -397,7 +397,9 @@ export async function dispatchFileDrop(
return browser.execute(
(element: HTMLElement, droppedFile: { name: string; type: string; contents: string }) => {
const dataTransfer = new DataTransfer();
- dataTransfer.items.add(new File([droppedFile.contents], droppedFile.name, { type: droppedFile.type }));
+ dataTransfer.items.add(
+ new File([droppedFile.contents], droppedFile.name, { type: droppedFile.type })
+ );
const dispatch = (type: 'dragover' | 'drop') => {
const event = new DragEvent(type, { bubbles: true, cancelable: true, dataTransfer });