Skip to content

TestIds not working correctly for Maestro #2743

Open
@ChristopherGabba

Description

@ChristopherGabba

Describe the bug

I am using Maestro and the Ignite boilerplate, and no matter what I name my text fields testId field, maestro never picks it up. I'm not sure if this is a bug with Maestro, or if this is a bug with the ignite TextField component. If it turns out to be Maestro, please feel free to close this issue.

        <TextField
          ref={firstNameInput}
          value={firstName}
          onChangeText={(e) => setProp("firstName", e)}
          autoCapitalize="words"
          autoComplete="name-given"
          autoCorrect={false}
          labelTx="enterNameScreen.firstNameLabel"
          helper={firstNameError}
          status={firstNameError ? "error" : undefined}
          onSubmitEditing={() => lastNameInput.current?.focus()}
          testID={'firstNameTextField'} // <---------------------------- `worthless` field :)
        />
# test.yaml
# TEST ENTERNAMESCREEN
appId: com.chris.testapp
---

- tapOn: 
     id: "firstNameTextField" # never focuses text field, have to use point: 50%,30%

Ignite version

9.8

Additional info

System
platform darwin
arch arm64
cpu 10 cores Apple M2 Pro
directory TestApp /Users/christophergabba/Documents/TestApp

JavaScript (and globally-installed packages)
node 22.6.0 /opt/homebrew/bin/node
npm 10.8.2 /opt/homebrew/bin/npm
@aws-amplify/cli-internal 12.12.0
@aws-amplify/cli 12.12.1
@react-native-community/netinfo 9.4.1
eas-cli 10.2.2
expo-cli 6.3.10
firebase-tools 11.24.1
n 9.1.0
node-gyp 10.0.1
node 20.6.0
npm 10.7.0
pod-install 0.2.2
react-native-spinkit 1.5.1
test-app -
testappwebsite 0.0.0
typescript 5.4.5
yarn 1.22.22
yarn 1.22.22 /opt/homebrew/bin/yarn
create-amplify 1.0.1
pnpm - not installed
bun - not installed
expo 51.0.26 managed

Ignite
ignite-cli 9.8.2 /Users/christophergabba/.npm/_npx/e31027f3785124a8/node_modules/.bin/ignite
ignite src build /Users/christophergabba/.npm/_npx/e31027f3785124a8/node_modules/ignite-cli/build

Android
java 1.8.0_371 /usr/bin/java
android home - /Users/christophergabba/Library/Android/sdk

iOS
xcode 15.4
cocoapods 1.12.1 /opt/homebrew/bin/pod

Tools
git git version 2.39.2 /opt/homebrew/bin/git

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions