diff --git a/.github/scripts/run-nightly-e2e.sh b/.github/scripts/run-nightly-e2e.sh index e2c9942884..72f76ff9b1 100755 --- a/.github/scripts/run-nightly-e2e.sh +++ b/.github/scripts/run-nightly-e2e.sh @@ -159,6 +159,7 @@ phase "Running Maestro flows" set +e maestro test \ --udid "$device_id" \ + --retries 2 \ --format JUNIT \ --output "$artifact_dir/report.xml" \ --config __e2e__/config.yml \ diff --git a/__e2e__/setupApp.yml b/__e2e__/setupApp.yml index ab9623ffba..cc436caa2a 100644 --- a/__e2e__/setupApp.yml +++ b/__e2e__/setupApp.yml @@ -33,4 +33,9 @@ appId: xyz.blueskyweb.app - tapOn: id: e2eProxyHeaderInput - inputText: ${output.result} -- pressKey: Enter +- tapOn: + id: e2eConfigureProxy +- extendedWaitUntil: + visible: + id: e2eSignInAlice + timeout: 60000 diff --git a/src/view/com/testing/TestCtrls.e2e.tsx b/src/view/com/testing/TestCtrls.e2e.tsx index f3f7743b7e..9dbe022142 100644 --- a/src/view/com/testing/TestCtrls.e2e.tsx +++ b/src/view/com/testing/TestCtrls.e2e.tsx @@ -62,6 +62,13 @@ export function TestCtrls() { setShowLoggedOut(false) } const [proxyHeader, setProxyHeader] = useState('') + const onConfigureProxy = () => { + const header = `${proxyHeader}#bsky_appview` + BLUESKY_PROXY_HEADER.set(header) + agent.configureProxy(header as any) + hasConfiguredProxy = true + setIsProxyConfigured(true) + } return ( { - const header = `${proxyHeader}#bsky_appview` - BLUESKY_PROXY_HEADER.set(header) - agent.configureProxy(header as any) - hasConfiguredProxy = true - setIsProxyConfigured(true) - }} + onSubmitEditing={onConfigureProxy} + style={BTN} + /> + {isProxyConfigured && (