mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-03-19 07:33:50 +08:00
test(e2e): unify E2E CI command and align preview URL encoding (#719)
* test(e2e): follow-up fixes for post-merge copilot review feedback * test(e2e): guard E2E_MAX_PREVIEW_MS against sub-second values * test(e2e): align preview URL encoding and docs
This commit is contained in:
@@ -7,7 +7,7 @@ function b64(v: string): string {
|
||||
}
|
||||
|
||||
async function openPreview(request: any, fileUrl: string) {
|
||||
const encoded = b64(fileUrl);
|
||||
const encoded = encodeURIComponent(b64(fileUrl));
|
||||
return request.get(`/onlinePreview?url=${encoded}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user