-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Detox: beef up onboarding and tutorial tests #1148
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very minor comments but 💯
@@ -72,7 +72,9 @@ class Step2 extends PureComponent { | |||
*/ | |||
content = () => ( | |||
<View style={onboardingStyles.contentContainer}> | |||
<Text style={onboardingStyles.content}>{strings('onboarding_wizard.step2.content1')}</Text> | |||
<Text style={onboardingStyles.content} testID={'step2-title'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when u have 2+ props on the same element, break it down in different lines
@@ -121,7 +121,9 @@ class Step3 extends PureComponent { | |||
*/ | |||
content = () => ( | |||
<View style={onboardingStyles.contentContainer}> | |||
<Text style={onboardingStyles.content}>{strings('onboarding_wizard.step3.content1')}</Text> | |||
<Text style={onboardingStyles.content} testID={'step3-title'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
@@ -136,7 +138,7 @@ class Step3 extends PureComponent { | |||
if (!coachmarkTopReady || !viewTopReady) return null; | |||
return ( | |||
<View style={[styles.main, { top: this.state.viewTop }]}> | |||
<View style={styles.accountLabelContainer}> | |||
<View style={styles.accountLabelContainer} testID={'account-label'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
@@ -87,7 +87,7 @@ class Step4 extends PureComponent { | |||
*/ | |||
content = () => ( | |||
<View style={onboardingStyles.contentContainer}> | |||
<Text style={onboardingStyles.content}> | |||
<Text style={onboardingStyles.content} testID={'step4-title'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
@@ -95,7 +95,9 @@ class Step5 extends PureComponent { | |||
*/ | |||
content = () => ( | |||
<View style={onboardingStyles.contentContainer}> | |||
<Text style={onboardingStyles.content}>{strings('onboarding_wizard.step5.content1')}</Text> | |||
<Text style={onboardingStyles.content} testID={'step5-title'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
@@ -78,7 +78,9 @@ class Step6 extends PureComponent { | |||
*/ | |||
content = () => ( | |||
<View style={onboardingStyles.contentContainer}> | |||
<Text style={onboardingStyles.content}>{strings('onboarding_wizard.step6.content')}</Text> | |||
<Text style={onboardingStyles.content} testID={'step6-title'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
@@ -171,7 +171,9 @@ class Onboarding extends PureComponent { | |||
<ScrollView style={baseStyles.flexGrow} contentContainerStyle={styles.scroll}> | |||
<View style={styles.wrapper}> | |||
<View style={styles.ctas}> | |||
<Text style={styles.title}>{strings('onboarding.title')}</Text> | |||
<Text style={styles.title} testID={'onboarding-screen-title'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
@@ -140,40 +140,49 @@ export default class OnboardingCarousel extends PureComponent { | |||
> | |||
<View key={'1'} style={baseStyles.flexGrow}> | |||
<View style={styles.tab}> | |||
<Text style={styles.title}>{strings('onboarding_carousel.title1')}</Text> | |||
<Text style={styles.title} testID={'carousel-screen-one'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
/> | ||
</View> | ||
</View> | ||
<View key={'2'} style={baseStyles.flexGrow}> | ||
<View style={styles.tab}> | ||
<Text style={styles.title}>{strings('onboarding_carousel.title2')}</Text> | ||
<Text style={styles.title} testID={'carousel-screen-two'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
/> | ||
</View> | ||
</View> | ||
<View key={'3'} style={baseStyles.flexGrow}> | ||
<View style={styles.tab}> | ||
<Text style={styles.title}>{strings('onboarding_carousel.title3')}</Text> | ||
<Text style={styles.title} testID={'carousel-screen-three'}> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
a2a4ae0
to
e73cd8b
Compare
…date-onboarding-wizard-tests
Ignore my comments, our prettier config likes that 😅 |
This PR adds assertions while going through onboarding carousel as well as the tutorial wizard