Repository navigation
feat(options): add missing XCUITest capabilities - #2509
hoanle0126 wants to merge 2 commits into
Conversation
mykola-mokhnach
left a comment
There was a problem hiding this comment.
No blocking issues found. Capability names, value types and units match the appium-xcuitest-driver docs, and the new options follow the existing Supports*Option pattern. One minor inline note below.
| @SuppressWarnings("unchecked") | ||
| default Optional<List<String>> getIgnoredWebviewBundleIds() { | ||
| return Optional.ofNullable( | ||
| (List<String>) getCapability(IGNORED_WEBVIEW_BUNDLE_IDS_OPTION) |
There was a problem hiding this comment.
[minor] The driver docs say appium:ignoredWebviewBundleIds accepts an "Array (or JSON array)". If it is supplied as a JSON string, e.g. new XCUITestOptions(Map.of("appium:ignoredWebviewBundleIds", "[\"com.apple.amsengagementd\"]")), getIgnoredWebviewBundleIds() throws ClassCastException (String cannot be cast to List). Consider handling a String value by parsing it as a JSON array, or at least document that only List is supported. The copy-constructor test only covers the List form.
There was a problem hiding this comment.
Done in 7d87af46. Updated getIgnoredWebviewBundleIds() to parse JSON array strings into an unmodifiable string list and reject non-array or non-string values with IllegalArgumentException, with tests added in XCUITestOptionsParityTest.
Change list
Add typed option interfaces on
XCUITestOptionsfor activeappium-xcuitest-drivercapabilities that did not have getters and setters yet.Types of changes
Details
Added 16 option interfaces covering these capabilities:
Added unit tests covering default values, fluent chaining, capability serialization, and copy-constructor coercion.