Skip to main content
Glama
test-final-solution.js1.96 kB
#!/usr/bin/env node /** * TASK-001: Final Solution Test * Tests the complete solution with corrected URL and simplified browser */ import { ComposerClient } from './dist/lib/composition-lifecycle.js'; async function testFinalSolution() { console.log('🎯 TASK-001: Final Solution Test\n'); const client = new ComposerClient(); try { console.log('1️⃣ Initializing browser with simplified configuration...'); await client.initialize(); console.log(' ✅ Browser initialized'); console.log('2️⃣ Navigating to Composer with correct [JWT_TOKEN] URL...'); await client.navigateToComposer(); console.log(' ✅ Navigation completed'); console.log('3️⃣ Testing "NOVA COMPOSIÇÃO" button interaction...'); const result = await client.createNewComposition(); console.log('\n📋 Final Test Results:'); console.log(JSON.stringify(result, null, 2)); if (result.success) { console.log('\n🎉 TASK-001 COMPLETE: MCP server DOM interaction working!'); console.log(' ✅ Browser automation functional'); console.log(' ✅ Composer loads despite automation detection'); console.log(' ✅ DOM selectors find and click buttons'); console.log(' ✅ Composition creation workflow operational'); } else { console.log('\n⚠️ Partial success - needs refinement'); console.log(' ✅ Browser and navigation working'); console.log(' ❓ Button interaction needs adjustment'); } } catch (error) { console.error('❌ Test failed:', error.message); } finally { // Keep browser open for inspection console.log('\n⏳ Browser remains open for inspection...'); console.log(' Check the browser window to see current state'); console.log(' Press Ctrl+C to close when done'); // Wait indefinitely await new Promise(() => {}); } } testFinalSolution().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