Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem is that when headerTransparent: true accessibleId/ TestID does not work #23286

Closed
TesterAllmax opened this issue Feb 4, 2019 · 3 comments
Labels
Bug Resolution: Locked This issue was locked by the bot.

Comments

@TesterAllmax
Copy link

TesterAllmax commented Feb 4, 2019

The problem

There’s a header in the app, that contains button back. Header has prop headerTransparent: true, which applies position: absolute to header. When headerTransparent: true, Appium Inspector can’t find button back inside header. When headerTransparent: false, Appium Inspector is able to find header and button back in it.

Code To Reproduce Issue

Sample component code:

export const CloseButton = ({ onPress, testID }: { onPress: () => void, testID: string }) => (
  <TouchableOpacity style={styles.wrapper} onPress={onPress} testID={testID}>
    <Image source={images.closeButton} />
  </TouchableOpacity>
);

Sample screen code:

class UnconnectedLoginScreen extends PureComponent<Props, State> {
  static navigationOptions: (nav: Props) => StackNavigationOptions = ({ navigation }) => ({
    headerTransparent: true,
    headerStyle: { borderBottomWidth: 0 },
    headerRight: <CloseButton onPress={() => navigation.goBack()} testID="button Close" />,
    headerLeft: null,
  });

Environment

React Native Environment Info:

| software | version
react-navigation: 3.0.5
react-native: 0.57.8
npm

  • Appium version: 1.10.0
  • Desktop OS/version: macOS High Sierra v: 10.13.6
  • Node.js version: 10.15.0
  • Mobile platform/version: iOS 12.1.2
  • Real device or emulator/simulator: real device
@react-native-bot

This comment has been minimized.

@dulmandakh
Copy link
Contributor

Could you please file an issue to react-navigation. Thank you

@TesterAllmax
Copy link
Author

@dulmandakh I sent an issue to react-navigation in February. They could not help

@facebook facebook locked as resolved and limited conversation to collaborators Mar 19, 2020
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Mar 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants