Skip to content

Commit

Permalink
smaller repro
Browse files Browse the repository at this point in the history
  • Loading branch information
mxschmitt committed Jan 24, 2025
1 parent 5bf86a9 commit 0d4ec90
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Playwright.TestingHarnessTest/ExampleTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<string>("() => navigator.userAgent"));
if (BrowserName != "webkit")
throw new XunitException("Expected webkit but got: " + BrowserName);
}
}

0 comments on commit 0d4ec90

Please sign in to comment.