package Ġbr . com . ever is . so v amu . feature . home . ui Ċ Ċ import Ġandroid . content . Intent Ċ import Ġandroidx . test . core . app . Application Provider Ċ import Ġandroidx . test . espress o . Esp ress o Ċ import Ġandroidx . test . espress o . Esp ress o . on View Ċ import Ġandroidx . test . espress o . View Interaction Ċ import Ġandroidx . test . espress o . action . View Actions .* Ċ import Ġandroidx . test . espress o . assertion . View Assertions . matches Ċ import Ġandroidx . test . espress o . contrib . RecyclerView Actions . scrollTo Position Ċ import Ġandroidx . test . espress o . matcher . View Matchers .* Ċ import Ġandroidx . test . ext . junit . runners . Android JUnit 4 Ċ import Ġbr . com . ever is . so v amu . R Ċ import Ġbr . com . ever is . so v amu . util . recycler Item At Position Ċ import Ġorg . hamcrest . Matchers . not Ċ import Ġorg . junit . runner . RunWith Ċ Ċ @ RunWith ( Android JUnit 4 :: class ) Ċ class ĠHome Robot s Ġ{ ĊĊĠĠĠ Ġval Ġintent Ġ= ĠIntent ( Application Provider . getApplicationContext (), ĠHome Activity :: class . java ) ĊĊĠĠĠ Ġfun Ġsc rum Navigation View (): ĠView Interaction Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġon View ( with Id ( R . id . scr um Fragment )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġblock Navigation View (): ĠView Interaction Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġon View ( with Id ( R . id . block Fragment )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġdaily Navigation View (): ĠView Interaction Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġon View ( with Id ( R . id . daily Fragment )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġsc rum RecyclerView (): ĠView Interaction Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġon View ( with Id ( R . id . rv _ task )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġnotification View (): ĠView Interaction Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġon View ( with Id ( R . id . notification )) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġclick Block Menu (): ĠHome Robot s Ġ{ ĊĠĠĠĠĠĠĠ Ġblock Navigation View (). perform ( click ()) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġclick Daily Menu (): ĠHome Robot s Ġ{ ĊĠĠĠĠĠĠĠ Ġdaily Navigation View (). perform ( click ()) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġclick Sc rum Menu (): ĠHome Robot s Ġ{ ĊĠĠĠĠĠĠĠ Ġsc rum Navigation View (). perform ( click ()) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Show Block View (): ĠHome Robot s Ġ{ ĊĠĠĠĠĠĠĠ Ġblock Navigation View (). check ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Show Sc rum View (): ĠHome Robot s Ġ{ ĊĠĠĠĠĠĠĠ Ġsc rum Navigation View (). check ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Show Daily View (): ĠHome Robot s Ġ{ ĊĠĠĠĠĠĠĠ Ġdaily Navigation View (). check ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġscroll Sc rum RecyclerView (): ĠHome Robot s Ġ{ ĊĠĠĠĠĠĠĠ Ġsc rum RecyclerView (). perform ( scrollTo Position < Sc rum Adapter . ViewHolder >( 3 )) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Last Item (): ĠHome Robot s Ġ{ ĊĠĠĠĠĠĠĠ Ġsc rum RecyclerView (). check ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġmatches ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġre cycler Item At Position ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ 3 , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġhas Desc endant ( with Text (" 9 0 th Ġminute ")) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġswipe Right Notification (): ĠHome Robot s Ġ{ ĊĠĠĠĠĠĠ Ġnotification View (). perform ( swipe Right ()) ĊĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġswipe Left Notification (): ĠHome Robot s Ġ{ ĊĠĠĠĠĠĠĠ Ġnotification View (). perform ( swipe Left ()) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck _ G one _ Notification View (): ĠHome Robot s Ġ{ ĊĠĠĠĠĠĠĠ Ġnotification View (). check ( matches ( not ( is Displayed ()))) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck _ Visible _ Notification View (): ĠHome Robot s Ġ{ ĊĠĠĠĠĠĠĠ Ġnotification View (). check ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġclose Keyboard (): ĠHome Robot s Ġ{ ĊĠĠĠĠĠĠĠ ĠE sp ress o . close Soft Keyboard () ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} Ċ Ċ }