From 62ff4a234c0675bd8ddd94d10ded565a037d1fa5 Mon Sep 17 00:00:00 2001 From: filzrev <103790468+filzrev@users.noreply.github.com> Date: Thu, 28 Nov 2024 13:01:58 +0900 Subject: [PATCH] chore: modify chromium install options --- src/Docfx.App/PdfBuilder.cs | 2 +- test/docfx.Snapshot.Tests/PercyTest.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Docfx.App/PdfBuilder.cs b/src/Docfx.App/PdfBuilder.cs index a1c4396f60f..29013abd899 100644 --- a/src/Docfx.App/PdfBuilder.cs +++ b/src/Docfx.App/PdfBuilder.cs @@ -67,7 +67,7 @@ public static async Task CreatePdf(string outputFolder) PlaywrightHelper.EnsurePlaywrightNodeJsPath(); - Program.Main(["install", "chromium"]); + Program.Main(["install", "chromium", "--only-shell"]); var builder = WebApplication.CreateBuilder(); builder.Logging.ClearProviders(); diff --git a/test/docfx.Snapshot.Tests/PercyTest.cs b/test/docfx.Snapshot.Tests/PercyTest.cs index 7d7449b9a36..9528ebe1ed6 100644 --- a/test/docfx.Snapshot.Tests/PercyTest.cs +++ b/test/docfx.Snapshot.Tests/PercyTest.cs @@ -39,7 +39,7 @@ public PercyFactAttribute() static PercyTest() { PlaywrightHelper.EnsurePlaywrightNodeJsPath(); - Microsoft.Playwright.Program.Main(["install", "chromium"]); + Microsoft.Playwright.Program.Main(["install", "chromium", "--only-shell"]); } [PercyFact]