Fix an e2e flake, maybe: use fillNumberInput#3265
Merged
Merged
Conversation
The Priority field is a React Aria NumberInput, which can drop a value filled via plain fill() if the form re-renders before the edit commits. This surfaced in CI as 'can create firewall rule' creating a rule with Priority 0 instead of 5. Use the existing fillNumberInput helper, which blurs and polls until the value sticks.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
charliepark
approved these changes
Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Saw a flake in https://github.com/oxidecomputer/console/actions/runs/28251857097/job/83705140277, sicced the robot on it. Unfortunately it was not able to repro the flake locally, but it seems plausible anyway.
🤖 Summary
Flake:
firewall-rules.e2e.ts › can create firewall rule(firefox)Root cause. The test typed
5into the Priority field, but the rule was created withPriority: "0"(the default) — failing all 3 retries with:The Priority field is a React Aria NumberInput, which can drop a value set via plain
page.fill()when the form re-renders before the edit commits. The codebase already documents this exact race and has a helper for it:fillNumberInput(test/e2e/utils.ts:68), which clicks, fills, blurs, and polls until the value sticks.The old call also used the deprecated legacy string-selector syntax (
'role=textbox[name="Priority"]') that CLAUDE.md discourages.Fix. Swapped both raw Priority fills in the file to use
fillNumberInput:can create firewall rule, the one that flaked) —'5'name conflict error on edit, same NumberInput risk) —'37'Verification. The flake didn't reproduce locally in 15 runs (it needs CI's heavier parallel load), but the error is unambiguous and the fix matches the established pattern. After the change, both affected tests passed 20/20 on firefox; lint clean.
The fix is committed as its own rev (
b8c7d432) on top of main for you to review/squash.