fix(provider-webdriver): an orientation refused by every route reports dispatched no

Merged
TH
2mo ago
+59-3

Summary

setWebDriverOrientation tries two routes and, when the driver refuses both as not implemented, threw a COMMAND_FAILED with attempts only: no reason, no dispatched. The router then stamped that failure dispatched: unknown although nothing reached the device. Found by cubic on #3090.

  • webdriver-transport.ts: the one owner of the refusal details, unsupportedRouteRefusal() (reason: webdriver_route_unsupported, dispatched: no), used by webdriverError and now by the orientation fallback's final error.
  • webdriver-orientation.ts: the every-route-refused error carries those details beside rotation and attempts.
  • Golden table: one row, webdriver.orientation.every-route-unsupported → no, driven in webdriver-orientation.test.ts (the owner map gains the webdriver.orientation. prefix). Mutation: dropping the spread fails the row and the existing both-endpoints test.

Part of #3069. +1 row (80).

Validation

webdriver-orientation.test.ts, webdriver-transport.test.ts, contracts/dispatch-disclosure.test.ts (40 tests), pnpm typecheck, check:layering, check:fallow --base 8c0edab4c7, oxfmt on the five files.