diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/view/com/notifications/NotificationFeedItem.tsx | 20 | ||||
-rw-r--r-- | src/view/com/testing/TestCtrls.e2e.tsx | 6 | ||||
-rw-r--r-- | src/view/screens/Storybook/index.tsx | 5 |
3 files changed, 19 insertions, 12 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" diff --git a/src/view/screens/Storybook/index.tsx b/src/view/screens/Storybook/index.tsx index 8285b0d73..870654761 100644 --- a/src/view/screens/Storybook/index.tsx +++ b/src/view/screens/Storybook/index.tsx @@ -87,9 +87,6 @@ function StorybookInner() { </Button> </View> - <Buttons /> - <Toasts /> - <Button color="primary" size="small" @@ -109,6 +106,8 @@ function StorybookInner() { <Theming /> </ThemeProvider> + <Toasts /> + <Buttons /> <Forms /> <Typography /> <Spacing /> |