Monorepo for Aesthetic.Computer aesthetic.computer
at main 26 lines 617 B view raw
1#!/usr/bin/env node 2// test-panel-open.mjs - Test auto-opening the AC panel 3 4import { createCDP } from './cdp.mjs'; 5 6console.log('🧪 Testing AC panel auto-open...\n'); 7 8try { 9 const cdp = await createCDP({ 10 verbose: true, 11 ensurePanel: true 12 }); 13 14 console.log('\n✅ Successfully connected!'); 15 16 const info = await cdp.getPageInfo(); 17 console.log(`\n📄 Page Info:`); 18 console.log(` URL: ${info.url}`); 19 console.log(` Title: ${info.title}`); 20 console.log(` Has Bios: ${info.hasACBios}`); 21 22 cdp.close(); 23} catch (err) { 24 console.error(`\n❌ Error: ${err.message}`); 25 process.exit(1); 26}