Repository navigation
test(webkit): retry the patient panel tap and report the Dictionary label layout - #3502
Conversation
…abel layout Main's Safari matrix after #3501 cleared both of that PR's checks and showed two new failures: - Installed-app QTc: after tapping the patient panel the fields never showed. The other five tests using the same helper passed in that shard, so the tap landed on a panel that was then replaced and remounted closed. Retry the tap until the fields show. - Dictionary at 768px on phone Safari: the Abbreviations label measured 72px of text in 56px. Local Chromium gives exactly 72px at the 320px layout and 80px at 768px, so Safari appears to keep the narrow layout after the resize. The check now prints the applied width, breakpoint and segment sizes when it fails, so the next run shows which. No test skipped or loosened; no app code changed. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DCghuougzFFXRF3dQQEcYr
There was a problem hiding this comment.
BigSimmo has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.
🤖 CodeAnt AI — Review Status
|
Thanks for using CodeAnt! 🎉We're free for open-source projects. if you're enjoying it, help us grow by sharing. Share on X · |
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude encountered an error after 2s —— View job I'll analyze this and get back to you. |
🏁 CodeAnt Quality Gate ResultsCommit: ✅ Overall Status: PASSEDQuality Gate Details
|
PR Summary by QodoRetry WebKit patient-panel taps and diagnose Dictionary label clipping
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Merging this PR will not alter performance
|
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DCghuougzFFXRF3dQQEcYr
Code Review by Qodo
No findings for this group No findings for this group No findings for this group Resolved findings 1.
|
Qodo FixerNo findings are available for this PR yet. Findings appear here once Qodo has reviewed the PR. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b7d52dc3db
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DCghuougzFFXRF3dQQEcYr
|
Code review by qodo was updated up to the latest commit 899ae4f |
CodeAnt Nitpicks1 code suggestion1. This says layout is read only on failure, but the evaluation reads these fields and builds the failure message on every assertion, including passing runs.Comment mismatch · |
CodeAnt PR Risk: Low Risk
Assessed commit: |
|
Code review by qodo was updated up to the latest commit 9e0a529 |
|
On Qodo's "late panel swaps can hide fields" (Medium): I'm leaving this one as is. Any bounded settle window can, in principle, be outlived by a later swap. The app exposes no "streaming finished" signal to wait on, so a longer stability wait would only move that window. It would not close it. What matters is that nothing gets masked. Every caller's next step clicks or types into the field, and Playwright's actionability check fails loudly if a later swap has hidden it. The only case this retry has to cover is the one observed in run 38280654053: the swap landed before the fields first showed. The retry covers that, plus a swap during hydration. If main's matrix shows a later swap, the next step is an app-side settled marker, not a longer wait. Generated by Claude Code |
Code Review ✅ Approved 1 closed / 1 findings🟡 Medium risk · Retrying the patient-panel interaction could mask intermittent streaming failures if a later attempt succeeds; Dictionary changes only improve failure diagnostics. Patient panel test now re-taps only while the panel is closed, so it no longer closes an open panel whose fields are still painting, addressing the retry re-tap finding. Dictionary label check now reports the applied layout details when the Abbreviations label is clipped. No issues remain open.
✅ 1 closed✅ Edge Case: Retry can re-tap an open panel and close it
Review coverage🤖 Auto-approval Approved 📋 Rules No rules evaluated 🧪 Functional validation Not enabled · Set up OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
…3503) Main's Safari matrix after #3502 had one failure left: the installed-app "compact codes literal" test typed and pressed Enter straight after loading the Forms home, before React had attached the composer's handlers, so the search never submitted. The test above it already waited for those handlers; that wait is now a shared helper and this test uses it too. No test skipped or loosened; no app code changed. Claude-Session: https://claude.ai/code/session_01DCghuougzFFXRF3dQQEcYr Co-authored-by: Claude <noreply@anthropic.com>
User description
Summary
Before: main's Safari release matrix after #3501 (run 38280654053) passed both of #3501's checks, but two new tests failed. On the installed app, the QTc test's patient fields never appeared after the panel was tapped. On phone Safari, the Dictionary "Abbreviations" label at 768px measured 72px of text in a 56px box.
After: the QTc test retries the tap until the fields show. The Dictionary check now prints the layout Safari actually applied whenever it fails.
tests/ui-patient-number-field.spec.ts): the other five tests that use the same helper passed in that shard. That points to the tap landing on a panel that streaming then replaced, and the replacement mounts closed. The helper now taps again only while the fields are hidden, then requires them to be visible.tests/ui-dictionary.spec.ts): in local Chromium, the label measures exactly 72px in the 320px layout and 80px in the 768px layout. So Safari appears to keep the narrow layout after the 320 to 768 resize. That would also explain why widening the toggle in Clinical polish: Work-style header, compact cards, one Compare tray, desktop layouts #3491 left the 56px box unchanged. The assertion is the same, but its failure message now reports the inner width, whether thesmbreakpoint matched, the segment, font, tracking and padding sizes, and the count's width. The next matrix run will say which explanation is right.Areas touched: App experience
No test skipped, quarantined or loosened, and no app code changed.
Verification
tsc --noEmitcame back clean.Risk and rollout
🤖 Generated with Claude Code
https://claude.ai/code/session_01DCghuougzFFXRF3dQQEcYr
Generated by Claude Code
Summary by cubic
Fixes two test failures that surfaced in main's Safari release matrix after #3501.
No app code changed; no tests skipped or loosened.
Written for commit afd92d8. Summary will update on new commits.
CodeAnt-AI Description
Make patient-panel checks resilient and clarify Dictionary label failures
What Changed
Impact
✅ Fewer patient-panel test failures when streamed content replaces the panel✅ Clearer diagnosis of Dictionary label clipping in Safari💡 Usage Guide
Checking Your Pull Request
Every time you make a pull request, our system automatically looks through it. We check for security issues, mistakes in how you're setting up your infrastructure, and common code problems. We do this to make sure your changes are solid and won't cause any trouble later.
Talking to CodeAnt AI
Got a question or need a hand with something in your pull request? You can easily get in touch with CodeAnt AI right here. Just type the following in a comment on your pull request, and replace "Your question here" with whatever you want to ask:
This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.
Example
Preserve Org Learnings with CodeAnt
You can record team preferences so CodeAnt AI applies them in future reviews. Reply directly to the specific CodeAnt AI suggestion (in the same thread) and replace "Your feedback here" with your input:
This helps CodeAnt AI learn and adapt to your team's coding style and standards.
Example
Retrigger review
Ask CodeAnt AI to review the PR again, by typing:
Check Your Repository Health
To analyze the health of your code repository, visit our dashboard at https://app.codeant.ai. This tool helps you identify potential issues and areas for improvement in your codebase, ensuring your repository maintains high standards of code health.