refactor(media): normalize inbound MediaType/MediaTypes defaults (#16233)

* refactor(media): normalize inbound media type defaults

* test(browser): fix Windows path expectation in file chooser hook
This commit is contained in:
Peter Steinberger 2026-02-14 15:18:19 +01:00 committed by GitHub
parent 00a0890889
commit 1a7e180e68
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -421,7 +421,8 @@ describe("browser control server", () => {
expect(pwMocks.armFileUploadViaPlaywright).toHaveBeenCalledWith({
cdpUrl: cdpBaseUrl,
targetId: "abcd1234",
paths: [path.join(DEFAULT_UPLOAD_DIR, "a.txt")],
// The server resolves paths (which adds a drive letter on Windows for `\\tmp\\...` style roots).
paths: [path.resolve(DEFAULT_UPLOAD_DIR, "a.txt")],
timeoutMs: 1234,
});