File size: 1,132 Bytes
e6db76d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36

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();
  }
})();