Refactor infra tests, clean E2E step suites, and fix TS in tests

This commit is contained in:
2025-11-30 10:58:49 +01:00
parent af14526ae2
commit f8a1fbeb50
43 changed files with 883 additions and 2159 deletions

View File

@@ -290,20 +290,4 @@ describe('StartAutomationSessionUseCase', () => {
});
});
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);
});
});
});