diff --git a/src/Playwright.TestingHarnessTest/ExampleTests.cs b/src/Playwright.TestingHarnessTest/ExampleTests.cs index 1b8125838..9c646d26f 100644 --- a/src/Playwright.TestingHarnessTest/ExampleTests.cs +++ b/src/Playwright.TestingHarnessTest/ExampleTests.cs @@ -22,8 +22,7 @@ public xunitv3basicspectsshouldbeabletosetthebrowserviatherunsettingsfile(ITestO public async Task Test() { await Page.GotoAsync("about:blank"); - output.WriteLine("BrowserName: " + BrowserName); - output.WriteLine("BrowserType: " + BrowserType.Name); - output.WriteLine("User-Agent: " + await Page.EvaluateAsync("() => navigator.userAgent")); + if (BrowserName != "webkit") + throw new XunitException("Expected webkit but got: " + BrowserName); } }