Repository navigation
test(ui): read the Admin Help bar only after its rows have loaded - #3493
Conversation
While Admin Help loads, every section including Support is drawn as a skeleton; once rows arrive Support drops out when it has none. The anchor test read the bar words during loading, so on WebKit it asked for #admin-help-support after the settled page had removed it (release-browser-matrix run 38236585559, both iPhone projects). Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DCghuougzFFXRF3dQQEcYr
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
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 |
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 · |
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. |
🏁 CodeAnt Quality Gate ResultsCommit: ✅ Overall Status: PASSEDQuality Gate Details
|
|
Claude encountered an error after 2s —— View job I'll analyze this and get back to you. |
PR Summary by QodoWait for Admin Help to load before checking section anchors
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Merging this PR will not alter performance
|
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. |
CodeAnt PR Risk: Low Risk
Assessed commit: |
The 100 ms ReDoS ceiling failed on two unrelated PRs (about 102 and 104 ms) because a single cold run under coverage on a busy runner can cross it. Catastrophic backtracking slows every run, so the fastest of five keeps the guard while dropping warm-up and runner noise. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DCghuougzFFXRF3dQQEcYr (cherry picked from commit 0041536)
|
Generated by Claude Code |
|
Code review by qodo was updated up to the latest commit e49d1d6 |
(cherry picked from commit d904232)
|
Generated by Claude Code |
|
Code review by qodo was updated up to the latest commit cbd58be |
Code Review ✅ Approved🟢 Low risk · The added wait only delays an existing UI assertion until loading placeholders disappear; it changes test timing, not application behavior. Test-only change so the Admin Help section bar is read only after its loading skeletons clear, keeping the bar and anchor checks on the same settled page. No issues found.
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 |
User description
Requested by Josh · project thread
Summary
Before:
ui-on-call-boards.spec.ts:558"declares no anchor the page does not render" failed on both iPhone WebKit projects in release-browser-matrix run 38236585559: "Support is offered but absent",#admin-help-supportcount 0. While Admin Help loads, every section including Support is drawn as a skeleton; once rows arrive, Support drops out when it has no rows (admin-help-page.tsx, audit 11 Oct). The test read the section bar's words during loading, then looked for anchors on the settled page.After: the test waits until no
admin-help-*-loadingskeleton remains before reading the bar, so it checks the bar and the anchors of the same settled page. The assertion itself is unchanged; no test skipped, disabled or quarantined.Inferred, not proven: the race explains why only the slower iPhone emulation hit it. WebKit is not installed in this container, so proof needs a matrix run once #3487 (the WebKit launch fix) is on main.
Areas touched: Delivery and assurance
Verification
Risk and rollout
🤖 Generated with Claude Code
https://claude.ai/code/session_01DCghuougzFFXRF3dQQEcYr
Generated by Claude Code
Summary by cubic
Two test reliability fixes: the Admin Help anchor test now reads the section bar only after its rows load, and the SQL stripper ReDoS guard now warms up once and checks every measured run against its speed ceiling.
admin-help-*-loadingskeletons to disappear before reading the bar, so the test checks the bar and anchors on the same settled page. Previously a slower engine could read "Support" from the skeleton and then fail to find#admin-help-supportafter rows loaded.Written for commit 560b92d. Summary will update on new commits.
CodeAnt-AI Description
Wait for Admin Help to finish loading before checking its section links
What Changed
Impact
✅ Fewer false Admin Help anchor test failures✅ More reliable WebKit checks after content loads💡 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.
Summary by Gitar
stripMigrationSqlin the challenger SQL stress test as the fastest of five runs to avoid cold-run slowdowns under coverageThis will update automatically on new commits.