Agent Skills › RSSNext/Folo › mobile-e2e

mobile-e2e

GitHub

用于在 iOS 模拟器或 Android 模拟器中运行 Maestro 端到端测试,验证移动端注册、登录和登出等认证流程。

.agents/skills/mobile-e2e/SKILL.md RSSNext/Folo

Trigger Scenarios

需要验证移动端用户认证流程 需要在 iOS 或 Android 模拟器中执行 E2E 测试

Install

npx skills add RSSNext/Folo --skill mobile-e2e -g -y
More Options

Non-standard path

npx skills add https://github.com/RSSNext/Folo/tree/dev/.agents/skills/mobile-e2e -g -y

Use without installing

npx skills use RSSNext/Folo@mobile-e2e

指定 Agent (Claude Code)

npx skills add RSSNext/Folo --skill mobile-e2e -a claude-code -g -y

安装 repo 全部 skill

npx skills add RSSNext/Folo --all -g -y

预览 repo 内 skill

npx skills add RSSNext/Folo --list

SKILL.md

Frontmatter
{
    "name": "mobile-e2e",
    "description": "Run apps\/mobile Maestro end-to-end tests in this repo. Use when an agent needs to validate mobile auth flows on iOS Simulator or Android Emulator. Current maintained coverage is register, sign out, and sign in.",
    "allowed-tools": "Bash, Read, Write, Edit, Glob, Grep",
    "disable-model-invocation": true
}

Mobile E2E

Run the mobile Maestro tests for apps/mobile.

Files that matter

  • Runner: apps/mobile/e2e/run-maestro.sh
  • iOS auth flow: apps/mobile/e2e/flows/ios/auth.yaml
  • Android auth flow: apps/mobile/e2e/flows/android/core.yaml
  • Shared auth flows: apps/mobile/e2e/flows/shared/*.yaml
  • Artifacts: apps/mobile/e2e/artifacts/

Always do first

From repo root:

cd apps/mobile
pnpm run e2e:doctor
pnpm run typecheck

iOS

Use a simulator .app build, not an Expo development client.

Preferred simulator

Prefer the latest installed iOS runtime and a latest-generation iPhone simulator.

When multiple simulators are available, bias toward the newest iPhone model on the newest installed iOS version.

Boot simulator

xcrun simctl boot <IOS_UDID>
xcrun simctl bootstatus <IOS_UDID> -b
open -a Simulator --args -CurrentDeviceUDID <IOS_UDID>

App bundle

run-maestro.sh can resolve the app bundle from one of these sources:

  • MAESTRO_IOS_APP_PATH
  • a local build-*.tar.gz in apps/mobile
  • an existing DerivedData/.../Release-iphonesimulator/Folo.app

If none of those exist, build one first.

Build simulator app when missing

If Folo.app is not available yet:

cd apps/mobile/ios
pod install
xcodebuild -workspace Folo.xcworkspace \
  -scheme Folo \
  -configuration Release \
  -sdk iphonesimulator \
  -destination 'id=<IOS_UDID>' \
  build

Apple Silicon simulator optimization

When running on an Apple Silicon Mac and building only for the simulator used in the current run, prefer compiling only the active arm64 simulator architecture:

xcodebuild ... \
  ONLY_ACTIVE_ARCH=YES \
  ARCHS=arm64

Use this optimization only for local self-test / e2e simulator builds tied to the current machine. Do not use it when you need a universal simulator app for other machines or when running on Intel Macs.

Expected output pattern:

~/Library/Developer/Xcode/DerivedData/.../Build/Products/Release-iphonesimulator/Folo.app

Run iOS auth flow

cd apps/mobile
MAESTRO_IOS_DEVICE_ID=<IOS_UDID> \
MAESTRO_IOS_APP_PATH=<PATH_TO_Folo.app> \
pnpm run e2e:ios

Android

Use a release APK, not an Expo development build.

Java

Use Android Studio bundled JBR:

export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home"
export PATH="$JAVA_HOME/bin:$PATH"

Android SDK

export ANDROID_HOME="$HOME/Library/Android/sdk"
export ANDROID_SDK_ROOT="$HOME/Library/Android/sdk"

If apps/mobile/android/local.properties is missing, create it with:

echo "sdk.dir=$HOME/Library/Android/sdk" > apps/mobile/android/local.properties

Build release APK

If apps/mobile/android does not exist locally, generate it first with Expo prebuild / run-android tooling.

Then build the release APK:

cd apps/mobile/android
./gradlew app:assembleRelease --console=plain

Expected APK path:

apps/mobile/android/app/build/outputs/apk/release/app-release.apk

Install to emulator

adb -s emulator-5554 install -r apps/mobile/android/app/build/outputs/apk/release/app-release.apk

Run Android auth flow

Start a booted emulator first, then:

cd apps/mobile
pnpm run e2e:android

Result checks

Successful auth validation means:

  • register flow finishes
  • sign-out reaches login-screen
  • login flow makes login-screen disappear

Debugging output

Inspect these folders after a run:

apps/mobile/e2e/artifacts/ios/
apps/mobile/e2e/artifacts/android/

For a one-off focused run, invoke Maestro directly against a single flow and a custom debug directory.

Version History

  • 773f1bf Current 2026-07-25 10:26

Same Skill Collection

.agents/skills/installing-mobile-preview-builds/SKILL.md
.agents/skills/release-promo/SKILL.md
.agents/skills/update-deps/SKILL.md
.claude/skills/release-promo/SKILL.md
.agents/skills/desktop-release/SKILL.md
.agents/skills/mobile-release/SKILL.md
.agents/skills/mobile-self-test/SKILL.md
.claude/skills/desktop-release/SKILL.md
.claude/skills/mobile-release/SKILL.md

Metadata

Files
0
Version
dcfd1fa
Hash
975c25e0
Indexed
2026-07-25 10:26

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 01:10
浙ICP备14020137号-1