test: lock journey lifecycle and static fallback

This commit is contained in:
2026-09-02 05:36:59 +03:00
parent 130ff2d8bb
commit a86767cdc6
11 changed files with 478 additions and 5 deletions

View File

@@ -21,6 +21,7 @@ const journey = toRef(props, 'journey');
const policy = toRef(props, 'policy');
const quality = toRef(props, 'quality');
const scene = useSceneController({ canvas, journey, policy, quality });
const sceneState = computed(() => scene.state.value);
const showCanvas = computed(() => (
clientReady.value
&& policy.value.allowSceneRequest
@@ -34,7 +35,7 @@ onMounted(() => { clientReady.value = true; });
<template>
<p id="journey-scene-description" class="visually-hidden">{{ sceneDescription }}</p>
<div class="journey-world" aria-hidden="true" :data-scene-state="scene.state">
<div class="journey-world" aria-hidden="true" :data-scene-state="sceneState">
<img class="journey-poster" alt="" width="1600" height="900">
<canvas v-if="showCanvas" ref="canvas" class="journey-canvas" aria-hidden="true" />
</div>