Skip to content

Commit 4a1a71d

Browse files
committed
docs(provider-webdriver): state the alert cell's absence, not a deleted denial
The cell's docblock described alert legs that this PR removes. It also sat stacked on top of the settings docblock, which had been orphaned off `settingsUnavailable` on main; the pair now reads one doc per const.
1 parent 5310c7f commit 4a1a71d

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

‎packages/provider-webdriver/src/platform-runtime.ts‎

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -249,21 +249,22 @@ const foldUnavailable = Object.freeze({
249249
} as const);
250250

251251
/**
252-
* The WebDriver interactor's own `setSetting` always throws unsupported (its capability map
253-
* declares `settings: unsupported`), so this cell is unavailable unconditionally rather than
254-
* gated by interactor reachability — the same shape `tvRemote` takes.
255-
*/
256-
/**
257-
* Same shape as `settings`: the WebDriver interactor's own alert legs always throw unsupported
258-
* (its capability map declares `alert: unsupported`), so this cell is unavailable unconditionally
259-
* rather than gated by interactor reachability.
252+
* The WebDriver interactor supplies no alert members at all: ADR 0019 keeps a stub that throws
253+
* `unsupported` out of an interactor, and the provider's capability map declares
254+
* `alert: unsupported`, so this cell is unavailable unconditionally rather than gated by
255+
* interactor reachability.
260256
*/
261257
const alertUnavailable = Object.freeze({
262258
available: false,
263259
reason: 'unsupported-provider-mode',
264260
hint: 'WebDriver provider runtimes do not expose native alert handling.',
265261
} as const);
266262

263+
/**
264+
* The WebDriver interactor's own `setSetting` always throws unsupported (its capability map
265+
* declares `settings: unsupported`), so this cell is unavailable unconditionally rather than
266+
* gated by interactor reachability — the same shape `tvRemote` takes.
267+
*/
267268
const settingsUnavailable = Object.freeze({
268269
available: false,
269270
reason: 'unsupported-provider-mode',

0 commit comments

Comments
 (0)