From b05bc3c0523d36b0ab0572eab160606659e80275 Mon Sep 17 00:00:00 2001 From: cmorten Date: Thu, 28 Dec 2023 21:23:38 +0000 Subject: [PATCH] fix: attempt different content type for windows --- src/attachRecording.ts | 6 +----- src/macOsVoiceOver.spec.ts | 1 - src/windowsNvda.spec.ts | 1 - 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/attachRecording.ts b/src/attachRecording.ts index 58ff3fd..0484213 100644 --- a/src/attachRecording.ts +++ b/src/attachRecording.ts @@ -3,18 +3,15 @@ import { basename } from "path"; import { test as playwrightTest } from "@playwright/test"; import { delay } from "./delay"; -const MP4 = "video/mp4"; const MOV = "video/quicktime"; const EXISTS_RETRIES = 20; const EXISTS_WAIT = 100; export const attachRecording = async ({ - osPlatform, path, test, }: { - osPlatform: NodeJS.Platform; path: string; test: typeof playwrightTest; }) => { @@ -42,7 +39,6 @@ export const attachRecording = async ({ } const name = basename(path); - const contentType = osPlatform === "darwin" ? MOV : MP4; - await test.info().attach(name, { contentType, path }); + await test.info().attach(name, { contentType: MOV, path }); }; diff --git a/src/macOsVoiceOver.spec.ts b/src/macOsVoiceOver.spec.ts index 3295f0a..777866f 100644 --- a/src/macOsVoiceOver.spec.ts +++ b/src/macOsVoiceOver.spec.ts @@ -214,7 +214,6 @@ const generateTestSuite = ({ try { await attachRecording({ - osPlatform, path: stopRecording?.(), test, }); diff --git a/src/windowsNvda.spec.ts b/src/windowsNvda.spec.ts index f6a52b5..f7b25ad 100644 --- a/src/windowsNvda.spec.ts +++ b/src/windowsNvda.spec.ts @@ -185,7 +185,6 @@ const generateTestSuite = ({ try { await attachRecording({ - osPlatform, path: stopRecording?.(), test, });