Repository navigation
fix: update visibility assertions in e2e tests and improve alert dial… - #738
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes
- Alert dialog stacking —
alert-dialog.tsxoverlay and content move fromz-80toz-90, which puts them above the popover/select/menu layer (z-80) and still below toasts (z-100), so the view-settings popover can no longer cover the "Discard changes?" confirm. - View-settings discard spec — the strict-mode-violating
Save only for meassertion is replaced with analert-dialog-contentcount plus the panel title, both of which are single-match locators. - Realtime sync spec — 26
getByText(...).first()locators now filter tovisible=trueso mobile no longer resolves to the hidden desktop copy, and the two doc-tree tests skip on mobile.
deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏
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.

Summary
Fixes e2e failures from the
e2e-testsworkflow run 43412305341 and one real mobile bug the e2e run exposed.Changes
apps/web/src/components/ui/alert-dialog.tsx: raise the alert dialog overlay and content fromz-80toz-90. The popover and the alert dialog were both atz-80, so on mobile the view settings popover could sit over the "Discard changes?" confirm dialog and swallow taps on Discard. This touches the shared component, so every alert dialog is affected.apps/e2e/tests/projects/interaction-views.spec.ts: "Closing the popup without saving discards unsaved changes" asserted ongetByRole('button', { name: 'Save only for me' }). The confirm dialog has a button with the same name, so the locator matched two elements (strict-mode violation) on all five browsers. The test now asserts that the alert dialog is gone and the "View settings" title is hidden.apps/e2e/tests/realtime/sync-ui.spec.ts:getByText(...).first()matched a hidden desktop copy of the text. The 26 affected locators now use.locator("visible=true").first().Testing
Run against the local e2e stack (
deploy/docker-compose.e2e.yml, web image rebuilt with the z-index change):interaction-views.spec.ts"View settings panel": passes on chromium and on mobile-chrome (the Discard test fails on mobile-chrome without the z-index change).sync-ui.spec.ts: with 2 workers it was flaky on chromium and mobile-chrome (5 failures, 14 passed on retry). Two of the failures (:482,:218) passed when re-run alone on one worker.Not covered
view-settings.spec.ts:1001,mfa.spec.ts:641,role-editor.spec.ts:177,conversation-follow.spec.ts:85,timeline.spec.ts:94,role-badges-selector.spec.ts:282and:305,docs.spec.ts:509and:522, and the offline test insync-ui.spec.ts.