Repository navigation
test(site/src/pages/AISettingsPage): wait for added member before saving sharing dialogs - #32413
Merged
Merged
Conversation
…ing sharing dialogs
Collaborator
Author
|
I also considered making this not a |
untra
approved these changes
Nov 18, 2026
jeremyruppel
had a problem deploying
to
docs-preview
November 18, 2026 22:42 — with
GitHub Actions
Failure
This branch had an error being deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes a
test-jsflake on main: run 44403867707 failedOrganizationSkillSharingDialog > saves only the changed entriesbecause the PATCH body was missing the added user."Add member" is a React 19
<form action>, so its draft update commits in a transition. The test clicked "Save permissions" right after, and under CI load Save could run against the pre-add draft. The tests now wait for the added member's row before saving.ChatModelSharingDialog.test.tsxhad the same sequence and gets the same fix.Investigation notes
userEvent.setup({ delay: null }): 3/3 failures with the same diff as CI. Both tests pass under that repro with this change.acthere:@testing-library/[email protected]depends on@testing-library/[email protected], while@testing-library/[email protected]resolves@testing-library/[email protected], so RTL'sactevent wrapper is never applied. Passing runs also log hundreds of "not wrapped in act" warnings, hidden bysilent: "passed-only". Upgrading to RTL 16 would address this suite-wide and is left out of scope.