get e2e tests working on Android

This commit is contained in:
Samuel Newman
2026-03-04 14:23:05 +02:00
parent a0ce96fb2d
commit a698990c73
7 changed files with 42 additions and 18 deletions
+1
View File
@@ -57,6 +57,7 @@ export function LoggedOut({onDismiss}: {onDismiss?: () => void}) {
const agent = useAgent()
useEffect(() => {
const actors = accounts.map(acc => acc.did)
if (actors.length === 0) return
void queryClient.prefetchQuery({
queryKey: profilesQueryKey(actors),
staleTime: STALE.MINUTES.FIVE,
+5 -9
View File
@@ -25,6 +25,7 @@ export function TestCtrls() {
const onboardingDispatch = useOnboardingDispatch()
const {setShowLoggedOut} = useLoggedOutViewControls()
const onPressSignInAlice = async () => {
console.info('[E2E] Signing in as Alice')
await login(
{
service: 'http://localhost:3000',
@@ -36,6 +37,7 @@ export function TestCtrls() {
setShowLoggedOut(false)
}
const onPressSignInBob = async () => {
console.info('[E2E] Signing in as Bob')
await login(
{
service: 'http://localhost:3000',
@@ -54,6 +56,9 @@ export function TestCtrls() {
accessibilityHint="Enter proxy header"
testID="e2eProxyHeaderInput"
onChangeText={val => setProxyHeader(val as any)}
autoComplete="off"
autoCorrect={false}
autoCapitalize="none"
onSubmitEditing={() => {
const header = `${proxyHeader}#bsky_appview`
BLUESKY_PROXY_HEADER.set(header)
@@ -135,15 +140,6 @@ export function TestCtrls() {
accessibilityRole="button"
style={BTN}
/>
{/* TODO remove this entire control when experiment is over */}
<Pressable
testID="e2eStartLongboarding"
onPress={() => {
onboardingDispatch({type: 'start'})
}}
accessibilityRole="button"
style={BTN}
/>
</View>
)
}