文案(下载):重写下载面板、后台任务、下载盘与手动下载文案
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
1 parent
5aa19a9a9b
commit
3853a65754
7 files changed
+30
-30
No files matched your search
@@ -85,7 +85,7 @@ describe("保存目录", () => {
|
||||
expect(custom).not.toHaveProperty("downloaderInstanceId");
|
||||
});
|
||||
|
||||
it("界面:并排两个下拉,下方写明将保存到哪;自定义时展开输入框", () => {
|
||||
it("界面:并排两个下拉,下方写明保存到哪;自定义时展开输入框", () => {
|
||||
const props = {
|
||||
formId: "f",
|
||||
instances: paths.instances,
|
||||
@@ -101,10 +101,10 @@ describe("保存目录", () => {
|
||||
const html = render(createElement(SaveTargetFields, props));
|
||||
expect(html).toContain("下载器");
|
||||
expect(html).toContain("自动:qb-main");
|
||||
expect(html).toContain("将保存到:/data/downloads(本机 /mnt/dl)");
|
||||
expect(html).toContain("保存到:/data/downloads(本机 /mnt/dl)");
|
||||
expect(html).not.toContain("自定义路径</label>");
|
||||
const custom = render(createElement(SaveTargetFields, { ...props, dir: CUSTOM_DIR, custom: "/x" }));
|
||||
expect(custom).toContain("将保存到:/x");
|
||||
expect(custom).toContain("保存到:/x");
|
||||
expect(custom).toContain('id="f-custom"');
|
||||
const none = render(
|
||||
createElement(SaveTargetFields, { ...props, instances: [], autoInstanceId: null, target: null }),
|
||||
@@ -136,7 +136,7 @@ describe("作品身份", () => {
|
||||
expect(html).toContain("未识别");
|
||||
expect(html).toContain("TMDB 编号");
|
||||
expect(html).toContain('id="f-tmdb"');
|
||||
expect(html).toContain("暂未识别到作品");
|
||||
expect(html).toContain("没识别出作品");
|
||||
});
|
||||
|
||||
it("已识别:折叠只显示当前作品", () => {
|
||||
|
||||
Reference in new issue
Block a user