Skip to content

Update compose text field assertion steps, add new steps to assert disabled status#46

Merged
smugleafdev merged 2 commits into
mainfrom
feature/disabled-text-field
Jun 26, 2026
Merged

Update compose text field assertion steps, add new steps to assert disabled status#46
smugleafdev merged 2 commits into
mainfrom
feature/disabled-text-field

Conversation

@smugleafdev

Copy link
Copy Markdown
Collaborator

Compose text field assertion steps no longer look for hasSetTextAction() which is only there when the node is enabled. Now they look for SemanticsMatcher.keyIsDefined(SemanticsProperties.EditableText) which is on both enabled and not enabled text fields, but not on other nodes like text or buttons. Compose text field action steps remain the same since there aren't a lot of actions one can do on a disabled node.

Added new text field assertion steps that specifically look for isNotEnabled(). Will not be adding isEnabled() checks to existing steps.

@smugleafdev smugleafdev added the enhancement New feature or request label Jun 24, 2026
@smugleafdev smugleafdev merged commit 589ceab into main Jun 26, 2026
2 checks passed
@smugleafdev smugleafdev deleted the feature/disabled-text-field branch June 26, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants