Skip to main content
Glama
test-exact-manual.js•2.61 kB
#!/usr/bin/env node /** * TASK-001: Test Exact Manual Replication * Replicates exactly what the user did manually */ import { chromium } from 'playwright'; async function testExactManualReplication() { console.log('🧪 TASK-001: Testing Exact Manual Replication...\n'); const WORKING_URL = "https://composer.euconquisto.com/#/embed/auth-with-token/pt_br/home/36c92686-c494-ec11-a22a-dc984041c95d/[JWT_TOKEN]"; let browser = null; try { // Step 1: Launch browser exactly as you would manually console.log('1ļøāƒ£ Launching browser (same way as manual test)...'); browser = await chromium.launch({ headless: false, timeout: 60000 }); // Step 2: Create a new page (same as manual new tab) console.log('2ļøāƒ£ Creating new page (like manual new tab)...'); const page = await browser.newPage(); // Step 3: Navigate to the working URL console.log('3ļøāƒ£ Navigating to working URL...'); console.log(` URL: ${WORKING_URL}`); const response = await page.goto(WORKING_URL, { waitUntil: 'domcontentloaded', timeout: 30000 }); console.log(` Response status: ${response.status()}`); // Step 4: Wait a moment like manual test console.log('4ļøāƒ£ Waiting 10 seconds (like manual test)...'); await page.waitForTimeout(10000); // Step 5: Check page content console.log('5ļøāƒ£ Checking page content...'); const title = await page.title(); const bodyText = await page.textContent('body'); const hasButtons = await page.locator('button').count(); console.log(` Page title: "${title}"`); console.log(` Body text length: ${bodyText?.length || 0} characters`); console.log(` Number of buttons: ${hasButtons}`); if (bodyText && bodyText.includes('You need to enable JavaScript')) { console.log(' āš ļø JavaScript not enabled message detected'); } // Step 6: Take screenshot await page.screenshot({ path: `manual-replication-test-${Date.now()}.png`, fullPage: true }); if (hasButtons > 0 || (bodyText && bodyText.length > 100 && !bodyText.includes('You need to enable JavaScript'))) { console.log('\nšŸŽ‰ SUCCESS: Page loaded with content (like manual test)!'); } else { console.log('\nāŒ FAILED: Page still blank (unlike manual test)'); } } catch (error) { console.error('āŒ Test failed:', error.message); } finally { if (browser) { await browser.close(); } } } testExactManualReplication().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