fix: make nightdrive signage reliable and legible
This commit is contained in:
@@ -216,7 +216,13 @@ describe('scene controller lifecycle', () => {
|
||||
await controller.start();
|
||||
const input = journey({
|
||||
routeProgress: 0.25,
|
||||
sign: { targetId: 'selected-builds', phase: 'approach', progress: 0.2, opacity: 0.5 },
|
||||
sign: {
|
||||
targetId: 'selected-builds',
|
||||
phase: 'approach',
|
||||
progress: 0.2,
|
||||
opacity: 0.5,
|
||||
viewportProfile: 'wide',
|
||||
},
|
||||
});
|
||||
|
||||
controller.update(input);
|
||||
@@ -225,7 +231,10 @@ describe('scene controller lifecycle', () => {
|
||||
harness.scheduler.flushFrame(16);
|
||||
|
||||
expect(harness.generations[0]?.render).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ routeProgress: 0.25, sign: expect.objectContaining({ progress: 0.2 }) }),
|
||||
expect.objectContaining({
|
||||
routeProgress: 0.25,
|
||||
sign: expect.objectContaining({ progress: 0.2, viewportProfile: 'wide' }),
|
||||
}),
|
||||
16,
|
||||
);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user