Skip to content

Commit

Permalink
add user agent tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kblok committed Dec 3, 2024
1 parent ef7077b commit c39891f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 20 deletions.
1 change: 1 addition & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
paths:
- '**.yml'
- '**.cs'
- '**.json'
- '**.csproj'
- '**.runsettings'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,21 +135,6 @@
"FAIL"
]
},
{
"comment": "This is part of organizing the webdriver bidi implementation, We will remove it one by one",
"testIdPattern": "[browser.spec] *Browser.userAgent*",
"platforms": [
"darwin",
"linux",
"win32"
],
"parameters": [
"webDriverBiDi"
],
"expectations": [
"FAIL"
]
},
{
"comment": "This is part of organizing the webdriver bidi implementation, We will remove it one by one",
"testIdPattern": "[navigation.spec] navigation Page.waitForNavigation*",
Expand Down
4 changes: 0 additions & 4 deletions lib/PuppeteerSharp.Tests/BrowserTests/UserAgentTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ namespace PuppeteerSharp.Tests.BrowserTests
{
public class UserAgentTests : PuppeteerBrowserBaseTest
{
public UserAgentTests() : base()
{
}

[Test, Retry(2), PuppeteerTest("browser.spec", "Browser.userAgent", "should include WebKit")]
public async Task ShouldIncludeWebKit()
{
Expand Down
2 changes: 1 addition & 1 deletion lib/PuppeteerSharp/Bidi/BidiBrowser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ private BidiBrowser(Core.Browser browserCore, LaunchOptions options, ILoggerFact
public override Task<string> GetVersionAsync() => Task.FromResult($"{BrowserName}/{BrowserVersion}");

/// <inheritdoc />
public override Task<string> GetUserAgentAsync() => throw new NotImplementedException();
public override Task<string> GetUserAgentAsync() => Task.FromResult(BrowserCore.Session.Info.Capabilities.UserAgent);

/// <inheritdoc />
public override void Disconnect() => throw new NotImplementedException();
Expand Down

0 comments on commit c39891f

Please sign in to comment.