Command Palette

Search for a command to run...

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

test-staging-branch

БесплатноБез исполняемых скриптовНе проверен

Test feature branches on Vercel preview deployments using Chrome automation and Gmail OTP

different-aiот different-ai★ 256 звёзд на GitHub19 установок в других каталогах

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

What I Do

End-to-end test feature branches on Vercel preview deployments:

  1. Wait for Vercel deployment to complete
  2. Login via Chrome MCP (Gmail OTP flow)
  3. Test the specific feature
  4. Report results on GitHub (without leaking sensitive data)

Prerequisites

  • Chrome DevTools MCP configured
  • Vercel CLI authenticated with --scope prologe
  • Access to Gmail for OTP codes
  • GitHub CLI (gh) authenticated

Workflow

1. Wait for Deployment

# Get latest preview deployment for the branch
BRANCH="feat/your-branch-name"
LATEST=$(vercel ls --scope prologe 2>/dev/null | grep -i "$BRANCH" | head -1 | awk '{print $2}')

# Or get the most recent deployment
LATEST=$(vercel ls --scope prologe 2>/dev/null | head -1 | awk '{print $2}')

echo "Deployment URL: $LATEST"

# Wait for Ready status (up to 5 min)
vercel inspect "$LATEST" --scope prologe --wait --timeout 5m

Output to check:

  • status: ● Ready → proceed to testing
  • status: ● Building → still building
  • status: ● Error → check build logs

2. Login Flow (Token-Efficient)

CRITICAL: Minimize snapshots. Each snapshot costs tokens.

// Step 1: Navigate to preview deployment
chrome_navigate_page({ url: 'https://your-deployment-url.vercel.app' });

// Step 2: Wait for page load, take ONE snapshot
chrome_wait_for({ text: 'Sign in', timeout: 10000 });
chrome_take_snapshot();

// Step 3: Click login button (find uid from snapshot)
chrome_click({ uid: 'login-button-uid' });

// Step 4: Wait for Privy modal, take snapshot
chrome_wait_for({ text: 'Email', timeout: 5000 });
chrome_take_snapshot();

// Step 5: Enter email
chrome_fill({ uid: 'email-input-uid', value: '[email protected]' });
chrome_click({ uid: 'continue-button-uid' });

3. Get OTP from Gmail

Navigate to Gmail, find OTP code:

// Open Gmail in new tab
chrome_new_page({ url: 'https://mail.google.com' });

// Wait for inbox
chrome_wait_for({ text: 'Inbox', timeout: 30000 });

// Take snapshot to find latest email
chrome_take_snapshot();

// Click on Privy email (should be recent)
chrome_click({ uid: 'privy-email-row-uid' });

// Wait for email to load
chrome_wait_for({ text: 'verification code', timeout: 5000 });

// Extract OTP with script (faster than snapshot)
chrome_evaluate_script({
  function: `() => {
    const body = document.body.innerText;
    const match = body.match(/\\b\\d{6}\\b/);
    return match ? match[0] : null;
  }`,
});

4. Complete Login

// Switch back to app tab
chrome_list_pages();
chrome_select_page({ pageIdx: 0 });

// Enter OTP
chrome_take_snapshot();
chrome_fill({ uid: 'otp-input-uid', value: '123456' });

// Wait for dashboard
chrome_wait_for({ text: 'Dashboard', timeout: 30000 });

Note: Login typically takes 2-3 minutes. Be patient.

5. Test the Feature

Example for AI Email transfer feature:

// Navigate to settings or relevant page
chrome_navigate_page({
  url: 'https://deployment.vercel.app/dashboard/settings',
});
chrome_wait_for({ text: 'Settings', timeout: 10000 });
chrome_take_snapshot();

// Verify new feature elements exist
// Take screenshot for evidence
chrome_take_screenshot({ filePath: 'test-evidence.png' });

6. Report on GitHub

NEVER include:

  • Actual balances or amounts
  • Email addresses
  • OTP codes
  • API keys or tokens
  • Safe addresses

DO include:

  • Feature worked/failed
  • UI elements verified
  • Error messages (sanitized)
  • Screenshot paths (local only)
# Add comment to PR
gh pr comment $PR_NUMBER --body "## Test Results

**Branch**: feat/your-branch
**Deployment**: ✅ Deployed successfully

### Feature Tested
- [x] New balance endpoint returns correct structure
- [x] UI shows idle/earning/spendable breakdown
- [ ] Transfer flow (not tested - requires bank account)

### Evidence
Verified on preview deployment. All API responses match expected schema."

Token-Efficient Patterns

❌ DON'T

// Taking unnecessary snapshots
chrome_take_snapshot();
chrome_take_snapshot();
chrome_take_snapshot();

✅ DO

// One snapshot, multiple actions
chrome_take_snapshot();
// Use uids from this snapshot for next 2-3 actions
chrome_fill({ uid: 'field1', value: 'x' });
chrome_fill({ uid: 'field2', value: 'y' });
chrome_click({ uid: 'submit' });
// Only snapshot again when page changes

Use wait_for Instead of Snapshot

// Instead of snapshot to check if loaded
chrome_wait_for({ text: 'Dashboard' });
// Only snapshot when you need uids

Use evaluate_script for Data (PREFERRED)

// Extract data without full snapshot
chrome_evaluate_script({
  function: `() => document.querySelector('.balance')?.innerText`,
});

// Check page state without snapshot
chrome_evaluate_script({
  function: `() => ({ url: window.location.href, hasText: document.body.innerText.includes('Dashboard') })`,
});

// Fill form when UIDs are stale
chrome_evaluate_script({
Полный SKILL.md на GitHub

Установить test-staging-branch в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл test-staging-branch?

Test feature branches on Vercel preview deployments using Chrome automation and Gmail OTP

Как установить скилл test-staging-branch?

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

Скилл test-staging-branch запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить test-staging-branch с