Skip to content

test(webkit): wait for the DSM filter trigger to hydrate before pressing Enter - #3504

Merged
gitar-bot[bot] merged 1 commit into
mainfrom
claude/webkit-dsm-facet-w72vlz
Oct 12, 2026
Merged

gitar-bot[bot] merged 1 commit into
mainfrom
claude/webkit-dsm-facet-w72vlz

Conversation

@BigSimmo

@BigSimmo BigSimmo commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner

User description

Summary

  • Before: main's Safari release matrix after test(webkit): wait for the Forms composer to be live before typing #3503 (run 38300091965) cleared the Forms test and showed one new intermittent failure. The installed-app (mobile-pwa-standalone) test "DSM category facets support keyboard selection and restore focus" focused the filter button and pressed Enter straight after load, before React had attached its handler. The filter panel never opened. The same test passed in the previous main run, which fits a timing race.

  • After: the test waits for the trigger to hydrate with the shared expectHydrated helper before focusing it. This is the same pattern as test(webkit): wait for the Forms composer to be live before typing #3503.

  • Test-only. No test skipped, no assertion loosened, no app code changed.

Verification

  • Checks run: prettier --check ("All matched files use Prettier code style!") and eslint on the changed file, both clean.
  • WebKit can't run in this container, so main's next release browser matrix is the WebKit proof.

Risk and rollout

  • Risk: none to the app. This only changes test timing.
  • Rollback: revert this commit.
  • Provider or production effects: None.

Notes

  • Ledger: #9Z197J.

🤖 Generated with Claude Code

https://claude.ai/code/session_01DCghuougzFFXRF3dQQEcYr


Generated by Claude Code


Summary by cubic

Fixes an intermittent WebKit failure in the DSM category facet test by waiting for the filter trigger to hydrate before pressing Enter.

Main's Safari matrix showed the installed-app test pressing Enter before React attached the trigger's handler, so the filter panel never opened. The test now uses the shared expectHydrated helper before focusing, matching the fix from #3503. Test-only change — no test skipped, no assertion loosened, no app code touched.

Written for commit f3aef43. Summary will update on new commits.

View guided diff Turn on auto-fix


CodeAnt-AI Description

Stabilize keyboard selection in the DSM filter test

What Changed

  • The DSM category filter test now waits for the filter trigger to be ready before pressing Enter, preventing missed keypresses on slower browsers.

Impact

✅ Fewer intermittent WebKit test failures
✅ More reliable DSM keyboard-selection coverage

💡 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:

@codeant-ai ask: Your question here

This lets you have a chat with CodeAnt AI about your pull request, making it easier to understand and improve your code.

Example

@codeant-ai ask: Can you suggest a safer alternative to storing this secret?

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:

@codeant-ai: Your feedback here

This helps CodeAnt AI learn and adapt to your team's coding style and standards.

Example

@codeant-ai: Do not flag unused imports.

Retrigger review

Ask CodeAnt AI to review the PR again, by typing:

@codeant-ai: review

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.

…ing Enter

Main's Safari matrix after #3503 cleared the Forms test and showed one new
intermittent failure: the installed-app DSM category facet test focused the
filter button and pressed Enter straight after load, before React attached
its handler, so the filter panel never opened. Wait for hydration first, the
same fix as #3503.

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
@supabase

supabase Bot commented Oct 12, 2026

Copy link
Copy Markdown

This pull request has been ignored for the connected project sjrfecxgysukkwxsowpy because there are no changes detected in supabase directory. You can change this behaviour in Project Integrations Settings ↗︎.


Preview Branches by Supabase.
Learn more about Supabase Branching ↗︎.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

BigSimmo has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@codeant-ai

codeant-ai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

🤖 CodeAnt AI — Review Status

Status Commit Started (UTC) Finished (UTC)
✅ Reviewed your PR f3aef43 Oct 12, 2026 · 20:44 20:44

@codeant-ai

codeant-ai Bot commented Oct 12, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-12T20:46:15.066713Z f3aef43 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 2c02492a-034d-4dc4-8ec3-a9e47336df39

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@claude

claude Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude encountered an error after 2s —— View job


I'll analyze this and get back to you.

@codeant-ai codeant-ai Bot added the size:XS This PR changes 0-9 lines, ignoring generated files label Oct 12, 2026
@codeant-ai

codeant-ai Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

🏁 CodeAnt Quality Gate Results

Commit: f3aef435
Scan Time: 2026-10-12 20:59:41 UTC

✅ Overall Status: PASSED

Quality Gate Details

Quality Gate Status Details
Secrets ✅ PASSED 0 secrets found
Duplicate Code ✅ PASSED 0.0% duplicated
SAST ✅ PASSED No security issues
Bugs ✅ PASSED Rating S: No bugs
IAC ✅ PASSED No IAC issues

View Full Results

@qodo-code-review

Copy link
Copy Markdown
Contributor

PR Summary by Qodo

Wait for DSM filter hydration before WebKit keyboard interaction

🐞 Bug fix 🧪 Tests 🕐 Less than 10 minutes

Grey Divider

AI Description

• Wait for the DSM filter trigger to hydrate before pressing Enter, preventing a WebKit timing race.
• Preserve the test’s keyboard-selection and focus-restoration assertions without changing app code.
Diagram

graph TD
  A["DSM filter trigger"] --> B["Hydration wait"] --> C["Focus and Enter"] --> D["Filter panel"]
Loading
High-Level Assessment

Using the existing per-element hydration helper directly before the keypress addresses the race without changing production behavior or weakening the test. A fixed delay would be less reliable.

Files changed (1) +3 / -0

Tests (1) +3 / -0
ui-smoke.spec.tsWait for the DSM filter trigger to hydrate +3/-0

Wait for the DSM filter trigger to hydrate

• Imports the shared expectHydrated helper and awaits trigger hydration before focusing it and pressing Enter. The remaining panel, keyboard-selection, and focus-restoration assertions are unchanged.

tests/ui-smoke.spec.ts

@codeant-ai

codeant-ai Bot commented Oct 12, 2026

Copy link
Copy Markdown

CodeAnt PR Risk: Low Risk

  • The PR appears safe to merge; it waits for the category-filter trigger to hydrate before keyboard interaction in the smoke test.

Assessed commit: f3aef435cdbf

@gitar-bot

gitar-bot Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor
Code Review ✅ Approved

🟢 Low risk · Adding a hydration wait in one WebKit UI test changes only test synchronization, leaving application behavior and interfaces untouched.

Test-only change that makes the DSM category facet keyboard test wait for the filter trigger to hydrate via expectHydrated before focusing and pressing Enter, addressing the intermittent WebKit race where the panel never opened. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Approved

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Counting what did not apply, without listing it.

Comment with these commands to change the behavior for this request:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@gitar-bot
gitar-bot Bot enabled auto-merge (squash) October 12, 2026 20:45

@gitar-bot gitar-bot 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.

Gitar has auto-approved this PR (configure)

@codspeed

codspeed Bot commented Oct 12, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

⚠️ 2 benchmarks spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

ℹ️ 1 benchmark has no flame graph

The flamegraph could not be generated because too much time was spent in runtime internals, making the visualization not useful for performance analysis.

✅ 8 untouched benchmarks


Comparing claude/webkit-dsm-facet-w72vlz (f3aef43) with main (351bd43)

Open in CodSpeed

@qodo-code-review

Copy link
Copy Markdown
Contributor

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Tip of the day
💡 Did you know, you can commit Qodo's fix in one click with committable suggestions (GitHub & GitLab)

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗

Grey Divider

Qodo Logo

@qodo-code-review

Copy link
Copy Markdown
Contributor

Qodo Fixer

No findings are available for this PR yet. Findings appear here once Qodo has reviewed the PR.

@gitar-bot
gitar-bot Bot merged commit ac737f1 into main Oct 12, 2026
49 checks passed
@gitar-bot
gitar-bot Bot deleted the claude/webkit-dsm-facet-w72vlz branch October 12, 2026 20:59
gitar-bot Bot pushed a commit that referenced this pull request Oct 12, 2026
WebKit now runs in CI and its genuine failures were fixed test-side in
#3492-#3494 and #3501-#3504. The last three were the same race, a keypress
before React attached the handler; the update names the helper to use and
the one check left (the first main run after #3504).


Claude-Session: https://claude.ai/code/session_01DCghuougzFFXRF3dQQEcYr

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🕐 Less than 10 minutes size:XS This PR changes 0-9 lines, ignoring generated files 🟡 Small blast radius

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants