Open andreasalt41 opened 10 months ago
Facing the same issue with Detox 20.13.5 RN 0.71.6 Xcode 15
Duplicate of #3949?
I fuond the problem and I found a temporary workaround. Detox got stuck because i was testing a view that embeds a native-base Menu as you can see on the below code. The strange thing was that i was not testing the menu but a button inside the view. The only presence of the Menu let Detox to stuck when the view was rendered. By commenting the Menu solved the problem. Support is requested to find a lond term solution. Detox should support Native-Base Menu
` import React from 'react'; import type { Element } from 'react'; import { connect } from 'react-redux'; import { ImageBackground } from 'react-native'; import { View, Button, VStack, Menu, Image, } from 'native-base'; import { receiveLocale } from 'yeppik-common/lib/actions'; import type { Store } from 'yeppik-common/lib/flow-types'; import { FontAwesomeIcon } from '@fortawesome/react-native-fontawesome'; import { faGlobe } from '@fortawesome/pro-regular-svg-icons/faGlobe'; import { faAngleDown } from '@fortawesome/pro-regular-svg-icons/faAngleDown'; import { faRight } from '@fortawesome/pro-solid-svg-icons/faRight'; import type { Navigation } from '../types';
import onboardingBg from '../../../assets/onboarding-bg1.webp'; import logo from '../../../assets/logoWhite.png'; import variables from '../../theme/variables/platform'; import { ButtonText } from '../common/translated';
type OwnProps = {| navigation: Navigation, |} type StateProps = {| locale: string, country: string, |};
type DispatchProps = {| handleUpdateLocale: (string) => any |};
type Props = {| ...OwnProps, ...StateProps, ...DispatchProps, |};
const styles = { imageBackground: { width: variables.deviceWidth, height: variables.deviceHeight, flex: 1, }, language: { it: 'Italiano', en: 'English', }, };
const imageHeight = variables.deviceWidth * 0.8;
const Onboarding = ({ locale, handleUpdateLocale, navigation, }: Props): Element<*> => (
);
const mapStateToProps = ({ locale, country }: Store): StateProps => ({ locale, country });
const mapDispatchToProps = (dispatch: Function): DispatchProps => ({ handleUpdateLocale: locale => dispatch(receiveLocale(locale)), });
export { Onboarding as UnconnectedOnboarding };
export default connect < Props, OwnProps, StateProps, DispatchProps, Store, _ >( mapStateToProps, mapDispatchToProps, )(Onboarding); `
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back.
Thank you for your contributions!
For more information on bots in this repository, read this discussion.
What happened?
Test is not able to start and stuck after app launches.
package-lock.json package.json
What was the expected behaviour?
Test Would start after "beforeAll" stage
Was it tested on latest Detox?
Did your test throw out a timeout?
Help us reproduce this issue!
No response
In what environment did this happen?
Detox version: 20.13.5 React Native version: 0.72.4 Has Fabric (React Native's new rendering system) enabled: no Node version: v16.13.0 Device model: iPhone13 iOS version: 15.0 macOS version: Ventura 13.5 Xcode version: Version 15.0 (15A240d) Test-runner (select one): jest
Detox logs
Detox logs
[detox.log](https://github.com/wix/Detox/files/13390373/detox.log) [detox.trace.json](https://github.com/wix/Detox/files/13390374/detox.trace.json)Device logs
Device logs
[D046BA25-92E9-4E85-B58C-4DADFAA409B5 2023-11-17 09-50-56Z.startup.log.zip](https://github.com/wix/Detox/files/13390407/D046BA25-92E9-4E85-B58C-4DADFAA409B5.2023-11-17.09-50-56Z.startup.log.zip)More data, please!
No response