若干更新迭代
This commit is contained in:
1 parent
deb9cc5bcf
commit
4ac786aafb
64 files changed
+3251
-291
No files matched your search
@@ -46,13 +46,14 @@ describe("create studio image paste wiring", () => {
|
||||
.toBeLessThan(flow.indexOf("setMaterials(next)"));
|
||||
});
|
||||
|
||||
it("routes special modes through existing source limits and adds references only for basic image or video", async () => {
|
||||
it("validates video paste without replacing or truncating selected materials", async () => {
|
||||
const { flow } = await pasteFlowSource();
|
||||
expect(flow).toContain('imageCreationMode === "interactive" ? "append" : "single"');
|
||||
expect(flow).toContain("isSeedreamLayerInputFile(files[0])");
|
||||
expect(flow).toContain("if (selectedSeedreamSource && !window.confirm(");
|
||||
expect(flow).toContain("options.maxFiles = 1");
|
||||
expect(flow).toContain("options.replaceAll = true");
|
||||
expect(flow).toContain("videoMaterialError(videoSelection, [...materials");
|
||||
expect(flow).toContain("videoMaterialError(videoSelection, next)");
|
||||
expect(flow).not.toContain("options.replaceAll = true");
|
||||
expect(flow).toContain("options.maxFiles = remaining");
|
||||
expect(flow).toContain("insertReferences: !specializedImageMode");
|
||||
expect(flow).toContain('const labels = addedMaterials.map((material) => material.label || "");');
|
||||
|
||||
Reference in new issue
Block a user