Skip to main content
Glama
test-enhanced-spa.jsโ€ข1.76 kB
#!/usr/bin/env node /** * TASK-001: Test Enhanced SPA Loading * Verifies the improved browser automation works with EuConquisto Composer */ import { ComposerClient } from './dist/lib/composition-lifecycle.js'; async function testEnhancedSPALoading() { console.log('๐Ÿงช TASK-001: Testing Enhanced SPA Loading...\n'); const client = new ComposerClient(); try { // Test 1: Initialize browser with enhanced settings console.log('1๏ธโƒฃ Testing enhanced browser initialization...'); await client.initialize(); console.log('โœ… Enhanced browser initialized successfully\n'); // Test 2: Navigate with progressive SPA loading console.log('2๏ธโƒฃ Testing enhanced navigation with SPA handling...'); await client.navigateToComposer(); console.log('โœ… Enhanced navigation completed\n'); // Test 3: Try to find DOM elements that should now be available console.log('3๏ธโƒฃ Testing DOM element detection after SPA loading...'); const result = await client.createNewComposition(); console.log('๐Ÿ“‹ Enhanced SPA Test Results:'); console.log(` Success: ${result.success}`); console.log(` Message: ${result.message}`); if (result.compositionId) { console.log(` Composition ID: ${result.compositionId}`); } if (result.success) { console.log('\n๐ŸŽ‰ TASK-001 SUCCESS: Enhanced SPA loading resolved DOM selector issues!'); } else { console.log('\nโš ๏ธ TASK-001 PARTIAL: Enhanced SPA loading improved but needs more work'); } } catch (error) { console.error('โŒ TASK-001 FAILED: Enhanced SPA loading test failed:', error.message); } finally { await client.close(); } } testEnhancedSPALoading().catch(console.error);

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rkm097git/euconquisto-composer-mcp-poc'

If you have feedback or need assistance with the MCP directory API, please join our Discord server