- Create complete integration test system (test-integration.js) - Add UI/UX interaction testing with real event simulation (test-uiux-integration.js) - Implement end-to-end scenario testing for user journeys (test-e2e-scenarios.js) - Add console testing commands for rapid development testing (test-console-commands.js) - Create comprehensive test guide documentation (TEST-GUIDE.md) - Integrate test buttons in debug panel (F12 → 3 test types) - Add vocabulary modal two-progress-bar system integration - Fix flashcard retry system for "don't know" cards - Update IntelligentSequencer for task distribution validation 🧪 Testing Coverage: - 35+ integration tests (architecture/modules) - 20+ UI/UX tests (real user interactions) - 5 E2E scenarios (complete user journeys) - Console commands for rapid testing - Debug panel integration 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
37 lines
1.6 KiB
JavaScript
37 lines
1.6 KiB
JavaScript
// Compare LLMValidator vs direct IAEngine instances
|
||
import { default as IAEngine } from './src/DRS/services/IAEngine.js';
|
||
import { default as LLMValidator } from './src/DRS/services/LLMValidator.js';
|
||
|
||
async function compareInstances() {
|
||
console.log('🔧 Comparing LLMValidator vs direct IAEngine...');
|
||
|
||
// Test 1: Direct IAEngine (works)
|
||
console.log('\n1️⃣ Testing direct IAEngine...');
|
||
const directEngine = new IAEngine();
|
||
await new Promise(resolve => setTimeout(resolve, 1000));
|
||
|
||
console.log('Direct IAEngine keys:', Object.keys(directEngine.apiKeys || {}));
|
||
console.log('Direct DeepSeek key exists:', !!directEngine.apiKeys?.DEEPSEEK_API_KEY);
|
||
|
||
// Test 2: LLMValidator's IAEngine
|
||
console.log('\n2️⃣ Testing LLMValidator IAEngine...');
|
||
const validator = new LLMValidator();
|
||
await new Promise(resolve => setTimeout(resolve, 1000)); // Wait for initialization
|
||
|
||
console.log('LLMValidator engine keys:', Object.keys(validator.iaEngine.apiKeys || {}));
|
||
console.log('LLMValidator DeepSeek key exists:', !!validator.iaEngine.apiKeys?.DEEPSEEK_API_KEY);
|
||
console.log('LLMValidator mock mode?:', validator.iaEngine.apiKeys?.mock);
|
||
|
||
// Test actual calls
|
||
try {
|
||
console.log('\n3️⃣ Testing direct call via LLMValidator IAEngine...');
|
||
const result = await validator.iaEngine.validateEducationalContent('Test', {
|
||
preferredProvider: 'deepseek'
|
||
});
|
||
console.log('✅ LLMValidator IAEngine direct call works:', result.provider);
|
||
} catch (error) {
|
||
console.log('❌ LLMValidator IAEngine direct call failed:', error.message);
|
||
}
|
||
}
|
||
|
||
compareInstances().catch(console.error); |