Improve editor timeline and media UX (#14)
Co-authored-by: haixin.yang <haixin.yang@weimob.com>
This commit is contained in:
1 parent
a6b7a9e51b
commit
00c454dbb7
31 files changed
+981
-172
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { describe, expect, it } from "vitest";
|
||||
import { shouldShowStickerTrack } from "./timelineViewModel.js";
|
||||
|
||||
describe("sticker track visibility", () => {
|
||||
it("hides an empty sticker track even if it was previously selected", () => {
|
||||
expect(shouldShowStickerTrack({ stickerSegments: [] })).toBe(false);
|
||||
});
|
||||
|
||||
it("shows the sticker track for content and active sticker drags", () => {
|
||||
expect(shouldShowStickerTrack({ stickerSegments: [{ id: "one" }] })).toBe(true);
|
||||
expect(shouldShowStickerTrack({ assetDragPreview: { type: "sticker" } })).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user