working companion prototype

This commit is contained in:
2025-11-24 23:32:36 +01:00
parent e7978024d7
commit e2bea9a126
175 changed files with 23227 additions and 3519 deletions

View File

@@ -130,7 +130,7 @@ describe('AutomationSession Entity', () => {
);
});
it('should stop at step 18 (safety checkpoint)', () => {
it('should stop at step 17 (safety checkpoint)', () => {
const session = AutomationSession.create({
sessionName: 'Test Race',
trackId: 'spa',
@@ -138,12 +138,12 @@ describe('AutomationSession Entity', () => {
});
session.start();
// Advance through all steps to 18
for (let i = 2; i <= 18; i++) {
// Advance through all steps to 17
for (let i = 2; i <= 17; i++) {
session.transitionToStep(StepId.create(i));
}
expect(session.currentStep.value).toBe(18);
expect(session.currentStep.value).toBe(17);
expect(session.state.isStoppedAtStep18()).toBe(true);
expect(session.completedAt).toBeDefined();
});
@@ -252,8 +252,8 @@ describe('AutomationSession Entity', () => {
});
session.start();
// Advance to step 18
for (let i = 2; i <= 18; i++) {
// Advance to step 17
for (let i = 2; i <= 17; i++) {
session.transitionToStep(StepId.create(i));
}
@@ -351,8 +351,8 @@ describe('AutomationSession Entity', () => {
});
session.start();
// Advance to step 18
for (let i = 2; i <= 18; i++) {
// Advance to step 17
for (let i = 2; i <= 17; i++) {
session.transitionToStep(StepId.create(i));
}