package Ġuk . n hs . n hs x . covid 1 9 . android . app . test helpers . robots Ċ Ċ import Ġandroid . content . Context Ċ import Ġandroidx . annotation . String Res Ċ import Ġandroidx . appcompat . widget . AppCompat Image Button Ċ 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 . click Ċ import Ġandroidx . test . espress o . action . View Actions . scrollTo Ċ import Ġandroidx . test . espress o . assertion . View Assertions . matches Ċ import Ġandroidx . test . espress o . matcher . View Matchers . has Child Count Ċ import Ġandroidx . test . espress o . matcher . View Matchers . is Displayed Ċ 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 Parent Ċ import Ġandroidx . test . espress o . matcher . View Matchers . with Text Ċ import Ġorg . hamcrest . Matchers Ċ import Ġorg . hamcrest . Matchers . not Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . R Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . test helpers . matcher . contains String Resource At Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . test helpers . matcher . is Accessibility Heading Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . test helpers . matcher . paragraph s Container Contains String Resource Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . test helpers . matcher . with Null OrEmpty Content Description Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . test helpers . matcher . with State Color Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . test helpers . matcher . with State String Resource Ċ import Ġuk . n hs . n hs x . covid 1 9 . android . app . test helpers . with Drawable Ċ Ċ class ĠTest Result Robot ( ĊĠĠĠ Ġprivate Ġval Ġcontext : ĠContext Ċ ) Ġ{ ĊĊĠĠĠ Ġfun Ġcheck Activity Display s Negative Already NotIn Isolation () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ negative _ already _ not _ in _ is olation _ subtitle )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ no _ self _ is olation _ description )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Activity Display s Negative Will Be In Isolation () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ positive _ continue _ self _ is olation _ title _ 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . state _ test _ negative _ info )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Activity Display s Negative W ont Be In Isolation () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ negative _ no _ self _ is olation _ subtitle _ text )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ no _ self _ is olation _ description )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Activity Display s Positive Will Be In Isolation () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . self _ isolate _ for )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( scrollTo ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . state _ test _ positive _ info )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ negative _ then _ positive _ continue _ explanation )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Activity Display s Positive Will Be In Isolation ( remaining Days In Isolation : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . self _ isolate _ for )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġval Ġtitle 2 Ġ= Ġcontext . resources . get Quantity String ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . plurals . state _ is olation _ days , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġremaining Days In Isolation , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġremaining Days In Isolation ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Title 2 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( title 2 ))) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . state _ test _ positive _ info )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ negative _ then _ positive _ continue _ explanation )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Activity Display s Positive Continue Isolation () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ positive _ continue _ self _ is olation _ title _ 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . state _ test _ positive _ info )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ positive _ continue _ self _ isolate _ explanation _ 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Activity Display s Positive Continue Isolation ( remaining Days In Isolation : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ positive _ continue _ self _ is olation _ title _ 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġval Ġtitle 2 Ġ= Ġcontext . resources . get Quantity String ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠR . plurals . state _ is olation _ days , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġremaining Days In Isolation , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġremaining Days In Isolation ĊĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Title 2 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( title 2 ))) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . state _ test _ positive _ info )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ positive _ continue _ self _ isolate _ explanation _ 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Activity Display s Positive Continue Isolation No Change () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ positive _ continue _ self _ is olation _ title _ 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . state _ test _ positive _ info )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ positive _ continue _ self _ isolate _ no _ change _ explanation _ 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Activity Display s Positive Will Be In Isolation And Order Test () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . self _ isolate _ for )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ positive _ self _ isolate _ and _ book _ test _ title _ 3 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . state _ test _ positive _ and _ book _ test _ info )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Activity Display s Positive W ont Be In Isolation () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . good News Subtitle )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( scrollTo ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ positive _ no _ self _ is olation _ subtitle )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( scrollTo ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ no _ self _ is olation _ description )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( scrollTo ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Activity Display s Negative After Positive Or Sy mptom atic Will Be In Isolation () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ positive _ continue _ self _ is olation _ title _ 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . state _ test _ positive _ then _ negative _ info )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Activity Display s Void NotIn Isolation () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ void _ already _ not _ in _ is olation _ subtitle )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( scrollTo ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ no _ self _ is olation _ description )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( scrollTo ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Activity Display s P lod Screen () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ plo d _ title )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( scrollTo ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ plo d _ subtitle )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( scrollTo ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ plo d _ description )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( scrollTo ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Activity Display s Void Will Be In Isolation () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . test _ result _ positive _ continue _ self _ is olation _ title _ 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Text ( R . string . state _ test _ void _ info )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġclick Isolation ActionButton () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request ActionButton )). perform ( scrollTo (), Ġclick ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġclick Good News ActionButton () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . good News ActionButton )). perform ( scrollTo (), Ġclick ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġclick Close Button () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Content Description ( R . string . close )). perform ( click ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġclick Service Link () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Online Service Link )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( scrollTo (), Ġclick ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Good News ActionButton Shows Order Free Test () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . good News ActionButton )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( R . string . book _ free _ test ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation ActionButton Shows Book Free Test () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request ActionButton )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( R . string . book _ free _ test ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Good News ActionButton Shows Continue () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . good News ActionButton )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( R . string . continue _ button ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Good News ActionButton Shows Back Home () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . good News ActionButton )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( R . string . back _ to _ home ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation ActionButton Shows Continue () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request ActionButton )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( R . string . continue _ button ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation ActionButton Shows Back Home () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request ActionButton )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( R . string . back _ to _ home ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Exposure Link Is Displayed () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . ex posure Fa qs Link )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( scrollTo ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Displayed ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Exposure Link IsNot Displayed () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request ActionButton )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. perform ( scrollTo ()) ĊĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . ex posure Fa qs Link )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( not ( is Displayed ()))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun ĠView Interaction . check Displayed ( isVisible : ĠBoolean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( isVisible ) Ġcheck ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠ Ġelse Ġcheck ( matches ( not ( is Displayed ()))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun ĠView Interaction . has Ordered Paragraph s (@ String Res Ġvar arg Ġstring ResourceId List : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġstring ResourceId List . forEach Indexed Ġ{ Ġindex , Ġstring ResourceId Ġ-> ĊĠĠĠĠĠĠĠĠĠĠĠ Ġthis . check ( matches ( contains String Resource At ( string ResourceId , Ġindex ))) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Good News Visibility ( isVisible : ĠBoolean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . good News Container )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check Displayed ( isVisible ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation Request Visibility ( isVisible : ĠBoolean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Container )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check Displayed ( isVisible ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Good News Icon Visibility ( isVisible : ĠBoolean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . good News Icon )). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( isVisible ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġperform ( scrollTo ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcheck ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ġelse Ġcheck ( matches ( not ( is Displayed ()))) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Good News Link Visibility ( isVisible : ĠBoolean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . good News Online Service Link )). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( isVisible ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġperform ( scrollTo ()) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcheck ( matches ( is Displayed ())) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} Ġelse Ġcheck ( matches ( not ( is Displayed ()))) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Good News Icon ( drawable ResourceId : ĠInt ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( drawable ResourceId Ġ!= Ġnull ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . good News Icon )) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Drawable ( drawable ResourceId ))) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Good News Title Is Visible () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . good News Title )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check Displayed ( true ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Good News Title String Resource ( string ResourceId : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . good News Title )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( string ResourceId ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Good News Subtitle String Resource ( string ResourceId : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . good News Subtitle )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( string ResourceId ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Good News Info State ( string ResourceId : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . good News Info View )). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcheck ( matches ( with State String Resource ( string ResourceId ))) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcheck ( matches ( with State Color ( R . color . amber ))) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation Request Info State ( string ResourceId : ĠInt , Ġcolour Res : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Info View )). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcheck ( matches ( with State String Resource ( string ResourceId ))) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcheck ( matches ( with State Color ( colour Res ))) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Good News Paragraph Contain String Resources ( var arg Ġstring ResourceId List : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġwith ( on View ( with Id ( R . id . good News Paragraph Container ))) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġif Ġ( string ResourceId List . size Ġ== Ġ 1 ) ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġcheck ( matches ( paragraph s Container Contains String Resource ( string ResourceId List [ 0 ]))) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġelse ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġhas Ordered Paragraph s (* string ResourceId List ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Good News ActionButton TextString Resource ( string ResourceId : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . good News ActionButton )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( string ResourceId ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation Request ActionButton ( string ResourceId : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġif Ġ( string ResourceId Ġ< Ġ 0 ) Ġreturn ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request ActionButton )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( string ResourceId ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation Request Image Is ( drawable ResourceId : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Image )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Drawable ( drawable ResourceId ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation Request Title 1 Is ( string ResourceId : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Title 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( string ResourceId ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation Request Title 2 Is ( text : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Title 2 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( text ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation Request Title 3 Visibility ( isVisible : ĠBoolean ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Title 3 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check Displayed ( isVisible ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Accessibility Container Content Description ( text : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . accessibility Container )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Content Description ( text ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Accessibility Container Is Accessibility Heading () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . accessibility Container )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( is Accessibility Heading ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation Request Title 1 IsNot Accessibility Heading () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Title 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( not ( is Accessibility Heading ()))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation Request Title 2 IsNot Accessibility Heading () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Title 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( not ( is Accessibility Heading ()))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation Request Title 3 IsNot Accessibility Heading () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Title 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( not ( is Accessibility Heading ()))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation Request Title 1 Has Null Content Description () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Title 1 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Null OrEmpty Content Description ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation Request Title 2 Has Null Content Description () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Title 2 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Null OrEmpty Content Description ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation Request Title 3 Has Null Content Description () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Title 3 )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Null OrEmpty Content Description ())) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Exposure Fa qs Link Not Visible () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . ex posure Fa qs Link )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check Displayed ( false ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Exposure Fa qs Link Visible () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . ex posure Fa qs Link )). apply Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġperform ( scrollTo ()) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġcheck Displayed ( true ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Online Service Link Text (@ String Res Ġtext : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Online Service Link )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( with Text ( text ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Isolation Request Paragraph Container Contains ( var arg Ġstring ResourceId List : ĠInt ) Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . is olation Request Paragraph Container )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. has Ordered Paragraph s (* string ResourceId List ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck Has Close Toolbar Option () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( ĊĠĠĠĠĠĠĠĠĠĠĠ ĠMatch ers . all Of ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠMatch ers . instance Of ( AppCompat Image Button :: class . java ), ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġwith Parent ( with Id ( R . id . primary Toolbar )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ) ĊĠĠĠĠĠĠĠ Ġ). check ( matches ( with Content Description ( R . string . close ))) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġcheck No Close Toolbar Option () Ġ{ ĊĠĠĠĠĠĠĠ Ġon View ( with Id ( R . id . primary Toolbar )) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. check ( matches ( has Child Count ( 0 ))) ĊĠĠĠ Ġ} Ċ } Ċ