docs(desktop): fix the README example and the physicalInput and placeholder lines (ENG-1533)
Merged
KD
3d ago+13+13+01234567890123456789-7-7-0123456789
What
Three desktop docs fixes, each one a place where following the docs on main fails or misleads:
- The
packages/desktopREADME's sign-in example declares theadacredential it fills. On main, the example failed withAUTH_CREDENTIAL_UNAVAILABLEat the password fill. - The reference says what
physicalInputturns on:app.open()brings the app forward, keys and typing go through the real keyboard, anddoubleTap,hover, and taps at a point become available. It used to say the option sends real input only when the accessibility API cannot perform an action. - The guide says macOS names a field with no label by its placeholder, so
getByRole('textbox', 'Username')orgetByLabel('Username')finds it, andgetByPlaceholderis not supported. It used to say such a field is found "by its placeholder", which reads as ifgetByPlaceholderworks.
Why
The README example is what a new user copies first, and it could not pass. The other two lines described behavior the engine does not have.
How it works
packages/desktop/README.md: the config gainscredentials.ada, read fromADA_PASSWORDas indocs/desktop.mdx, and the test fills both fields fromcredentials.user('ada').docs/reference/desktop.mdx,physicalInput: the summary matches the option's JSDoc and the guide.docs/desktop.mdx: the locator paragraph namesgetByRoleandgetByLabelfor a field with no label. The engine refusesgetByPlaceholderwithUNSUPPORTED_CAPABILITY.
Verified
Ran it locally: no - docs only.
pnpm docs:checkpasses.- Each claim was checked against the code on main:
physicalInput:app.open()brings the app forward, and keys go through the real keyboard (packages/desktop/src/surface.ts).getByPlaceholderis refused, andgetByLabelmatches the field's name.- The README's credentials block matches
docs/desktop.mdx.
- No screenshot of the rendered pages: the changes are single paragraphs and a code block.
š¤ Generated with Claude Code
Summary by CodeRabbit
- Documentation
- Clarified how to locate static text and unlabeled fields, including macOS placeholder naming and unsupported placeholder queries.
- Updated the
physicalInputdescription to explain its effects on app focus, keyboard input, and pointer interactions. - Revised the sign-in example to show retrieving and using credentials, with the password read from an environment variable.