We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dd7ae3 commit 7d08c77Copy full SHA for 7d08c77
Playwright.NUnit.Testing/Base/TestBase.cs
@@ -16,10 +16,13 @@ public async Task OneTimeSetUpAsync() {
16
_pw = await Microsoft.Playwright.Playwright.CreateAsync();
17
18
var launch = new BrowserTypeLaunchOptions {
19
- Headless = true, // flip to false to watch the run
20
- Args = ["--no-sandbox"] // helpful in some CI agents
+ Headless = true
21
};
22
+ if (_kind == BrowserKind.Chromium) {
23
+ launch.Args = ["--no-sandbox"];
24
+ }
25
+
26
_browser = _kind switch {
27
BrowserKind.Chromium => await _pw.Chromium.LaunchAsync(launch),
28
BrowserKind.Firefox => await _pw.Firefox.LaunchAsync(launch),
0 commit comments