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

Detox: beef up onboarding and tutorial tests #1148

Merged
merged 2 commits into from
Oct 22, 2019

Conversation

ibrahimtaveras00
Copy link
Contributor

This PR adds assertions while going through onboarding carousel as well as the tutorial wizard

Copy link
Contributor

@brunobar79 brunobar79 left a 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'}>
Copy link
Contributor

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'}>
Copy link
Contributor

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'}>
Copy link
Contributor

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'}>
Copy link
Contributor

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'}>
Copy link
Contributor

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'}>
Copy link
Contributor

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'}>
Copy link
Contributor

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'}>
Copy link
Contributor

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'}>
Copy link
Contributor

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'}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@ibrahimtaveras00 ibrahimtaveras00 removed the request for review from estebanmino October 21, 2019 23:58
@brunobar79 brunobar79 force-pushed the update-onboarding-wizard-tests branch from a2a4ae0 to e73cd8b Compare October 22, 2019 02:06
@brunobar79
Copy link
Contributor

Ignore my comments, our prettier config likes that 😅

@ibrahimtaveras00 ibrahimtaveras00 merged commit b7c7299 into develop Oct 22, 2019
@ibrahimtaveras00 ibrahimtaveras00 deleted the update-onboarding-wizard-tests branch October 22, 2019 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants