Skip to content

Commit 94247bc

Browse files
committed
test: expose notification card state for browser coverage
1 parent cb90f1c commit 94247bc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

frontend/src/lib/features/notifications/NotificationCard.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@
6060
</script>
6161
6262
<div
63+
data-testid={`notification-card-${notification.id}`}
64+
data-read={notification.read}
6365
class="notification-card p-4 cursor-pointer transition-colors relative group"
6466
class:unread={!notification.read}
6567
style="border-bottom: 1px solid var(--ds-border);"
@@ -145,4 +147,4 @@
145147
-webkit-box-orient: vertical;
146148
overflow: hidden;
147149
}
148-
</style>
150+
</style>

0 commit comments

Comments
 (0)