Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

e2e

БесплатноЗапускает вложенные скриптыНе проверен

End-to-end test TrueSheet on the iOS simulator, the Android emulator, and mobile web (Safari / Chrome) — build and install the bare example or serve the expo…

lodev09от lodev09★ 2 115 звёзд на GitHub

Об этом скилле

E2E

Verify TrueSheet's behavior on the iOS simulator, the Android emulator, and mobile web with evidence, not eyeballing. Every claim — "fixed", "regression", "pre-existing" — should come with a frame trace, an event log, a debug log line, a viewport readout, or an A/B result against HEAD.

Read argent-device-interact before driving a device.

When to use

  • A change in ios/, android/, or the web sheet (src/web, *.web.tsx) needs to be exercised on a device or browser, or reviewed for regressions.
  • Something visibly misbehaves: a sheet, footer, or dim jumps, flickers, or lands at the wrong height.
  • Event or timing correctness: onPositionChange realtime vs settled, detent changes, props applied (or lost) around present, dismiss, cancelled swipes, or stacked sheets.
  • A timing-dependent race or crash needs a deterministic repro.
  • Web keyboard or visual-viewport behavior in mobile Safari or Chrome.
  • A bug report needs classifying as a regression or pre-existing by comparing against HEAD.

1. Build, install, launch

Native: bare example (example/bare), iOS bundle id and Android package are both truesheet.example (Android activity .MainActivity). Native library changes need a rebuild; JS changes hot-reload through Metro.

  1. Metro: yarn bare start as a background command with the max timeout. It dies at the background time limit (the app then shows "Fast Refresh disconnected") and when files under the repo switch between symlink and directory (e.g. .claude/skills) — restart it, with --reset-cache if it reports a path "already exists in the file map as a file". Never run two Metros on 8081, and never kill another project's Metro there (see Android below for --port 8082).
  2. Device: list-devices, prefer the booted simulator or emulator of the platform under test.
  3. Build and install, then launch-app. launch-app relaunches the process, so app state resets.

iOS

react-native run-ios fails on Xcode 27 (it opens the removed Simulator.app), so run xcodebuild from example/bare/ios:

xcodebuild -workspace TrueSheetExample.xcworkspace -scheme TrueSheetExample \
  -configuration Debug -destination 'id=<UDID>' -derivedDataPath build build \
  > /tmp/truesheet-xcodebuild.log 2>&1; echo "EXIT $?"; grep -c "BUILD SUCCEEDED" /tmp/truesheet-xcodebuild.log

An incremental rebuild after one .mm edit takes about a minute. Install with argent reinstall-app and example/bare/ios/build/Build/Products/Debug-iphonesimulator/TrueSheetExample.app.

A branch that adds a codegen prop fails with "no member named X in TrueSheetViewProps" until pod install in example/bare/ios. Local CocoaPods rewrites the COCOAPODS: line of Podfile.lock; revert it only after the last build (xcodebuild fails "sandbox not in sync" otherwise).

Android

Boot the emulator yourself with the hardware GPU, as a background command with the max timeout:

~/Library/Android/sdk/emulator/emulator -avd Pixel_10_Pro_XL -gpu host -noaudio -no-boot-anim

argent boot-device passes -gpu auto, which on macOS falls back to SwiftShader (software rendering): the map and sheet animations drop frames. Check with adb shell dumpsys SurfaceFlinger | grep GLES — it should not say SwiftShader. If an emulator is already running on SwiftShader, adb emu kill it and boot again with the command above.

cd example/bare/android && ./gradlew app:installDebug -PreactNativeArchitectures=arm64-v8a

Builds and installs in one step (a library-only incremental rebuild is about 10 s). The APK is example/bare/android/app/build/outputs/apk/debug/app-debug.apk — copy it per variant for A/B (§4).

  • Run one Gradle build at a time: every example compiles the library into the shared root android/build, so parallel builds (or switching between bare and expo) leave stale codegen (NoClassDefFoundError ...TrueSheetViewManagerInterface). Recover with rm -rf android/build and a single rebuild.

  • Metro on another port (8081 taken): adb reverse is not enough, the emulator dials 10.0.2.2:8081 and loads the other project's bundle (redbox "Cannot read property 'EventEmitter' of undefined"). Point the app at the new port, relaunch, and pass port: 8082 to the argent debugger tools. When done, delete it (adb shell run-as truesheet.example rm shared_prefs/truesheet.example_preferences.xml).

    printf '<?xml version="1.0" encoding="utf-8"?>\n<map><string name="debug_http_host">10.0.2.2:8082</string></map>\n' \
      | adb shell "run-as truesheet.example sh -c 'mkdir -p shared_prefs && cat > shared_prefs/truesheet.example_preferences.xml'"
    

Web

No build: serve the expo example on web (yarn expo web --port 8090) and open it with open-url in iOS Simulator Safari or Android emulator Chrome. See references/web.md.

2. Example app map

Launch (or / on web) lands on MapScreen with the main ReanimatedTrueSheet (dismissible={false}) at peek. Reveal its button

Полный SKILL.md на GitHub

Установить e2e в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/frame-analysis.mdreferences/native-debugging.mdreferences/runtime-hooks.mdreferences/web.mdscripts/sheet-hooks.jsscripts/track_column.py

FAQ

Что делает скилл e2e?

End-to-end test TrueSheet on the iOS simulator, the Android emulator, and mobile web (Safari / Chrome) — build and install the bare example or serve the expo example on web, drive the repro screens with argent, A/B against HEAD, and collect hard evidence (per-frame pixel and dim tracking, onPositionChange realtime/settle logs, live prop overrides including mid-gesture, temporary native logs, forced timing races, crash triage, live viewport readouts on web). Use when asked to build and e2e on iOS, Android, or web, verify or review a change in ios/, android/, or the web sheet (src/web, *.web.tsx), reproduce a visual glitch (sheet, footer, or dim jumps, flicker, wrong height), check position or detent events, check web keyboard or visual-viewport behavior, test prop-update timing around present/dismiss/cancelled swipes, reproduce a race or crash, or decide whether a bug is a regression vs HEAD.

Как установить скилл e2e?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл e2e запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить e2e с