From ac89f6762dfe2244afb869a94e1f2c3a498060a0 Mon Sep 17 00:00:00 2001 From: th Date: Tue, 21 Apr 2026 19:47:33 +0200 Subject: [PATCH] tests: flip the dropzone smoke test to assert the new gated behavior The old test expected `.clip-track-dropzone` to always be present. The dropzone is now hidden until the clip library has at least one clip, so the blank smoke scene must not contain it. Co-Authored-By: Claude Opus 4.7 (1M context) --- src/devtools/tests.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/devtools/tests.ts b/src/devtools/tests.ts index 084b11e..4e3ce62 100644 --- a/src/devtools/tests.ts +++ b/src/devtools/tests.ts @@ -1509,9 +1509,13 @@ export function registerAllTests(): void { expect(brand).toBeTruthy() }) - test('timeline has new-track dropzone', () => { + test('new-track dropzone is hidden while the clip library is empty', () => { + // Regression: the dropzone used to always render and show "Drop a + // clip here" even when the library had no clips. Timeline now gates + // `.clip-track-dropzone` behind `scene.clips.length > 0`. The live + // smoke scene starts blank, so the dropzone must be absent. const dz = document.querySelector('.clip-track-dropzone') - expect(dz).toBeTruthy() + expect(dz).toBeNull() }) test('timeline has add-group button', () => {