docs(pt): bring eight reference pages back in line with English after #2448

Merged
ER
3d ago
+561-1323

What and why

#2448 trimmed the English reference pages: it removed implementation detail and the JSDoc from their declarations. This brings eight pt reference pages back in line with the current English pages.

  • reference/mobile and reference/test: rebuilt section by section, 1755 to 1520 lines and 1884 to 1541 lines (English has 1476 and 1499).
  • reference/expect, reporters, runner, security, request, and app: what English cut is gone, and what it added is in, including the console output and report.json sections in reporters, the pressRemote errors in mobile, and the TestFixtures table in test.
  • Every code block matches English byte for byte, so the old translated JSDoc comments are gone.
  • The new descriptions are translated.
  • After merging main, reference/mobile also translates #2241: the link row of the roles table now names React Native's role="link" on Android, and two new paragraphs cover how Android names a Text link and a description in another language.
  • docs/pt/README.md: seven glossary rows, among them "sobrescrita" for overriding a fixture (as pt/fixtures has it), "deter" for a device another session holds, and "Campo, Descrição" for table headers.

Issue

Part of #1890

Verified

Ran it locally: yes

  • Code blocks, inline code spans, link targets, #anchors, ids, and component tags match English in the same order on all eight pages. On reference/request, the per-page comparison flags the double-backtick span request.get(`${app.baseUrl}/api/orders`); a per-line span diff shows the spans identical. The exception: 3 links into the pt reference/config, cli, errors, or agent pages point at the page without English's anchor, since those pages lack the section until they catch up with English.
  • The six checks behind pnpm docs:check exit 0, and the translation check reports nothing for these pages.
  • No em or en dashes, no repeated line tails, and no keywords frontmatter.
  • Three fresh-context reviews found no wrong fact. They caught "substituição" for a fixture override (it reads as replacing the fixture), "detidos" for held devices (it reads as arrested), a "Se uma gravação…" definition that read as an unfinished condition, an ambiguous pronoun in the abandoned-setup note, and a few wording nits. All are fixed.

Summary by CodeRabbit

  • Documentation
    • Updated Portuguese reference guides for mobile testing, assertions, reporters, requests, the runner, security, and the test API.
    • Clarified device selection and platform-specific behavior, recording timestamps, screenshot options, assertion timeouts, report contents, and request errors.
    • Revised guidance on hosted sessions, test hooks, fixture scopes and overrides, and security behavior.
    • Updated glossary terms and documented Electron engine exports, fixture fields, and deprecated APIs.