mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-11 14:31:42 +00:00
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:
committed by
GitHub
parent
00a0890889
commit
1a7e180e68
@@ -421,7 +421,8 @@ describe("browser control server", () => {
|
|||||||
expect(pwMocks.armFileUploadViaPlaywright).toHaveBeenCalledWith({
|
expect(pwMocks.armFileUploadViaPlaywright).toHaveBeenCalledWith({
|
||||||
cdpUrl: cdpBaseUrl,
|
cdpUrl: cdpBaseUrl,
|
||||||
targetId: "abcd1234",
|
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,
|
timeoutMs: 1234,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user