Skip to content

Commit 59d26e7

Browse files
[~] Puppeteer arguments test
1 parent e358996 commit 59d26e7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ internal class HtmlToPdfTest
1818
private const string FilePath = "pdffile.pdf";
1919
private const string Html = "<html> <body> <h1>test</h1> <h2>test mit puppteer</h2> </body> </html>";
2020
private const string ChromeBinPathLinux = "/usr/local/bin";
21-
21+
2222

2323
[Test]
2424
public async Task GeneratePdf()
@@ -75,9 +75,7 @@ public async Task GeneratePdf()
7575
ExecutablePath = installedBrowser.GetExecutablePath(),
7676
Headless = true,
7777
DumpIO = isGitHubActions != null ? true : false, // Enables debug logs
78-
Args = isGitHubActions != null ?
79-
new[] { "--database=/tmp", "--no-sandbox", "--no-zygote" }
80-
: [] // No additional arguments locally
78+
Args = new[] { "--database=/tmp", "--no-sandbox", "--no-zygote" }
8179
});
8280

8381
try

0 commit comments

Comments
 (0)