From 9fd4e870f3abb431366a9fc84d6af321b8d04901 Mon Sep 17 00:00:00 2001 From: KoalaDev <6156589+Shik3i@users.noreply.github.com> Date: Sun, 12 Jul 2026 04:34:36 +0200 Subject: [PATCH] Update theme test after film bird removal The test still required 4 foreground film birds, but commit 16cb138 deliberately removed them all; now it guards against remnants instead. Co-Authored-By: Claude Fable 5 --- scripts/test-website-theme.mjs | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/scripts/test-website-theme.mjs b/scripts/test-website-theme.mjs index 607330f..0491bcf 100644 --- a/scripts/test-website-theme.mjs +++ b/scripts/test-website-theme.mjs @@ -55,15 +55,9 @@ for (const [file, source] of runtimeCssActivation) { } } -const heroBirds = template.match(/class="film-hero-bird"/g) || []; -const leftWings = template.match(/class="film-bird-wing film-bird-wing-left"/g) || []; -const rightWings = template.match(/class="film-bird-wing film-bird-wing-right"/g) || []; -if (heroBirds.length !== 4 || leftWings.length !== heroBirds.length || rightWings.length !== heroBirds.length) { - throw new Error('Every foreground film bird must have independently animated left and right wings'); -} -if (!/\.film-hero-bird-drift\s*\{[^}]*animation:\s*filmBirdGlide/s.test(demoCss) || - !/\.film-bird-wing\s*\{[^}]*animation:\s*filmWingFlap/s.test(demoCss)) { - throw new Error('Foreground film birds must glide and flap without waiting for video playback'); +// Film birds were removed entirely (commit 16cb138); guard against remnants +if (/film-hero-bird|film-bird-wing|film-birds/.test(template) || /filmBirdGlide|filmWingFlap/.test(demoCss)) { + throw new Error('Film birds were removed from the demo mockups; no bird markup or animations may remain'); } const gettingStartedLightSurfaces = [