Skip to content

fix: update visibility assertions in e2e tests and improve alert dial… - #738

Merged
pikann merged 1 commit into
masterfrom
fix/fix-failed-e2e-testings
Nov 13, 2026
Merged

pikann merged 1 commit into
masterfrom
fix/fix-failed-e2e-testings

Conversation

@pikann

@pikann pikann commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Fixes e2e failures from the e2e-tests workflow 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 from z-80 to z-90. The popover and the alert dialog were both at z-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 on getByRole('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:
    • On mobile, getByText(...).first() matched a hidden desktop copy of the text. The 26 affected locators now use .locator("visible=true").first().
    • The two doc-tree tests are skipped on mobile, where the tree is in a collapsed sidebar.

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

  • The full suite has not been run to completion. A single-worker chromium run was started and stopped before it finished.
  • firefox, webkit and mobile-safari were not run locally.
  • Other failures from the CI run are not addressed here: 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:282 and :305, docs.spec.ts:509 and :522, and the offline test in sync-ui.spec.ts.

@pullfrog pullfrog 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.

✅ No new issues found.

Reviewed changes

  • Alert dialog stacking — alert-dialog.tsx overlay and content move from z-80 to z-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 me assertion is replaced with an alert-dialog-content count plus the panel title, both of which are single-match locators.
  • Realtime sync spec — 26 getByText(...).first() locators now filter to visible=true so mobile no longer resolves to the hidden desktop copy, and the two doc-tree tests skip on mobile.

Pullfrog  | View workflow run | Using deepseek-v4.1-flash-1017 (free via Pullfrog for OSS) | 𝕏

@pikann
pikann merged commit 2d1e678 into master Nov 13, 2026
3 checks passed
@pikann
pikann deleted the fix/fix-failed-e2e-testings branch November 13, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant