This commit is contained in:
2025-11-26 17:03:29 +01:00
parent ff3528e5ef
commit fef75008d8
147 changed files with 112370 additions and 5162 deletions

View File

@@ -289,4 +289,21 @@ describe('StartAutomationSessionUseCase', () => {
expect(result.config.sessionName).toBe('Test & Race #1 (2025)');
});
});
describe('execute - step count verification', () => {
it('should verify automation flow has exactly 17 steps (not 18)', async () => {
// This test verifies that step 17 "Race Options" has been completely removed
// Step 17 "Race Options" does not exist in real iRacing and must not be in the code
// The old step 18 (Track Conditions) is now the new step 17 (final step)
// Import the adapter to check its totalSteps property
const { PlaywrightAutomationAdapter } = await import('../../../../packages/infrastructure/adapters/automation/PlaywrightAutomationAdapter');
// Create a temporary adapter instance to check totalSteps
const adapter = new PlaywrightAutomationAdapter({ mode: 'mock' });
// Verify totalSteps is 17 (not 18)
expect((adapter as any).totalSteps).toBe(17);
});
});
});