@@ -15,13 +15,15 @@ const SANDBOXES = [
1515 { id : 'o29j95wx9' , root : '#app' } ,
1616 { id : 'k3q1zjjml5' , root : '#app' } ,
1717 'github/reactjs/redux/tree/master/examples/real-world' ,
18- 'github/CompuIves/codesandbox-presentation' ,
18+ { id : 'github/CompuIves/codesandbox-presentation' , timeout : 60000 } ,
19+ 'lp5rjr0z4z' ,
1920] ;
2021
2122SANDBOXES . forEach ( sandbox => {
2223 const id = sandbox . id || sandbox ;
2324 const root = sandbox . root || '#root' ;
2425 const threshold = sandbox . threshold || 0.01 ;
26+ const timeout = sandbox . timeout || 30000 ;
2527 let browser = puppeteer . launch ( {
2628 args : [ '--no-sandbox' , '--disable-setuid-sandbox' ] ,
2729 } ) ;
@@ -37,7 +39,7 @@ SANDBOXES.forEach(sandbox => {
3739 browser = await browser ;
3840 const page = await browser . newPage ( ) ;
3941 await page . goto ( 'http://localhost:3001/#' + id ) ;
40- await page . waitForSelector ( root , { timeout : 45000 } ) ;
42+ await page . waitForSelector ( root , { timeout } ) ;
4143 await page . waitFor ( 2000 ) ;
4244
4345 // const html = await page.evaluate(() => document.body.innerHTML);
0 commit comments