[java][BiDi] emulation: allow passing null to GeolocationOverride#16594
[java][BiDi] emulation: allow passing null to GeolocationOverride#16594Delta456 merged 8 commits intoSeleniumHQ:trunkfrom
Conversation
PR Compliance Guide 🔍(Compliance updated until commit cff7bdc)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit 7b89898
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
User description
🔗 Related Issues
💥 What does this PR do?
Allows passing
nulltosetGeolocationOverride's coord parameter as per the W3C spec - https://w3c.github.io/webdriver-bidi/#command-emulation-setGeolocationOverrideUses
assertThatinstead ofassert🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Bug fix, Tests
Description
Allow passing null to GeolocationCoordinates parameter per W3C spec
Replace legacy assert statements with assertThat for better test clarity
Add test case for resetting geolocation override with null coordinates
Diagram Walkthrough
File Walkthrough
SetGeolocationOverrideParameters.java
Allow null coordinates in geolocation overridejava/src/org/openqa/selenium/bidi/emulation/SetGeolocationOverrideParameters.java
handling
SetGeolocationOverrideTest.java
Modernize assertions and add null coordinates testjava/test/org/openqa/selenium/bidi/emulation/SetGeolocationOverrideTest.java
assertions
canSetGeolocationOverrideWithCoordinatesInContext test
canSetGeolocationOverrideWithMultipleUserContexts test
verify null coordinate handling