diff options
Diffstat (limited to 'src/view/com')
-rw-r--r-- | src/view/com/notifications/NotificationFeedItem.tsx | 20 | ||||
-rw-r--r-- | src/view/com/testing/TestCtrls.e2e.tsx | 6 |
2 files changed, 17 insertions, 9 deletions
diff --git a/src/view/com/notifications/NotificationFeedItem.tsx b/src/view/com/notifications/NotificationFeedItem.tsx index d5aba86f7..dc048bd26 100644 --- a/src/view/com/notifications/NotificationFeedItem.tsx +++ b/src/view/com/notifications/NotificationFeedItem.tsx @@ -195,16 +195,18 @@ let NotificationFeedItem = ({ } const isHighlighted = highlightUnread && !item.notification.isRead return ( - <Post - post={item.subject} - style={ - isHighlighted && { - backgroundColor: pal.colors.unreadNotifBg, - borderColor: pal.colors.unreadNotifBorder, + <View testID={`feedItem-by-${item.notification.author.handle}`}> + <Post + post={item.subject} + style={ + isHighlighted && { + backgroundColor: pal.colors.unreadNotifBg, + borderColor: pal.colors.unreadNotifBorder, + } } - } - hideTopBorder={hideTopBorder} - /> + hideTopBorder={hideTopBorder} + /> + </View> ) } diff --git a/src/view/com/testing/TestCtrls.e2e.tsx b/src/view/com/testing/TestCtrls.e2e.tsx index 5c8b21373..3273cf195 100644 --- a/src/view/com/testing/TestCtrls.e2e.tsx +++ b/src/view/com/testing/TestCtrls.e2e.tsx @@ -96,6 +96,12 @@ export function TestCtrls() { style={BTN} /> <Pressable + testID="storybookBtn" + onPress={() => navigate('Debug')} + accessibilityRole="button" + style={BTN} + /> + <Pressable testID="e2eRefreshHome" onPress={() => queryClient.invalidateQueries({queryKey: ['post-feed']})} accessibilityRole="button" |