From 08ba539348402ff7b659e1ac263a3802e0bbc08f Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 29 Jul 2026 04:06:48 +0300 Subject: [PATCH] stop e2e controls intercepting taps --- src/view/com/testing/TestCtrls.e2e.tsx | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/view/com/testing/TestCtrls.e2e.tsx b/src/view/com/testing/TestCtrls.e2e.tsx index 91652395c0..d38aa9b787 100644 --- a/src/view/com/testing/TestCtrls.e2e.tsx +++ b/src/view/com/testing/TestCtrls.e2e.tsx @@ -3,7 +3,7 @@ import {LogBox, Platform, Pressable, View} from 'react-native' import {useQueryClient} from '@tanstack/react-query' import {BLUESKY_PROXY_HEADER, DEV_ENV_APPVIEW_DID} from '#/lib/constants' -import {useAgent, useSessionApi} from '#/state/session' +import {useAgent, useSession, useSessionApi} from '#/state/session' import {useLoggedOutViewControls} from '#/state/shell/logged-out' import {useOnboardingDispatch} from '#/state/shell/onboarding' import {navigate} from '../../../Navigation' @@ -23,6 +23,10 @@ const SIGN_IN_BTN = Platform.select({ ios: {height: 80, width: 80, backgroundColor: 'red'}, default: BTN, }) +const STORYBOOK_BTN = Platform.select({ + android: {height: 10, width: 10, backgroundColor: 'red'}, + default: BTN, +}) /* * This component is mounted inside in @@ -38,6 +42,7 @@ let hasConfiguredProxy = false export function TestCtrls() { const agent = useAgent() + const {hasSession} = useSession() const queryClient = useQueryClient() const {logoutEveryAccount, login} = useSessionApi() const onboardingDispatch = useOnboardingDispatch() @@ -76,7 +81,7 @@ export function TestCtrls() { } return ( <> - {isProxyConfigured && ( + {isProxyConfigured && !hasSession && ( )} - + logoutEveryAccount('Settings')} @@ -137,7 +149,7 @@ export function TestCtrls() { testID="storybookBtn" onPress={() => navigate('Debug')} accessibilityRole="button" - style={BTN} + style={STORYBOOK_BTN} />