about summary refs log tree commit diff
path: root/src/view/com/modals/ServerInput.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-01-24 09:06:27 -0600
committerGitHub <noreply@github.com>2023-01-24 09:06:27 -0600
commit9027882fb401df2a9df6a89facb2bdb94b8b731b (patch)
treedc60ca1a2cc1be0838229f06b588f56871f2b91e /src/view/com/modals/ServerInput.tsx
parent439305b57e0c20799d87baf92c067ec8e262ea13 (diff)
downloadvoidsky-9027882fb401df2a9df6a89facb2bdb94b8b731b.tar.zst
Account switcher (#85)
* Update the account-create and signin views to use the design system.

Also:
- Add borderDark to the theme
- Start to an account selector in the signin flow

* Dark mode fixes in signin ui

* Track multiple active accounts and provide account-switching UI

* Add test tooling for an in-memory pds

* Add complete integration tests for login and the account switcher
Diffstat (limited to 'src/view/com/modals/ServerInput.tsx')
-rw-r--r--src/view/com/modals/ServerInput.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/modals/ServerInput.tsx b/src/view/com/modals/ServerInput.tsx
index 884fb91e6..c8174f3cd 100644
--- a/src/view/com/modals/ServerInput.tsx
+++ b/src/view/com/modals/ServerInput.tsx
@@ -33,7 +33,7 @@ export function Component({
   }
 
   return (
-    <View style={s.flex1}>
+    <View style={s.flex1} testID="serverInputModal">
       <Text style={[s.textCenter, s.bold, s.f18]}>Choose Service</Text>
       <BottomSheetScrollView style={styles.inner}>
         <View style={styles.group}>
@@ -64,6 +64,7 @@ export function Component({
           <Text style={styles.label}>Other service</Text>
           <View style={{flexDirection: 'row'}}>
             <BottomSheetTextInput
+              testID="customServerTextInput"
               style={styles.textInput}
               placeholder="e.g. https://bsky.app"
               placeholderTextColor={colors.gray4}
@@ -74,6 +75,7 @@ export function Component({
               onChangeText={setCustomUrl}
             />
             <TouchableOpacity
+              testID="customServerSelectBtn"
               style={styles.textInputBtn}
               onPress={() => doSelect(customUrl)}>
               <FontAwesomeIcon