Skip to content

Commit 075d57f

Browse files
.
1 parent 5abbd0f commit 075d57f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

roles/tests-unit/files/FWO.Test/HtmlToPdfTest.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)