fix: align the static fallback with the nightdrive scene

This commit is contained in:
2026-09-02 17:01:40 +03:00
parent 5fee894490
commit 0899b6b00f
4 changed files with 153 additions and 89 deletions

View File

@@ -62,6 +62,10 @@ describe('SceneCanvas', () => {
expect(sceneMocks.build).not.toHaveBeenCalled();
expect(wrapper.findAll('canvas')).toHaveLength(0);
expect(wrapper.get('img').attributes()).toMatchObject({ alt: '', width: '1600', height: '900' });
expect(wrapper.findAll('.journey-poster-composition > span')).toHaveLength(7);
expect(wrapper.find('.journey-poster__sun').exists()).toBe(true);
expect(wrapper.find('.journey-poster__road').exists()).toBe(true);
expect(wrapper.find('.journey-poster__car').exists()).toBe(true);
expect(wrapper.text()).toContain('A decorative night road behind the portfolio content.');
wrapper.unmount();
});