package Ġorg . opp ia . app . on boarding Ċ Ċ import Ġandroidx . test . core . app . Activity Scenario . launch Ċ import Ġandroidx . test . espress o . Esp ress o . on View Ċ import Ġandroidx . test . espress o . action . View Actions . click Ċ import Ġandroidx . test . espress o . action . View Actions . swipe Left Ċ import Ġandroidx . test . espress o . action . View Actions . swipe Right Ċ import Ġandroidx . test . espress o . assertion . View Assertions . does NotExist Ċ import Ġandroidx . test . espress o . assertion . View Assertions . matches Ċ import Ġandroidx . test . espress o . contrib . ViewPager Actions . scrollTo Page Ċ import Ġandroidx . test . espress o . intent . Intent s Ċ import Ġandroidx . test . espress o . intent . Intent s . int ended Ċ import Ġandroidx . test . espress o . intent . matcher . Intent Matchers . has Component Ċ import Ġandroidx . test . espress o . matcher . View Matchers . is Comp let ely Displayed Ċ import Ġandroidx . test . espress o . matcher . View Matchers . is Displayed Ċ import Ġandroidx . test . espress o . matcher . View Matchers . is Root Ċ import Ġandroidx . test . espress o . matcher . View Matchers . with Alpha Ċ import Ġandroidx . test . espress o . matcher . View Matchers . with Content Description Ċ import Ġandroidx . test . espress o . matcher . View Matchers . with Id Ċ import Ġandroidx . test . espress o . matcher . View Matchers . with Text Ċ import Ġandroidx . test . ext . junit . runners . Android JUnit 4 Ċ import Ġorg . hamcrest . Core Matchers . all Of Ċ import Ġorg . hamcrest . Core Matchers . not Ċ import Ġorg . junit . After Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ import Ġorg . opp ia . app . R Ċ import Ġorg . opp ia . app . profile . Profile Activity Ċ import Ġorg . opp ia . app . utility . Orientation Change Action . Companion . orientation Land scape Ċ Ċ /** ĠTests Ġfor Ġ[ On boarding Fragment ]. Ġ*/ Ċ @ RunWith ( Android JUnit 4 :: class ) Ċ class ĠOn boarding Fragment Test Ġ{ ĊĊĠ Ġ@ Before ĊĠ Ġfun ĠsetUp () Ġ{ ĊĠĠĠ ĠInt ents . init () ĊĠ Ġ} ĊĊĠ Ġ@ After ĊĠ Ġfun ĠtearDown () Ġ{ ĊĠĠĠ ĠInt ents . release () ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Default Slide Title _ is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ title _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 0 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Default Slide Description _ is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ description _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 0 _ description ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Default Slide Image _ is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ image _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Content Description ( R . string . on boarding _ slide _ 0 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Default Slide _ index 0 Dot IsActive _ other Dot s Are Inactive () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . on boarding _ dot _ 0 ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Alpha ( 1 . 0 F ))) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . on boarding _ dot _ 1 ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Alpha ( 0 . 3 F ))) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . on boarding _ dot _ 2 ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Alpha ( 0 . 3 F ))) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . on boarding _ dot _ 3 ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Alpha ( 0 . 3 F ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Default Slide _ skip Button Is Visible () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . skip _ text _ view )). check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Default Slide _ click Skip Button _ shifts To Last Slide () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . skip _ text _ view )). perform ( click ()) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ title _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 3 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Default Slide _ get Started Button IsNot Visible () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . get _ started _ button )). check ( does NotExist ()) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ swipe Right _ does Not Work () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( swipe Right ()) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ title _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 0 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 1 Title _ is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 1 )) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ title _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 1 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 1 Description _ is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 1 )) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ description _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 1 _ description ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 1 Image _ is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 1 )) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ image _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Content Description ( R . string . on boarding _ slide _ 1 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 1 _ index 1 Dot IsActive _ other Dot s Are Inactive () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 1 )) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . on boarding _ dot _ 0 ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Alpha ( 0 . 3 F ))) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . on boarding _ dot _ 1 ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Alpha ( 1 . 0 F ))) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . on boarding _ dot _ 2 ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Alpha ( 0 . 3 F ))) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . on boarding _ dot _ 3 ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Alpha ( 0 . 3 F ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 1 _ skip Button Is Visible () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 1 )) ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . skip _ text _ view )). check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 1 _ click Skip Button _ shifts To Last Slide () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 1 )) ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . skip _ text _ view )). perform ( click ()) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ title _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 3 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 1 _ get Started Button IsNot Visible () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 1 )) ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . get _ started _ button )). check ( does NotExist ()) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ swipe Left Then Swipe Right _ is Working () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( swipe Left ()) ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( swipe Right ()) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ title _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 0 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 2 Title _ is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 2 )) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ title _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 2 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 2 Description _ is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 2 )) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ description _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 2 _ description ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 2 Image _ is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 2 )) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ image _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Content Description ( R . string . on boarding _ slide _ 2 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 2 _ index 2 Dot IsActive _ other Dot s Are Inactive () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 2 )) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . on boarding _ dot _ 0 ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Alpha ( 0 . 3 F ))) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . on boarding _ dot _ 1 ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Alpha ( 0 . 3 F ))) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . on boarding _ dot _ 2 ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Alpha ( 1 . 0 F ))) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . on boarding _ dot _ 3 ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Alpha ( 0 . 3 F ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 2 _ skip Button Is Visible () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 2 )) ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . skip _ text _ view )). check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 2 _ click Skip Button _ shifts To Last Slide () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 2 )) ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . skip _ text _ view )). perform ( click ()) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ title _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 3 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 2 _ get Started Button IsNot Visible () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 2 )) ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . get _ started _ button )). check ( matches ( not ( is Displayed ()))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 3 Title _ is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 3 )) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ title _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 3 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 3 Description _ is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 3 )) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ description _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 3 _ description ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 3 Image _ is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 3 )) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ image _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Content Description ( R . string . on boarding _ slide _ 3 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 3 _ skip Button IsNot Visible () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 3 )) ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . skip _ text _ view )). check ( matches ( not ( is Displayed ()))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 3 _ get Started Button Is Visible () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 3 )) ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . get _ started _ button )). check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ check Slide 3 _ click Get Started Button _ opens Profile Activity () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 3 )) ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . get _ started _ button )). perform ( click ()) ĊĠĠĠĠĠ Ġintended ( has Component ( Profile Activity :: class . java . name )) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ swipe Left On Last Slide _ does Not Work () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 3 )) ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( swipe Left ()) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ title _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 3 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ slide 0 Title _ change Orientation _ title Is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( is Root ()). perform ( orientation Land scape ()) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ title _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 0 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ moveTo Slide 1 _ change Orientation _ title Is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . on boarding _ slide _ view _ pager )). perform ( scrollTo Page ( 1 )) ĊĠĠĠĠĠ Ġon View ( is Root ()). perform ( orientation Land scape ()) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ title _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Comp let ely Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 1 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} ĊĊĠ Ġ@ Test ĊĠ Ġfun Ġtest On boarding Fragment _ click On Skip _ change Orientation _ title Is Correct () Ġ{ ĊĠĠĠ Ġlaunch ( On boarding Activity :: class . java ). use Ġ{ ĊĠĠĠĠĠ Ġon View ( with Id ( R . id . skip _ text _ view )). perform ( click ()) ĊĠĠĠĠĠ Ġon View ( is Root ()). perform ( orientation Land scape ()) ĊĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠ Ġall Of ( ĊĠĠĠĠĠĠĠĠĠ Ġwith Id ( R . id . slide _ title _ text _ view ), ĊĠĠĠĠĠĠĠĠĠ Ġis Displayed () ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠ Ġ). check ( matches ( with Text ( R . string . on boarding _ slide _ 3 _ title ))) ĊĠĠĠ Ġ} ĊĠ Ġ} Ċ } Ċ