Detox/E2E Maintenance: Fix broken iOS e2e tests

This commit is contained in:
Joseph Baylon
2022-12-15 14:47:33 -08:00
parent 3e48e47282
commit 56d2d57291
30 changed files with 98 additions and 42 deletions

View File

@@ -67,6 +67,11 @@ type Props = {
*/
teammateNameDisplay: string;
/**
* test ID
*/
testID?: string;
/**
* toast Icon
*/
@@ -130,7 +135,7 @@ export default function SelectedUsers({
buttonIcon, buttonText, containerHeight = 0,
modalPosition = 0, onPress, onRemove,
selectedIds, setShowToast, showToast = false,
teammateNameDisplay, toastIcon, toastMessage,
teammateNameDisplay, testID, toastIcon, toastMessage,
}: Props) {
const theme = useTheme();
const style = getStyleFromTheme(theme);
@@ -157,7 +162,7 @@ export default function SelectedUsers({
user={selectedIds[id]}
teammateNameDisplay={teammateNameDisplay}
onRemove={onRemove}
testID='create_direct_message.selected_user'
testID={`${testID}.selected_user`}
/>,
);
}
@@ -276,6 +281,7 @@ export default function SelectedUsers({
icon={buttonIcon}
text={buttonText}
disabled={numberSelectedIds > General.MAX_USERS_IN_GM}
testID={`${testID}.start.button`}
/>
</Animated.View>
</Animated.View>

View File

@@ -48,6 +48,7 @@ const TutorialSwipeLeft = ({containerStyle, message, style, textStyles}: Props)
<View
pointerEvents='none'
style={[styles.container, containerStyle]}
testID='tutorial_swipe_left'
>
<View style={[styles.view, style]}>
<LongPressIllustration/>

View File

@@ -48,6 +48,7 @@ const TutorialSwipeLeft = ({containerStyle, message, style, textStyles}: Props)
<View
pointerEvents='none'
style={[styles.container, containerStyle]}
testID='tutorial_swipe_left'
>
<View style={[styles.view, style]}>
<HandSwipeLeft fillColor={theme.centerChannelColor}/>