forked from Ivasoft/mattermost-mobile
Detox/E2E: Account e2e tests in Gekidou (#6584)
* Detox/E2E: Account e2e tests in Gekidou * Fix suite title * Changed ldap port to number * Fix testIDs for settings * Added zephyr test case keys
This commit is contained in:
@@ -65,7 +65,12 @@ const TabletTitle = ({action, enabled = true, onPress, testID, title}: Props) =>
|
||||
<>
|
||||
<View style={styles.container}>
|
||||
<View style={styles.titleContainer}>
|
||||
<Text style={styles.title}>{title}</Text>
|
||||
<Text
|
||||
style={styles.title}
|
||||
testID={`${testID}.title`}
|
||||
>
|
||||
{title}
|
||||
</Text>
|
||||
</View>
|
||||
{Boolean(action) &&
|
||||
<View style={styles.actionContainer}>
|
||||
@@ -73,7 +78,7 @@ const TabletTitle = ({action, enabled = true, onPress, testID, title}: Props) =>
|
||||
disabled={!enabled}
|
||||
onPress={onPress}
|
||||
type={Platform.select({android: 'native', ios: 'opacity'})}
|
||||
testID={testID}
|
||||
testID={`${testID}.${action?.toLocaleLowerCase()}.button`}
|
||||
underlayColor={changeOpacity(theme.centerChannelColor, 0.1)}
|
||||
>
|
||||
<Text style={textStyle}>{action}</Text>
|
||||
|
||||
@@ -9,7 +9,7 @@ exports[`UserStatus should match snapshot, away status 1`] = `
|
||||
"fontSize": 32,
|
||||
}
|
||||
}
|
||||
testID="user_status.icon.away"
|
||||
testID="user_status.indicator.away"
|
||||
/>
|
||||
`;
|
||||
|
||||
@@ -22,7 +22,7 @@ exports[`UserStatus should match snapshot, dnd status 1`] = `
|
||||
"fontSize": 32,
|
||||
}
|
||||
}
|
||||
testID="user_status.icon.dnd"
|
||||
testID="user_status.indicator.dnd"
|
||||
/>
|
||||
`;
|
||||
|
||||
@@ -35,7 +35,7 @@ exports[`UserStatus should match snapshot, online status 1`] = `
|
||||
"fontSize": 32,
|
||||
}
|
||||
}
|
||||
testID="user_status.icon.online"
|
||||
testID="user_status.indicator.online"
|
||||
/>
|
||||
`;
|
||||
|
||||
@@ -48,6 +48,6 @@ exports[`UserStatus should match snapshot, should default to offline status 1`]
|
||||
"fontSize": 32,
|
||||
}
|
||||
}
|
||||
testID="user_status.icon.offline"
|
||||
testID="user_status.indicator.offline"
|
||||
/>
|
||||
`;
|
||||
|
||||
@@ -40,7 +40,7 @@ const UserStatus = ({size = 6, status = General.OFFLINE}: UserStatusProps) => {
|
||||
<CompassIcon
|
||||
name={iconName}
|
||||
style={{fontSize: size, color: iconColor}}
|
||||
testID={`user_status.icon.${status}`}
|
||||
testID={`user_status.indicator.${status}`}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user