UserSyncInterface / debug_black_screen.mjs
AUXteam's picture
Upload folder using huggingface_hub
e6db76d verified
import { chromium } from 'playwright';
(async () => {
const browser = await chromium.launch();
const page = await browser.newPage();
page.on('console', msg => console.log('BROWSER LOG:', msg.text()));
page.on('pageerror', err => console.log('BROWSER ERROR:', err.message));
try {
console.log('Navigating to the app...');
await page.goto('https://auxteam-usersyncinterface.hf.space');
console.log('Waiting 1 second...');
await page.waitForTimeout(1000);
await page.screenshot({ path: 'verification/black_screen_1s.png' });
console.log('Waiting 3 seconds...');
await page.waitForTimeout(3000);
await page.screenshot({ path: 'verification/black_screen_4s.png' });
console.log('Waiting 5 more seconds...');
await page.waitForTimeout(5000);
await page.screenshot({ path: 'verification/black_screen_9s.png' });
const bodyContent = await page.evaluate(() => document.body.innerHTML);
console.log('Body content length:', bodyContent.length);
} catch (error) {
console.error('Verification failed:', error);
} finally {
await browser.close();
}
})();