File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
roles/tests-unit/files/FWO.Test Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -20,9 +20,9 @@ public async Task GeneratePdf()
2020 bool isValidHtml = ReportBase . IsValidHTML ( GlobalConst . TestPDFHtmlTemplate ) ;
2121 ClassicAssert . IsTrue ( isValidHtml ) ;
2222
23- // string? sudoUser = Environment.GetEnvironmentVariable("SUDO_USER");
23+ string ? sudoUser = Environment . GetEnvironmentVariable ( "SUDO_USER" ) ;
2424
25- // bool isGitHubActions = sudoUser is not null && sudoUser.Equals("runner");
25+ bool isGitHubActions = sudoUser is not null && sudoUser . Equals ( "runner" ) ;
2626
2727 //if(isGitHubActions)
2828 //{
@@ -103,6 +103,8 @@ public async Task GeneratePdf()
103103 {
104104 ExecutablePath = latestInstalledBrowser . GetExecutablePath ( ) ,
105105 Headless = true ,
106+ DumpIO = isGitHubActions ,
107+ Args = isGitHubActions ? [ "--database=/tmp" , "--no-sandbox" ] : [ ]
106108 } ) ;
107109 }
108110 catch ( Exception )
You can’t perform that action at this time.
0 commit comments