about summary refs log tree commit diff
path: root/src/view/com/testing/TestCtrls.e2e.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/view/com/testing/TestCtrls.e2e.tsx')
-rw-r--r--src/view/com/testing/TestCtrls.e2e.tsx19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/view/com/testing/TestCtrls.e2e.tsx b/src/view/com/testing/TestCtrls.e2e.tsx
index 135b7dee6..fbad86f6a 100644
--- a/src/view/com/testing/TestCtrls.e2e.tsx
+++ b/src/view/com/testing/TestCtrls.e2e.tsx
@@ -2,6 +2,7 @@ import React from 'react'
 import {LogBox, Pressable, View} from 'react-native'
 import {useQueryClient} from '@tanstack/react-query'
 
+import {useDangerousSetGate} from '#/lib/statsig/statsig'
 import {useModalControls} from '#/state/modals'
 import {useSessionApi} from '#/state/session'
 import {useLoggedOutViewControls} from '#/state/shell/logged-out'
@@ -24,6 +25,7 @@ export function TestCtrls() {
   const {openModal} = useModalControls()
   const onboardingDispatch = useOnboardingDispatch()
   const {setShowLoggedOut} = useLoggedOutViewControls()
+  const setGate = useDangerousSetGate()
   const onPressSignInAlice = async () => {
     await login(
       {
@@ -108,7 +110,22 @@ export function TestCtrls() {
       />
       <Pressable
         testID="e2eStartOnboarding"
-        onPress={() => onboardingDispatch({type: 'start'})}
+        onPress={() => {
+          // TODO remove when experiment is over
+          setGate('reduced_onboarding_and_home_algo', true)
+          onboardingDispatch({type: 'start'})
+        }}
+        accessibilityRole="button"
+        style={BTN}
+      />
+      {/* TODO remove this entire control when experiment is over */}
+      <Pressable
+        testID="e2eStartLongboarding"
+        onPress={() => {
+          // TODO remove when experiment is over
+          setGate('reduced_onboarding_and_home_algo', false)
+          onboardingDispatch({type: 'start'})
+        }}
         accessibilityRole="button"
         style={BTN}
       />