@@ -24,7 +24,7 @@ async function runCheck() {
2424 }
2525 const content = await response . text ( )
2626 scripts . push ( { url, content } )
27- console . log ( `Captured script: ${ url } ` )
27+ console . log ( `Captured script: < ${ url } >. ` )
2828 } )
2929
3030 try {
@@ -48,7 +48,13 @@ async function runCheck() {
4848 }
4949
5050 await page . waitForLoadState ( 'load' )
51- console . log ( `Page loaded at ${ page . url ( ) } .` )
51+ console . log ( `Page loaded at <${ page . url ( ) } >.` )
52+
53+ console . log (
54+ `Navigating to the design file: <https://www.figma.com/design/${ process . env . FIGMA_FILE_KEY } >.`
55+ )
56+ await page . goto ( `https://www.figma.com/design/${ process . env . FIGMA_FILE_KEY } ` )
57+ console . log ( `Page loaded at <${ page . url ( ) } >.` )
5258
5359 let matched : string | null = null
5460 let rewritable = false
@@ -59,10 +65,10 @@ async function runCheck() {
5965 continue
6066 }
6167 matched = url
62- console . log ( `Matched script: ${ url } ` )
68+ console . log ( `Matched script: < ${ url } >. ` )
6369 if ( r ) {
6470 rewritable = true
65- console . log ( `Rewritable script: ${ url } ` )
71+ console . log ( `Rewritable script: < ${ url } >. ` )
6672 break
6773 }
6874 }
@@ -72,7 +78,7 @@ async function runCheck() {
7278 return false
7379 }
7480
75- console . log ( `✅ Matched script: ${ matched } ` )
81+ console . log ( `✅ Matched script: < ${ matched } >. ` )
7682
7783 if ( ! rewritable ) {
7884 console . log ( '❌ Rewrite pattern not found.' )
0 commit comments