Refactor infra tests, clean E2E step suites, and fix TS in tests
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user