Closed devapro closed 2 months ago
Added composeTestTag property to AndroidFindBy annotation. This property makes simple writing tests for android Compose UI
What types of changes are you proposing/introducing to Java client? Put an x in the boxes that apply
x
Android Compose UI by default provide test tag for testing. However, it doesn't work out the box in the Appium.
For example:
// Compose view IconButton( modifier = Modifier.semantics { testTag = "somTestTag" }, onClick = {.... } ) { .....
// Appium page object @AndroidFindBy(uiAutomator = "new UiSelector().resourceId(\"somTestTag\")") protected WebElement iconButton;
With changes from this PR, code will be simplified:
@AndroidFindBy(composeTestTag = "somTestTag") protected WebElement iconButton;
:white_check_mark:login: devapro / (d240bb5871f27c5964ef5cb5596a878025edcbe4)The committers listed above are authorized under a signed CLA.
Great PR 👍 I think, you also need to update public @interface AndroidBy {} with the composeTestTag as well
public @interface AndroidBy {}
composeTestTag
Change list
Added composeTestTag property to AndroidFindBy annotation. This property makes simple writing tests for android Compose UI
Types of changes
What types of changes are you proposing/introducing to Java client? Put an
x
in the boxes that applyDetails
Android Compose UI by default provide test tag for testing. However, it doesn't work out the box in the Appium.
For example:
With changes from this PR, code will be simplified: