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
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -95,6 +95,12 @@ export function TestCtrls() {
|
||||
accessibilityRole="button"
|
||||
style={BTN}
|
||||
/>
|
||||
<Pressable
|
||||
testID="storybookBtn"
|
||||
onPress={() => navigate('Debug')}
|
||||
accessibilityRole="button"
|
||||
style={BTN}
|
||||
/>
|
||||
<Pressable
|
||||
testID="e2eRefreshHome"
|
||||
onPress={() => queryClient.invalidateQueries({queryKey: ['post-feed']})}
|
||||
|
||||
Reference in New Issue
Block a user