Fix nightly E2E startup synchronization
This commit is contained in:
@@ -218,6 +218,12 @@ jobs:
|
|||||||
- name: Mark Android emulator phase
|
- name: Mark Android emulator phase
|
||||||
run: echo "Booting the Android emulator" > artifacts/android/phase.txt
|
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
|
- name: Boot Android emulator and run Maestro suite
|
||||||
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed # v2.34.0
|
uses: reactivecircus/android-emulator-runner@1dcd0090116d15e7c562f8db72807de5e036a4ed # v2.34.0
|
||||||
with:
|
with:
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ appId: xyz.blueskyweb.app
|
|||||||
visible: "Continue"
|
visible: "Continue"
|
||||||
timeout: 180000
|
timeout: 180000
|
||||||
- tapOn: "Continue"
|
- tapOn: "Continue"
|
||||||
|
- back
|
||||||
- extendedWaitUntil:
|
- extendedWaitUntil:
|
||||||
visible:
|
visible:
|
||||||
id: e2eProxyHeaderInput
|
id: e2eProxyHeaderInput
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ export function TestCtrls() {
|
|||||||
const {logoutEveryAccount, login} = useSessionApi()
|
const {logoutEveryAccount, login} = useSessionApi()
|
||||||
const onboardingDispatch = useOnboardingDispatch()
|
const onboardingDispatch = useOnboardingDispatch()
|
||||||
const {setShowLoggedOut} = useLoggedOutViewControls()
|
const {setShowLoggedOut} = useLoggedOutViewControls()
|
||||||
|
const [isProxyConfigured, setIsProxyConfigured] = useState(false)
|
||||||
const onPressSignInAlice = async () => {
|
const onPressSignInAlice = async () => {
|
||||||
console.info('[E2E] Signing in as Alice')
|
console.info('[E2E] Signing in as Alice')
|
||||||
await login(
|
await login(
|
||||||
@@ -63,21 +64,26 @@ export function TestCtrls() {
|
|||||||
const header = `${proxyHeader}#bsky_appview`
|
const header = `${proxyHeader}#bsky_appview`
|
||||||
BLUESKY_PROXY_HEADER.set(header)
|
BLUESKY_PROXY_HEADER.set(header)
|
||||||
agent.configureProxy(header as any)
|
agent.configureProxy(header as any)
|
||||||
|
setIsProxyConfigured(true)
|
||||||
}}
|
}}
|
||||||
style={BTN}
|
style={BTN}
|
||||||
/>
|
/>
|
||||||
<Pressable
|
{isProxyConfigured && (
|
||||||
testID="e2eSignInAlice"
|
<>
|
||||||
onPress={onPressSignInAlice}
|
<Pressable
|
||||||
accessibilityRole="button"
|
testID="e2eSignInAlice"
|
||||||
style={BTN}
|
onPress={onPressSignInAlice}
|
||||||
/>
|
accessibilityRole="button"
|
||||||
<Pressable
|
style={BTN}
|
||||||
testID="e2eSignInBob"
|
/>
|
||||||
onPress={onPressSignInBob}
|
<Pressable
|
||||||
accessibilityRole="button"
|
testID="e2eSignInBob"
|
||||||
style={BTN}
|
onPress={onPressSignInBob}
|
||||||
/>
|
accessibilityRole="button"
|
||||||
|
style={BTN}
|
||||||
|
/>
|
||||||
|
</>
|
||||||
|
)}
|
||||||
<Pressable
|
<Pressable
|
||||||
testID="e2eSignOut"
|
testID="e2eSignOut"
|
||||||
onPress={() => logoutEveryAccount('Settings')}
|
onPress={() => logoutEveryAccount('Settings')}
|
||||||
|
|||||||
Reference in New Issue
Block a user