Skip to content

test(e2e): add notification bell mark-as-read flow - #1018

Open
chidii wants to merge 3 commits into
Iris-IV:mainfrom
chidii:test/notification-bell-e2e
Open

test(e2e): add notification bell mark-as-read flow#1018
chidii wants to merge 3 commits into
Iris-IV:mainfrom
chidii:test/notification-bell-e2e

Conversation

@chidii

@chidii chidii commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Closes #804

  • Added Playwright e2e test for notification bell
  • Connects wallet, makes contribution to generate notification
  • Opens notification dropdown, marks item read
  • Asserts unread badge count decrements
  • Uses mock mode, no live chain required

@drips-wave

drips-wave Bot commented Jul 31, 2026

Copy link
Copy Markdown

@chidii Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@sshdopey

Copy link
Copy Markdown
Contributor

Auto-review failed (API error). Leaving PR for human review.

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

good flow choice: driving the notification through a real mock-mode contribution instead of stubbing the feed makes this a genuine end-to-end check, and the escape-key close plus badge decrement assertions target exactly what #804 describes.

the problem is the test can silently pass without verifying anything:

  1. tests/e2e/notifications.spec.ts:66-68 the mark-as-read click is wrapped in if (await markReadButton.isVisible()), and tests/e2e/notifications.spec.ts:75-77 the badge assertion is wrapped in if (initialBadgeText && initialBadgeText !== "0"). if the notification never appears, every meaningful assertion is skipped and the test goes green. make both unconditional: assert the unread badge is visible with a nonzero count after the donation, assert the mark-read button exists, then assert the decrement.
  2. tests/e2e/notifications.spec.ts:53 bell.locator("span").first() is fragile; give the badge a data-testid or target it by accessible name instead.
  3. tests/e2e/notifications.spec.ts:5-12 swallowing ChunkLoadError and "access control checks" page errors globally can hide real regressions; if this guard is needed it belongs in a shared fixture with a comment explaining why, not copied into one spec.
  4. missing trailing newline at end of file, which is likely part of the prettier failure.

typecheck/unit/build reds look like the stale pre-#875 base, so please rebase as well.

@sshdopey

sshdopey commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Auto-review failed (API error). Leaving PR for human review.

@sshdopey

sshdopey commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Auto-review failed (API error). Leaving PR for human review.

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.

[Testing] Add E2E coverage for the notification bell and mark-as-read flow

3 participants