Skip to content

docs(pt): sync 8 pages with English - #2604

Open
eriveltonelias wants to merge 1 commit into
e2e-inc:mainfrom
eriveltonelias:docs-pt-sync-2026-12-02
Open

eriveltonelias wants to merge 1 commit into
e2e-inc:mainfrom
eriveltonelias:docs-pt-sync-2026-12-02

Conversation

@eriveltonelias

@eriveltonelias eriveltonelias commented Dec 2, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Eight pt pages had fallen behind their English pages:

  • ci/codemagic: English rewrote the guide (Mac instance, the sample repository, a release workflow that publishes only what passed, the agent setup prompt, the model key and replay notes). The pt page is retranslated from the current English.
  • services: the new intro, signal on start and stop, a new "Tempos limite e cancelamento" section, and the failure table turned into a list.
  • reference/electron: app.back() waits for the window and fails with NOT_ACTIONABLE or ACTION_MAY_HAVE_COMMITTED, the evaluate arg rules, window order, and the window() errors.
  • reference/desktop and desktop: closeApp() now ends the app and its processes without running quit handlers, and press fails when the app has no window. The pt pages say "finalizar" for ending the app and keep "encerrar" for Quit.
  • core: the new video card.
  • reference/test: worker fixtures that name an overridden worker fixture get one instance per test.
  • cache: steps whose unique() path contains | or }}, or ends in }, run live with no-entry.
  • README.md: two glossary rows (finalizar for ending an app, grupo de variáveis).

Issue

Part of #1890

Verified

Ran it locally: yes.

  • cmp.mjs prints ok for every page. The DIFFs it prints for ci/codemagic (translated prose inside the setup prompt) and reference/desktop (a double-backtick span) are artifacts of the script; a per-span comparison shows the code spans match English in order.
  • rep-check.ts prints [] for every changed page, and the added prose has no em or en dashes.
  • From docs/: check-docs-examples, check-docs-package-managers, check-docs-anchors, check-docs-logos, check-docs-mdx, and check-docs-translations all exit 0 with no warning for these pages.
  • A fresh-context review found no critical issues. I applied what it caught: one leftover "Encerre o app com desktop.closeApp()" in reference/desktop now says "Finalize", "release anterior" in cache became "versão anterior", and three small wording fixes in reference/electron, ci/codemagic, and services.

View guided diff

Summary by CodeRabbit

  • Documentation
    • Expanded the Portuguese Codemagic guide with separate iOS and Android test workflows, release steps, artifact reporting, and guidance on cached replays and agent-based tests.
    • Clarified Portuguese reference guidance for app shutdown, window navigation and selection, service startup and cleanup, and worker fixture sharing.
    • Added glossary translations and a video about browser and device automation.

Bring ci/codemagic, services, reference/electron, reference/desktop,
desktop, core, reference/test, and cache back in line with the current
English pages, and add two glossary rows (finalizar for ending an app
with closeApp, grupo de variáveis).
@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Docs preview

The site runs each docs page as code, so a fork's pull request is previewed only after a maintainer reads it. To preview e4a7066, comment /docs-preview e4a70669265d04c738f06322f6d88e80e1e027f5.

@github-actions github-actions Bot added the size:XL Up to 999 changed lines, not counting tests, fixtures, translated docs, or the lockfile label Dec 2, 2026
@coderabbitai

coderabbitai Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Documentação em português

Layer / File(s) Summary
Glossário e página principal
docs/pt/README.md, docs/pt/core.mdx
O glossário inclui traduções para “end” no contexto de closeApp e “variable group”. A página de core adiciona um cartão de vídeo sobre automação agêntica.
Semântica de cache e fixtures
docs/pt/cache.mdx, docs/pt/reference/test.mdx
A documentação detalha quando gravações antigas executam ao vivo sob modo estrito e como fixtures de worker compartilham instâncias quando uma dependência é sobrescrita.
Workflows Codemagic
docs/pt/ci/codemagic.mdx
A página documenta workflows Flutter para iOS e Android, testes em push e pull request, cache de replay, artefatos, chaves e releases. Também descreve skills para configurar workflows e consultar builds pela API REST.
Referências de desktop e Electron
docs/pt/desktop.mdx, docs/pt/reference/desktop.mdx, docs/pt/reference/electron.mdx
As referências especificam o comportamento de closeApp(), processos iniciados pelo app, erros de teclado, navegação, argumentos de evaluate() e ordenação e busca de janelas Electron.
Ciclo de vida dos serviços
docs/pt/services.mdx
A página descreve uso de signal, tempos limite, cancelamento, ordem de inicialização e encerramento e resultados de falhas de serviços.

Possibly related issues

  • Issue 1890 acompanha a atualização da documentação em português; este PR atualiza páginas traduzidas e acrescenta entradas ao glossário.
  • Issue 938 trata da documentação sobre execução ao vivo sob modo estrito. Este PR atualiza a página portuguesa para documentar esse comportamento, sem alterar o runtime.

Possibly related PRs

  • e2e-inc/e2e#2545: altera várias das mesmas páginas portuguesas, incluindo referências de desktop e Electron, Codemagic e o glossário.
  • e2e-inc/e2e#2582: também altera docs/pt/desktop.mdx e docs/pt/ci/codemagic.mdx.
  • e2e-inc/e2e#2448: adiciona conteúdo às páginas inglesas de referência de desktop e Electron que as páginas portuguesas deste PR acompanham.

Change: Other

Merge Risk: Minimal · up to e4a70

This change updates Portuguese documentation to match the English pages and adds two glossary terms. It does not alter runtime behavior. The statements checked against the source were consistent with it, so the risk of merging is minimal.

Architecture risk: Low · up to e4a70

The documentation contract was expanded and corrected to describe API behavior and CI workflow expectations without changing runtime behavior.

Changed areas: docs

Review details

Systems and components

  • observed — 9 changed files mapped to docs.
Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 39d2a740-7e7f-45d6-aea9-dc768de46d0d
Commits

Reviewing files that changed from the base of the PR and between c182e1f and e4a7066.

Files selected for processing: 9

  • docs/pt/README.md
  • docs/pt/cache.mdx
  • docs/pt/ci/codemagic.mdx
  • docs/pt/core.mdx
  • docs/pt/desktop.mdx
  • docs/pt/reference/desktop.mdx
  • docs/pt/reference/electron.mdx
  • docs/pt/reference/test.mdx
  • docs/pt/services.mdx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

4 issues found across 9 files

Prompt for AI agents (unresolved issues)

Check if these issues are valid — if so, understand the root cause of each and fix them. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. If appropriate, use sub-agents to investigate and fix each issue separately.


<file name="docs/pt/README.md">

<violation number="1" location="docs/pt/README.md:423">
P3: This glossary row is keyed on `closeApp` generically, but mobile pages still translate `device.closeApp()` as "encerra" (reference/mobile.mdx:145, migrate/maestro.mdx:112). Either scope the row to desktop (`desktop.closeApp()`), or update those mobile lines to "finaliza" in this PR so the standardization is consistent.</violation>
</file>

<file name="docs/pt/core.mdx">

<violation number="1" location="docs/pt/core.mdx:14">
P3: This Portuguese card inherits the shared component’s English “opens in a new tab” link text. Make that label localizable and pass its Portuguese translation here.</violation>
</file>

<file name="docs/pt/services.mdx">

<violation number="1" location="docs/pt/services.mdx:17">
P2: O exemplo abaixo ainda aguarda `once(server, 'close')` sem `signal`, então o teardown pode continuar pendente após cancelamento ou timeout. Passe `{ signal }` para essa espera também.</violation>
</file>

<file name="docs/pt/ci/codemagic.mdx">

<violation number="1" location="docs/pt/ci/codemagic.mdx:40">
P2: Uma gravação só evita chamadas para os passos `agent.act` reproduzidos; cache misses e `agent.assert`, `agent.waitFor` e `agent.extract` ainda chamam o modelo. Restrinja a garantia ao passo reproduzido, não ao build.</violation>
</file>

Reply with feedback, questions, or to request a fix.

View guided diff | Re-trigger cubic

Comment thread docs/pt/services.mdx
Em `defineService`, use um gerador assíncrono para `start`. Inicie a
dependência antes do `yield`, faça yield do objeto de que a sua configuração e
os seus testes precisam e coloque a limpeza depois do `yield`. Passe `signal`
para tudo o que você inicia ou encerra: assim, nada fica esperando quando a

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: O exemplo abaixo ainda aguarda once(server, 'close') sem signal, então o teardown pode continuar pendente após cancelamento ou timeout. Passe { signal } para essa espera também.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/pt/services.mdx, line 17:

<comment>O exemplo abaixo ainda aguarda `once(server, 'close')` sem `signal`, então o teardown pode continuar pendente após cancelamento ou timeout. Passe `{ signal }` para essa espera também.</comment>

<file context>
@@ -3,19 +3,20 @@ title: Serviços
+Em `defineService`, use um gerador assíncrono para `start`. Inicie a
+dependência antes do `yield`, faça yield do objeto de que a sua configuração e
+os seus testes precisam e coloque a limpeza depois do `yield`. Passe `signal`
+para tudo o que você inicia ou encerra: assim, nada fica esperando quando a
+inicialização é cancelada ou um
+[tempo limite](#timeouts-and-cancellation) se esgota.
</file context>

Comment thread docs/pt/ci/codemagic.mdx
- Leia os resultados na aba Tests do build e guarde o relatório JSON, o log
e as páginas de trace do e2e como artefatos.
- Reproduza passos do agente a partir de uma gravação commitada. Um build
com uma gravação correspondente não precisa da chave do modelo e não faz

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2: Uma gravação só evita chamadas para os passos agent.act reproduzidos; cache misses e agent.assert, agent.waitFor e agent.extract ainda chamam o modelo. Restrinja a garantia ao passo reproduzido, não ao build.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/pt/ci/codemagic.mdx, line 40:

<comment>Uma gravação só evita chamadas para os passos `agent.act` reproduzidos; cache misses e `agent.assert`, `agent.waitFor` e `agent.extract` ainda chamam o modelo. Restrinja a garantia ao passo reproduzido, não ao build.</comment>

<file context>
@@ -1,113 +1,349 @@
+- Leia os resultados na aba Tests do build e guarde o relatório JSON, o log
+  e as páginas de trace do e2e como artefatos.
+- Reproduza passos do agente a partir de uma gravação commitada. Um build
+  com uma gravação correspondente não precisa da chave do modelo e não faz
+  nenhuma chamada ao modelo.
+- Rode o mesmo step do e2e em um workflow de release acionado por tag, antes
</file context>

Comment thread docs/pt/README.md
| failure recap | resumo da falha |
| best-effort | com o melhor esforço |
| tool pack | pacote de ferramentas |
| end (an app, `closeApp`; no quit handlers run) | finalizar (`encerrar` stays for quit) |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: This glossary row is keyed on closeApp generically, but mobile pages still translate device.closeApp() as "encerra" (reference/mobile.mdx:145, migrate/maestro.mdx:112). Either scope the row to desktop (desktop.closeApp()), or update those mobile lines to "finaliza" in this PR so the standardization is consistent.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/pt/README.md, line 423:

<comment>This glossary row is keyed on `closeApp` generically, but mobile pages still translate `device.closeApp()` as "encerra" (reference/mobile.mdx:145, migrate/maestro.mdx:112). Either scope the row to desktop (`desktop.closeApp()`), or update those mobile lines to "finaliza" in this PR so the standardization is consistent.</comment>

<file context>
@@ -420,3 +420,5 @@ translation moves or goes with it in the same change.
 | failure recap | resumo da falha |
 | best-effort | com o melhor esforço |
 | tool pack | pacote de ferramentas |
+| end (an app, `closeApp`; no quit handlers run) | finalizar (`encerrar` stays for quit) |
+| variable group (Codemagic) | grupo de variáveis |
</file context>
Suggested change
| end (an app, `closeApp`; no quit handlers run) | finalizar (`encerrar` stays for quit) |
| end (a desktop app, `desktop.closeApp`; no quit handlers run) | finalizar (`encerrar` stays for quit) |

Comment thread docs/pt/core.mdx
sem o runner de testes: não há arquivo de configuração, nem relatório, nem
`expect`.

<VideoCard

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3: This Portuguese card inherits the shared component’s English “opens in a new tab” link text. Make that label localizable and pass its Portuguese translation here.

Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. When an issue isn't valid or won't be fixed in this PR, reply in its thread with the reason and then resolve the thread. At docs/pt/core.mdx, line 14:

<comment>This Portuguese card inherits the shared component’s English “opens in a new tab” link text. Make that label localizable and pass its Portuguese translation here.</comment>

<file context>
@@ -4,11 +4,19 @@ sidebarTitle: Scripts de automação
 sem o runner de testes: não há arquivo de configuração, nem relatório, nem
 `expect`.
 
+<VideoCard
+  id="2YTREHZxrr4"
+  title="Automação agêntica de navegador e mobile com o e2e core"
</file context>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XL Up to 999 changed lines, not counting tests, fixtures, translated docs, or the lockfile

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant