File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @phantom/synpress ' : patch
3
+ ---
4
+
5
+ Add debug
Original file line number Diff line number Diff line change @@ -307,6 +307,12 @@ module.exports = {
307
307
308
308
await playwright . switchToWindow ( PROVIDER ) ;
309
309
310
+ if ( process . env . DEBUG != null ) {
311
+ await playwright
312
+ . windows ( PROVIDER )
313
+ . on ( 'console' , msg => console . log ( msg . text ( ) ) ) ;
314
+ }
315
+
310
316
await playwright . windows ( PROVIDER ) . evaluate ( walletState => {
311
317
// eslint-disable-next-line no-undef
312
318
chrome . storage . local . set ( walletState ) ;
@@ -351,6 +357,12 @@ module.exports = {
351
357
352
358
await playwright . switchToWindow ( PROVIDER ) ;
353
359
360
+ if ( process . env . DEBUG != null ) {
361
+ await playwright
362
+ . windows ( PROVIDER )
363
+ . on ( 'console' , msg => console . log ( msg . text ( ) ) ) ;
364
+ }
365
+
354
366
const isImportButtonVisible = await playwright
355
367
. windows ( PROVIDER )
356
368
. locator ( firstTimeFlowPageElements . importWalletButton )
You can’t perform that action at this time.
0 commit comments