Repository navigation
test(browser): dismiss the profile notice before closing Settings - #4039
Merged
Merged
Conversation
"Settings loads and publishes the selected community profile" could time out in WebKit clicking Close Settings, with the "Profile updated" notice reported as intercepting pointer events for the whole 10 s. The notice is drawn above dialogs and, at the 1440px test viewport, lands over the centre of Close Settings. The test only waited for the notice to be visible, which is already true while it slides in. Usually the click found the settled notice in the way and waited about 5 s for it to expire. When the click started during the slide, the hit-target check passed, the pointer moved to Close, and the notice settled under it. A pointer resting on a notice holds its expiry, so the notice never left and the click timed out. The test now waits for the notice to settle, hovers it and presses its Dismiss button, as plugin-import.spec already does, then closes Settings. This no longer depends on the notice's timer and removes the 5 s wait. Signed-off-by: Matt Toohey <contact@matttoohey.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
wesbillman
reviewed
Nov 20, 2026
wesbillman
left a comment
Collaborator
There was a problem hiding this comment.
🤖 Star Lord: Ready for Wes’s approval at 67c73ec. The test dismisses the success notice before clicking Close Settings and preserves the profile publication assertions. Source review only. The hosted WebKit job was in progress at the review snapshot.
wesbillman
approved these changes
Nov 20, 2026
aepifano-square
added a commit
that referenced
this pull request
Nov 20, 2026
…ser-balance * origin/main: (37 commits) Preserve update notice clicks through refresh (#3555) feat(agents): compose the base prompt with the owner's section choices (#3813) feat(codex): send a resumed thread the base sections that changed (#3812) feat(search): rerank message results with the Decisions API (#3748) fix(messages): inset the settled agent outcome in Compact density (#3925) perf(sidebar): select the Solo label mask by class, not [class~=] (#4067) test(browser): jump the frozen page clock in the agent-outcomes journey (#4062) Preserve the default sidebar order when upgrading (#4041) Let macOS Beta opt in to Web Inspector (#4035) feat(agents): pick the working location rule from where the conversation works (#3811) feat(agents): state one order of precedence in the base prompt (#3810) Upgrade Virtua to 0.54.2 and drop patch hunks fixed upstream (#4003) test(browser): dismiss the profile notice before closing Settings (#4039) Keep Solo sections closed until disclosed (#4004) Order notification fixture messages after the read frontier (#4026) fix(avatars): paint ready avatar artwork on the first frame (#3990) fix(messages): re-adopt decoded images in every display of a source (#4005) fix(threads): keep the unread line through a late thread route (#4013) fix(threads): resume a thread opened from the timeline (#4001) fix(presence): keep unexpired status when member rows remount (#3981) ... Signed-off-by: Alex Epifano <aepifano@squareup.com> Co-authored-by: github-enterprise-admin <5016e041c0895516b8c714b80ede89b8a4007c6083dd8737dce174359fde12b5@buzz.block.builderlab.xyz>
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.
Problem
tests/browser/settings.spec.mjs"Settings loads and publishes the selected community profile" sometimes fails in WebKit. The click on Close Settings incloseSettingstimes out after 10 s, and for the whole time Playwright reports that the "Profile updated" notice (.buzz-toastunder#buzz-toast-root) intercepts pointer events.Seen in run 44642769572, job 135978173806 ("Browser journeys (webkit, 5/18)") on a branch that does not touch Settings, toasts or this spec.
Root cause
This is a race in the test, not a change in app behaviour.
--layer-toast1050 over--layer-dialog1001). At the 1440×950 test viewport the settled notice covers x 1012–1432, y ≈ 94–148. Close Settings is at x 1231–1263, y 126–158, so its centre (1247, 142) is under the notice.closeSettingstook 5.3 s.Fix
The test now waits for the notice to settle, hovers it and presses its Dismiss notification button, then closes Settings. This is the sequence
plugin-import.spec.mjsalready uses for a notice. The test no longer depends on the notice's timer and no longer waits about 5 s for it.No product code changes. No browser cases added or removed.
Verification
Local, macOS, Playwright 1.63.0,
--workers=1, onmainat 03abdc7:--repeat-each. It runs in about 7 s, down from about 14.5 s.settings.spec.mjspassed in WebKit (16 tests).biome checkon the file is clean.Not verified:
Notes
closeSettingsclick. Its cause is different: that test asserts a notice with no expiry is visible and then clicks Close Settings beneath it. It is not changed here.🤖 Generated with Claude Code