Simulator fixes
parent
bcedbbc8b3
commit
93984277c9
|
@ -13,6 +13,7 @@ const ADMIN_PASSWORD = 'admin-pass'
|
||||||
const SECOND = 1000
|
const SECOND = 1000
|
||||||
const MINUTE = SECOND * 60
|
const MINUTE = SECOND * 60
|
||||||
const HOUR = MINUTE * 60
|
const HOUR = MINUTE * 60
|
||||||
|
const DAY = HOUR * 24
|
||||||
|
|
||||||
export interface TestUser {
|
export interface TestUser {
|
||||||
email: string
|
email: string
|
||||||
|
@ -66,6 +67,8 @@ export async function createServer(
|
||||||
adminPassword: ADMIN_PASSWORD,
|
adminPassword: ADMIN_PASSWORD,
|
||||||
inviteRequired,
|
inviteRequired,
|
||||||
didPlcUrl: plcUrl,
|
didPlcUrl: plcUrl,
|
||||||
|
didCacheMaxTTL: DAY,
|
||||||
|
didCacheStaleTTL: HOUR,
|
||||||
jwtSecret: 'jwt-secret',
|
jwtSecret: 'jwt-secret',
|
||||||
availableUserDomains: ['.test'],
|
availableUserDomains: ['.test'],
|
||||||
appUrlPasswordReset: 'app://forgot-password',
|
appUrlPasswordReset: 'app://forgot-password',
|
||||||
|
|
|
@ -99,15 +99,13 @@ export const HomeScreen = withAuthRequired(
|
||||||
return <CustomFeedEmptyState />
|
return <CustomFeedEmptyState />
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
const initialPage = store.me.followsCount === 0 ? 1 : 0
|
|
||||||
return (
|
return (
|
||||||
<Pager
|
<Pager
|
||||||
ref={pagerRef}
|
ref={pagerRef}
|
||||||
testID="homeScreen"
|
testID="homeScreen"
|
||||||
onPageSelected={onPageSelected}
|
onPageSelected={onPageSelected}
|
||||||
renderTabBar={renderTabBar}
|
renderTabBar={renderTabBar}
|
||||||
tabBarPosition="top"
|
tabBarPosition="top">
|
||||||
initialPage={initialPage}>
|
|
||||||
<FeedPage
|
<FeedPage
|
||||||
key="1"
|
key="1"
|
||||||
testID="followingFeedPage"
|
testID="followingFeedPage"
|
||||||
|
|
Loading…
Reference in New Issue