package Ġcom . hey ze us v . pl ut us wallet . ui . about Ċ Ċ import Ġandroid . os . Bundle Ċ import Ġandroidx . fragment . app . testing . launch Fragment In Container Ċ 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 . scrollTo Ċ import Ġandroidx . test . espress o . action . View Actions . swipe Up Ċ import Ġandroidx . test . espress o . assertion . View Assertions . matches Ċ import Ġandroidx . test . espress o . matcher . View Matchers . is Clickable Ċ import Ġandroidx . test . espress o . matcher . View Matchers . is Displayed Ċ import Ġandroidx . test . espress o . matcher . View Matchers . isEnabled Ċ import Ġandroidx . test . espress o . matcher . View Matchers . with Id Ċ import Ġandroidx . test . ext . junit . runners . Android JUnit 4 Ċ import Ġandroidx . test . filters . Medium Test Ċ import Ġcom . hey ze us v . pl ut us wallet . R Ċ import Ġdagger . h ilt . android . testing . H ilt Android Test Ċ import Ġkotlinx . coroutines . Experimental Cor outines Api Ċ import Ġorg . hamcrest . Core Matchers . not Ċ import Ġorg . junit . Before Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . runner . RunWith Ċ Ċ @ Medium Test Ċ @ RunWith ( Android JUnit 4 :: class ) Ċ @ Experimental Cor outines Api Ċ @ H ilt Android Test Ċ class ĠAbout Fragment Test Ġ{ ĊĊĠĠĠ Ġ@ Before ĊĠĠĠ Ġfun Ġinit () Ġ{ ĊĊĠĠĠĠĠĠĠ Ġ// Ġdisplay ĠAbout Fragment ĊĠĠĠĠĠĠĠ Ġlaunch Fragment In Container < About Fragment >( Bundle (), ĠR . style . App Theme ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġbuttons And Links Enabled Content Hidden () Ġ{ ĊĊĠĠĠĠĠĠĠ Ġ// Ġchecks Ġthat Ġbuttons Ġare Ġenables Ġand Ġcontent Ġis Ġhidden ĊĠĠĠĠĠĠĠ Ġ// Ġchecks Ġto Ġmake Ġsure Ġlinks Ġare Ġclick able ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ changelog _ mb )). check ( matches ( isEnabled ())) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ changelog _ sv )). check ( matches ( not ( is Displayed ()))) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ changelog _ tv )). check ( matches ( not ( is Displayed ()))) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ app _ github _ tv )). check ( matches ( is Clickable ())) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ email _ tv )). check ( matches ( is Clickable ())) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ scroll View )). perform ( swipe Up ()) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ ci _ git _ tv )). check ( matches ( is Clickable ())) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ ci _ mb )). check ( matches ( isEnabled ())) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ ci _ sv )). check ( matches ( not ( is Displayed ()))) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ ci _ license _ tv )). check ( matches ( not ( is Displayed ()))) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ mpc _ git _ tv )). check ( matches ( is Clickable ())) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ mpc _ mb )). check ( matches ( isEnabled ())) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ mpc _ sv )). check ( matches ( not ( is Displayed ()))) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ mpc _ license _ tv )). check ( matches ( not ( is Displayed ()))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġdisplay Change log And License s Then Hide The m () Ġ{ ĊĊĠĠĠĠĠĠĠ Ġ// Ġclicks Ġon Ġbuttons Ġand Ġensures Ġthat ĠScroll View Ġcontaining ĠTextView Ġappears ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ changelog _ mb )). perform ( click ()) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ changelog _ sv )). check ( matches ( is Displayed ())). perform ( swipe Up ()) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ changelog _ tv )). check ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ ci _ mb )). perform ( scrollTo (), Ġclick ()) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ ci _ sv )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( scrollTo ()). check ( matches ( is Displayed ())). perform ( swipe Up ()) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ ci _ license _ tv )). check ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ mpc _ mb )). perform ( scrollTo (), Ġclick ()) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ mpc _ sv )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( scrollTo ()). check ( matches ( is Displayed ())). perform ( swipe Up ()) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ mpc _ license _ tv )). check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġ// Ġclick Ġon Ġbuttons Ġagain Ġand Ġensure Ġthat ĠScroll Views Ġand ĠText Views Ġdis appear ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ mpc _ mb )). perform ( click ()) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ mpc _ sv )). check ( matches ( not ( is Displayed ()))) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ mpc _ license _ tv )). check ( matches ( not ( is Displayed ()))) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ ci _ mb )). perform ( scrollTo (), Ġclick ()) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ ci _ sv )). check ( matches ( not ( is Displayed ()))) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ ci _ license _ tv )). check ( matches ( not ( is Displayed ()))) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ changelog _ mb )). perform ( scrollTo (), Ġclick ()) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ changelog _ sv )). check ( matches ( not ( is Displayed ()))) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . about _ changelog _ tv )). check ( matches ( not ( is Displayed ()))) ĊĠĠĠ Ġ} Ċ }