Simulator fixes

zio/stable
Paul Frazee 2023-05-25 21:10:44 -05:00
parent bcedbbc8b3
commit 93984277c9
2 changed files with 4 additions and 3 deletions

View File

@ -13,6 +13,7 @@ const ADMIN_PASSWORD = 'admin-pass'
const SECOND = 1000
const MINUTE = SECOND * 60
const HOUR = MINUTE * 60
const DAY = HOUR * 24
export interface TestUser {
email: string
@ -66,6 +67,8 @@ export async function createServer(
adminPassword: ADMIN_PASSWORD,
inviteRequired,
didPlcUrl: plcUrl,
didCacheMaxTTL: DAY,
didCacheStaleTTL: HOUR,
jwtSecret: 'jwt-secret',
availableUserDomains: ['.test'],
appUrlPasswordReset: 'app://forgot-password',

View File

@ -99,15 +99,13 @@ export const HomeScreen = withAuthRequired(
return <CustomFeedEmptyState />
}, [])
const initialPage = store.me.followsCount === 0 ? 1 : 0
return (
<Pager
ref={pagerRef}
testID="homeScreen"
onPageSelected={onPageSelected}
renderTabBar={renderTabBar}
tabBarPosition="top"
initialPage={initialPage}>
tabBarPosition="top">
<FeedPage
key="1"
testID="followingFeedPage"