about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2025-08-07 15:11:16 -0500
committerGitHub <noreply@github.com>2025-08-07 13:11:16 -0700
commit08a83242906431acb06dde79467ec7dfdefa49f8 (patch)
tree48ed62cf664330eb6beb9691d7abeb003aec52ef /src
parent11c9931fd2bc9db8a6e4e71ae04d71051f63191c (diff)
downloadvoidsky-08a83242906431acb06dde79467ec7dfdefa49f8.tar.zst
Fix e2e (#8794)
* Only enable policy update overlay once the actual Overlay mounts (after onboarding and all that)

* Disable policy overlay in e2e

* Add comments

* Add extra insurance

* Rm log

* Fix shared prefs test

* Fix login flows by optionally closing 'Remember password' system dialog

* Return missing testID

* Bump dev-env
Diffstat (limited to 'src')
-rw-r--r--src/view/com/notifications/NotificationFeedItem.tsx20
-rw-r--r--src/view/com/testing/TestCtrls.e2e.tsx6
-rw-r--r--src/view/screens/Storybook/index.tsx5
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 />