-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dotnet] [bidi] Make ContinueWithAuthCommand closer to spec (breaking change) #15545
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the pattern!
Co-authored-by: Michael Render <[email protected]>
User description
Motivation and Context
Revisited
ContinueWithAuthCommand
to be closer with spec, fixes #15539.Also avoided nested types, opening the doors for static factory.
Types of changes
Checklist
PR Type
Enhancement, Tests
Description
Refactored
ContinueWithAuth
method to align with BiDi spec.Introduced new classes for clearer type differentiation.
Updated method overloads for better usability and clarity.
Adjusted test cases to validate the refactored implementation.
Changes walkthrough 📝
BiDiJsonSerializerContext.cs
Simplified serialization context for network commands
dotnet/src/webdriver/BiDi/Communication/Json/BiDiJsonSerializerContext.cs
JsonSerializable
type forDefault
action.ContinueWithAuthCommand.cs
Refactored `ContinueWithAuthCommand` with clearer abstractions
dotnet/src/webdriver/BiDi/Modules/Network/ContinueWithAuthCommand.cs
ContinueWithAuthNoCredentials
abstraction.default
andcancel
actions.NetworkModule.cs
Updated `ContinueWithAuthAsync` method overloads
dotnet/src/webdriver/BiDi/Modules/Network/NetworkModule.cs
ContinueWithAuthAsync
method overloads.Request.cs
Adjusted `Request` methods for refactored auth handling
dotnet/src/webdriver/BiDi/Modules/Network/Request.cs
ContinueWithAuthAsync
calls to use new options classes.NetworkTest.cs
Updated tests for refactored `ContinueWithAuth` implementation
dotnet/test/common/BiDi/Network/NetworkTest.cs
ContinueWithAuth
behavior for all scenarios.