Skip to content

test(e2e): open the list again once its first read failed (FRU-268) - #288

Merged
sakuga-agent[bot] merged 1 commit into
mainfrom
fru-authfix/fru-268-read-failure-focus
Oct 13, 2026
Merged

sakuga-agent[bot] merged 1 commit into
mainfrom
fru-authfix/fru-268-read-failure-focus

Conversation

@sakuga-agent

@sakuga-agent sakuga-agent Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

One spec, e2e/read-failure.spec.ts. Part of FRU-268 (a faster E2E job), independent of #285 and #286.

Why

"a first read that fails (503) is not an empty list, and « Try again » reads again" failed twice in one run (first try and retry) of the suite cut in three parts (#286, run 1058), on expect(retry).toBeFocused().

The list chooses where focus goes when it opens (open() in packages/widget/src/sidebar.ts): the first note, else « Try again » when the read failed, else the close button. The test clicks « Show every note of this page » right after mounting the widget. On a busy runner the read had not failed yet when the list opened, so focus went to the close button, and nothing moves it later. The widget does what it says; the test raced its read.

What changes

Once the list says the notes could not be read, the test closes it with Escape and opens it again, then checks that « Try again » has focus. Same promise, no race. The control after it is unchanged.

Verified

  • Locally, one worker: read-failure.spec.ts and console-frame.spec.ts, 21 passed.

Not verified

  • I did not reproduce the race locally: it needs a loaded runner. The fix is read from open(), not measured against a failing run.

🤖 Generated with Claude Code


Sakuga Review · Score de confiance : 4/5

Modification de test e2e uniquement ; peut être fusionnée, aucun défaut bloquant identifié.

Résumé

Le test read-failure rouvre la liste après l'échec de la première lecture, pour contourner un problème de focus (FRU-268). Le diff est limité à un test e2e et rien dans le code applicatif n'est modifié. Je n'ai pas pu vérifier le comportement du widget (fermeture par Escape, nouvelle lecture à la réouverture).

Non relu
  • Code du widget : non fourni, impossible de vérifier que Escape ferme la liste et que la réouverture relance une lecture qui échoue encore.

Revues (2) · Dernier commit relu : test(e2e): open the list again once its first r... · Niveau balanced · anthropic/claude-sonnet-5.5 · 0,015 $

The list gives focus when it opens. On a busy runner the read failed
after that, and focus stayed on the close button: the test failed twice
in one run of the suite in three parts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@kento-review kento-review 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.

Score de confiance : 5/5 · ✅ Rien de bloquant · Le changement de test peut être fusionné : il ne modifie que un spec e2e et n'introduit pas de défaut vérifiable dans le code produit.

Niveau lite · anthropic/claude-haiku-5.5 · 0,001 $ · Le résumé, le diagramme et la liste des constats sont à la fin de la description de la PR.

@kento-review kento-review Bot added the review: 5/5 Score de confiance de Sakuga Review (5 : prête à merger) label Oct 13, 2026
@sakuga-agent

sakuga-agent Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor Author

@sakuga-review review balanced

@kento-review kento-review 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.

Score de confiance : 4/5 · ✅ Rien de bloquant · Modification de test e2e uniquement ; peut être fusionnée, aucun défaut bloquant identifié.

Niveau balanced · anthropic/claude-sonnet-5.5 · 0,015 $ · Le résumé, le diagramme et la liste des constats sont à la fin de la description de la PR.

@kento-review kento-review Bot added review: 4/5 Score de confiance de Sakuga Review (5 : prête à merger) and removed review: 5/5 Score de confiance de Sakuga Review (5 : prête à merger) labels Oct 13, 2026
@sakuga-agent
sakuga-agent Bot merged commit f233ed2 into main Oct 13, 2026
13 checks passed
@sakuga-agent
sakuga-agent Bot deleted the fru-authfix/fru-268-read-failure-focus branch October 13, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review: 4/5 Score de confiance de Sakuga Review (5 : prête à merger)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant