Release v2.16.6: fix slide animation controls
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile, web, pulse-signage-web) (push) Successful in 1m13s
Publish Docker Image / build-and-push-existing-registry (./build/Dockerfile.player, player, pulse-signage-player) (push) Successful in 36s

This commit is contained in:
lzstealth committed 2026-10-22 16:47:58 +01:00
1 parent 5b5d5da511
commit 03a27c8e25
8 files changed
+30 -5

No files matched your search

+5
View File
@@ -268,6 +268,7 @@ test('layout and animation modals use the same preview and properties column siz
assert.match(css, /\.slide-layout-body\s*\{[^}]*grid-template-columns:\s*minmax\(0,\s*1fr\)\s+21rem;/);
assert.match(css, /\.slide-animation-body\s*\{[^}]*grid-template-columns:\s*minmax\(0,\s*1fr\)\s+21rem;/);
assert.match(css, /\.slide-animation-body\s*\{[^}]*gap:\s*1\.25rem;/);
assert.match(css, /\.region-field-grid--animation\s+\[data-animation-preset\]\[hidden\]\s*\{\s*display:\s*none\s*!important;/);
assert.match(css, /\.slide-animation-preview-panel\s*\{[^}]*container-type:\s*size;[^}]*min-height:\s*0;/);
assert.match(css, /#slide-animation-preview\s*\{[^}]*height:\s*100%;/);
assert.match(css, /#slide-animation-preview \.slide-preview-stage\s*\{[^}]*width:\s*min\(100%,\s*calc\(100cqh\s*\*\s*var\(--slide-layout-ratio,/);
@@ -281,6 +282,10 @@ test('advanced animation section uses compact heading and card spacing', functio
});
test('shared animation controls round-trip advanced settings with template normalization', function () {
const animationPresets = require('../src/web/public/js/templates/animation-presets.js');
assert.ok(animationPresets.advanced.outro.some((preset) => preset.value === 'hinge'));
assert.ok(!animationPresets.advanced.attentionSeekers.some((preset) => preset.value === 'hinge'));
const context = { window: {} };
for (const file of ['templates/animation-presets.js', 'templates/template-designer-utils.js', 'shared/region-animation-controls.js']) {
vm.runInNewContext(fs.readFileSync(require.resolve('../src/web/public/js/' + file), 'utf8'), context);