前端增加3:4选择
This commit is contained in:
1 parent
98c6127ef7
commit
b340fc7ad7
63 files changed
+51
-917
No files matched your search
@@ -4,6 +4,13 @@ import { describe, expect, it } from "vitest";
|
||||
const createStudioUrl = new URL("../components/create-studio.tsx", import.meta.url);
|
||||
|
||||
describe("create studio template interaction", () => {
|
||||
it("offers the shared 3:4 portrait preset in creation and template settings", async () => {
|
||||
const source = await readFile(createStudioUrl, "utf8");
|
||||
|
||||
expect(source).toContain('{ label: "3:4", width: 1728, height: 2304 }');
|
||||
expect(source.match(/imageSizePresets\.map/g)?.length || 0).toBeGreaterThanOrEqual(2);
|
||||
});
|
||||
|
||||
it("applies and clears templates without changing the selected creation mode", async () => {
|
||||
const source = await readFile(createStudioUrl, "utf8");
|
||||
const clearSelection = functionSource(source, "clearImageTemplateSelection", "applyTemplateToConsole");
|
||||
|
||||
Reference in new issue
Block a user