entering-text

Simulate text input and IME actions in Jetpack Compose UI tests.

Updated Jul 20, 2026
One-click install
npx skills add https://github.com/trancee/MeshLink-template --skill entering-text-trancee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: entering-text
Source: https://github.com/trancee/MeshLink-template/tree/main/.agents/skills/android-testing-skills/compose/actions/entering-text
Command: npx skills add https://github.com/trancee/MeshLink-template --skill entering-text-trancee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill resolves common frustrations in UI testing where developers struggle to correctly simulate user input, handle IME actions, or manage focus states within Jetpack Compose text fields.

Core Features & Use Cases

  • Comprehensive Input Actions: Provides standardized methods for typing, replacing, and clearing text in TextField, OutlinedTextField, and BasicTextField components.
  • IME Action Simulation: Enables testing of keyboard-driven workflows like advancing focus with Next or submitting forms with Search/Done actions.
  • Use Case: Use this skill when you need to verify that a login form correctly advances focus from the username field to the password field upon pressing the IME Next button.

Quick Start

Use the entering-text skill to perform a text replacement on the field tagged with login-username and then trigger the IME action to advance focus.

Frequently Asked Questions about entering-text

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I simulate text input in Jetpack Compose UI tests?

To simulate text input in Jetpack Compose UI tests, use the performTextInput and performTextReplacement APIs from androidx.compose.ui:ui-test-junit4 to programmatically type, replace, or clear text in TextField components.

How can I test IME actions like Next or Done in a Compose text field?

You test IME actions in Jetpack Compose text fields by simulating keyboard-driven workflows like advancing focus with Next or submitting forms with Done, Search, or Go actions during UI test execution.

Do I need to add semantic tags to test Compose text fields?

Yes, you must add semantic tags to your Jetpack Compose composables to target text fields accurately and ensure deterministic test execution when simulating text input and IME interactions.

What is the best way to test form focus advancement in Jetpack Compose?

The best way to test form focus advancement in Jetpack Compose is to simulate text entry in a tagged field and then trigger the IME Next action to verify focus correctly moves to the subsequent text field.

Can I test text replacement and clearance in OutlinedTextField and BasicTextField components?

Yes, you can test text replacement and clearance in OutlinedTextField and BasicTextField components by applying performTextReplacement and text clearance methods within your Jetpack Compose UI test suite.