@@ -600,3 +600,86 @@ test('should pass fixture defaults to tests', async ({ runInlineTest }) => {
600
600
expect ( result . exitCode ) . toBe ( 0 ) ;
601
601
expect ( result . passed ) . toBe ( 1 ) ;
602
602
} ) ;
603
+
604
+ test ( 'should not throw with many fixtures set to undefined' , async ( { runInlineTest } , testInfo ) => {
605
+ const result = await runInlineTest ( {
606
+ 'playwright.config.ts' : `
607
+ module.exports = { use: {
608
+ headless: undefined,
609
+ channel: undefined,
610
+ launchOptions: undefined,
611
+ connectOptions: undefined,
612
+ screenshot: undefined,
613
+ video: undefined,
614
+ trace: undefined,
615
+ acceptDownloads: undefined,
616
+ bypassCSP: undefined,
617
+ colorScheme: undefined,
618
+ deviceScaleFactor: undefined,
619
+ extraHTTPHeaders: undefined,
620
+ geolocation: undefined,
621
+ hasTouch: undefined,
622
+ httpCredentials: undefined,
623
+ ignoreHTTPSErrors: undefined,
624
+ isMobile: undefined,
625
+ javaScriptEnabled: undefined,
626
+ locale: undefined,
627
+ offline: undefined,
628
+ permissions: undefined,
629
+ proxy: undefined,
630
+ storageState: undefined,
631
+ timezoneId: undefined,
632
+ userAgent: undefined,
633
+ viewport: undefined,
634
+ actionTimeout: undefined,
635
+ testIdAttribute: undefined,
636
+ navigationTimeout: undefined,
637
+ baseURL: undefined,
638
+ serviceWorkers: undefined,
639
+ contextOptions: undefined,
640
+ } };
641
+ ` ,
642
+ 'a.spec.ts' : `
643
+ const { test } = pwt;
644
+ test.use({
645
+ headless: undefined,
646
+ channel: undefined,
647
+ launchOptions: undefined,
648
+ connectOptions: undefined,
649
+ screenshot: undefined,
650
+ video: undefined,
651
+ trace: undefined,
652
+ acceptDownloads: undefined,
653
+ bypassCSP: undefined,
654
+ colorScheme: undefined,
655
+ deviceScaleFactor: undefined,
656
+ extraHTTPHeaders: undefined,
657
+ geolocation: undefined,
658
+ hasTouch: undefined,
659
+ httpCredentials: undefined,
660
+ ignoreHTTPSErrors: undefined,
661
+ isMobile: undefined,
662
+ javaScriptEnabled: undefined,
663
+ locale: undefined,
664
+ offline: undefined,
665
+ permissions: undefined,
666
+ proxy: undefined,
667
+ storageState: undefined,
668
+ timezoneId: undefined,
669
+ userAgent: undefined,
670
+ viewport: undefined,
671
+ actionTimeout: undefined,
672
+ testIdAttribute: undefined,
673
+ navigationTimeout: undefined,
674
+ baseURL: undefined,
675
+ serviceWorkers: undefined,
676
+ contextOptions: undefined,
677
+ });
678
+ test('passes', async ({ page }) => {
679
+ });
680
+ ` ,
681
+ } , { workers : 1 } ) ;
682
+
683
+ expect ( result . exitCode ) . toBe ( 0 ) ;
684
+ expect ( result . passed ) . toBe ( 1 ) ;
685
+ } ) ;
0 commit comments