Fix nightly E2E startup synchronization

This commit is contained in:
Samuel Newman
2026-07-17 20:21:43 +03:00
parent 665a1e23c3
commit 851bf1a2f9
3 changed files with 25 additions and 12 deletions
+6
View File
@@ -218,6 +218,12 @@ jobs:
- name: Mark Android emulator phase
run: echo "Booting the Android emulator" > artifacts/android/phase.txt
- name: Ensure KVM is accessible
run: |
if [ -e /dev/kvm ] && [ ! -w /dev/kvm ]; then
sudo chmod 666 /dev/kvm
fi
- name: Boot Android emulator and run Maestro suite
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed # v2.34.0
with:
+1
View File
@@ -25,6 +25,7 @@ appId: xyz.blueskyweb.app
visible: "Continue"
timeout: 180000
- tapOn: "Continue"
- back
- extendedWaitUntil:
visible:
id: e2eProxyHeaderInput
+18 -12
View File
@@ -24,6 +24,7 @@ export function TestCtrls() {
const {logoutEveryAccount, login} = useSessionApi()
const onboardingDispatch = useOnboardingDispatch()
const {setShowLoggedOut} = useLoggedOutViewControls()
const [isProxyConfigured, setIsProxyConfigured] = useState(false)
const onPressSignInAlice = async () => {
console.info('[E2E] Signing in as Alice')
await login(
@@ -63,21 +64,26 @@ export function TestCtrls() {
const header = `${proxyHeader}#bsky_appview`
BLUESKY_PROXY_HEADER.set(header)
agent.configureProxy(header as any)
setIsProxyConfigured(true)
}}
style={BTN}
/>
<Pressable
testID="e2eSignInAlice"
onPress={onPressSignInAlice}
accessibilityRole="button"
style={BTN}
/>
<Pressable
testID="e2eSignInBob"
onPress={onPressSignInBob}
accessibilityRole="button"
style={BTN}
/>
{isProxyConfigured && (
<>
<Pressable
testID="e2eSignInAlice"
onPress={onPressSignInAlice}
accessibilityRole="button"
style={BTN}
/>
<Pressable
testID="e2eSignInBob"
onPress={onPressSignInBob}
accessibilityRole="button"
style={BTN}
/>
</>
)}
<Pressable
testID="e2eSignOut"
onPress={() => logoutEveryAccount('Settings')}