Command Palette

Search for a command to run...

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

mobile-a11y-test-author

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

Use when an iOS or Android app needs accessibility tests: XCUITest performAccessibilityAudit (iOS 17+), VoiceOver labels and traits, Espresso…

testlandот testland★ 18 звёзд на GitHub

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

mobile-a11y-test-author

Overview

Native mobile accessibility testing spans two complementary layers:

  • Automated audits catch structural issues (missing labels, contrast failures, undersized tap targets) on every CI run.
  • Assistive-technology checks (VoiceOver, TalkBack) verify what automation cannot observe: announcement order, gesture navigation, hint clarity.

This skill covers both layers on iOS and Android. Full per-platform detail lives in references/ios-audit.md and references/android-checks.md.

Nearest neighbors and differentiation:

  • xcuitest-suite - general XCUITest UI automation; does not cover performAccessibilityAudit, VoiceOver traits, or touch-target checks.
  • espresso-suite - general Espresso UI automation; does not wire AccessibilityChecks, Accessibility Scanner, or TalkBack workflows.

When to use

  • An iOS or Android app needs accessibility (a11y) test coverage.
  • The team must verify WCAG-aligned requirements (labels, contrast, touch targets, focus order) on real or simulated devices.
  • A screen-reader regression (VoiceOver, TalkBack) has been reported and needs a test that guards against recurrence.

iOS - core audit

performAccessibilityAudit() (iOS 17+) audits the current view and fails the test automatically if any issue is found - no explicit assertion needed ([wwdc23][wwdc23]).

import XCTest

final class HomeAccessibilityTests: XCTestCase {
    override func setUpWithError() throws {
        continueAfterFailure = true   // report ALL issues per screen, not just the first
        XCUIApplication().launch()
    }

    func testHomeScreenAudit() throws {
        try XCUIApplication().performAccessibilityAudit()
    }
}

Scoped audits, false-positive suppression, audit-per-screen, VoiceOver label/trait/hint checks, 44pt touch targets, and Accessibility Inspector are in references/ios-audit.md.


Android - core checks

AccessibilityChecks.enable() fires the Accessibility Test Framework on every Espresso perform() call; setRunChecksFromRootView(true) checks the whole hierarchy, not just the interacted view ([atf][atf]). Requires the espresso-accessibility dependency.

import androidx.test.espresso.accessibility.AccessibilityChecks

@RunWith(AndroidJUnit4::class)
class CheckoutAccessibilityTest {
    init {
        AccessibilityChecks.enable().setRunChecksFromRootView(true)
    }

    @Test
    fun applyPromoCode() {
        onView(withId(R.id.promo_field)).perform(typeText("WELCOME10"), closeSoftKeyboard())
        onView(withId(R.id.apply_button)).perform(click())
        // checks fire automatically on every perform()
    }
}

The dependency, suppression, 48dp touch targets, contrast thresholds, contentDescription labelling, and the TalkBack manual workflow are in references/android-checks.md.


CI integration

iOS (GitHub Actions)

jobs:
  a11y-audit:
    runs-on: macos-15
    steps:
      - uses: actions/checkout@v5
      - run: |
          xcodebuild test \
            -project MyApp.xcodeproj \
            -scheme MyApp \
            -destination 'platform=iOS Simulator,name=iPhone 15,OS=latest' \
            -only-testing MyAppUITests/HomeAccessibilityTests \
            -resultBundlePath A11yResults.xcresult
      - uses: actions/upload-artifact@v4
        if: always()
        with:
          name: a11y-xcresult
          path: A11yResults.xcresult

Android (GitHub Actions)

jobs:
  a11y-checks:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v5
      - uses: reactivecircus/android-emulator-runner@v2
        with:
          api-level: 34
          script: ./gradlew connectedAndroidTest -Pandroid.testInstrumentationRunnerArguments.class=com.example.CheckoutAccessibilityTest
      - uses: actions/upload-artifact@v4
        if: always()
        with:
          name: a11y-test-results
          path: app/build/outputs/androidTest-results

Anti-patterns

Anti-pattern Why it fails Fix
continueAfterFailure = false in audit tests Stops after the first issue; misses the rest on the same screen Set continueAfterFailure = true for audit tests ([wwdc23][wwdc23])
No suppression closure; globally ignoring an audit type Hides all failures of that type, not just the known one Suppress by both auditType and element.label (references/ios-audit.md)
Setting accessibilityLabel to the element type "Submit button" - VoiceOver already announces "button" from traits Set label to purpose only: "Submit order" ([uia][uia])
contentDescription on every Text composable Redundant; TalkBack reads text content automatically Omit for plain text; set only for icon-only or image elements ([cd][cd])
Running AccessibilityChecks without `setRu
Полный SKILL.md на GitHub

Установить mobile-a11y-test-author в Claude Code и Claude Desktop

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

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

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

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

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

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

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

.tessl-plugin/plugin.jsonreferences/android-checks.mdreferences/ios-audit.md

FAQ

Что делает скилл mobile-a11y-test-author?

Use when an iOS or Android app needs accessibility tests: XCUITest performAccessibilityAudit (iOS 17+), VoiceOver labels and traits, Espresso AccessibilityChecks, Accessibility Scanner and TalkBack order, plus WCAG checks for labels, 44pt and 48dp touch targets, contrast and focus order.

Как установить скилл mobile-a11y-test-author?

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

Скилл mobile-a11y-test-author запускает скрипты?

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

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

Сравнить mobile-a11y-test-author с