File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
roles/tests-unit/files/FWO.Test Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -41,20 +41,20 @@ public async Task GeneratePdf()
4141 break ;
4242 case PlatformID . Unix :
4343 path = ChromeBinPathLinux ;
44- browserFetcher = new ( new BrowserFetcherOptions { Path = path , Platform = Platform . Linux , Browser = SupportedBrowser . Chrome } ) ;
44+ browserFetcher = new ( new BrowserFetcherOptions { Path = path , Platform = Platform . Linux , Browser = SupportedBrowser . ChromeHeadlessShell } ) ;
4545 break ;
4646 default :
4747 break ;
4848 }
4949
50- InstalledBrowser ? brw = browserFetcher . GetInstalledBrowsers ( ) . FirstOrDefault ( ) ?? await browserFetcher . DownloadAsync ( BrowserTag . Latest ) ;
50+ InstalledBrowser ? brw = browserFetcher . GetInstalledBrowsers ( ) . FirstOrDefault ( ) ;
5151
5252 Log . WriteInfo ( "Test Log" , $ "Browser: { brw . GetExecutablePath ( ) } ") ;
5353
5454 using IBrowser ? browser = await Puppeteer . LaunchAsync ( new LaunchOptions
5555 {
56- Headless = false ,
57- Browser = SupportedBrowser . Chrome
56+ Headless = true ,
57+ Browser = SupportedBrowser . ChromeHeadlessShell
5858 } ) ;
5959
6060 try
You can’t perform that action at this time.
0 commit comments