package Ġtim . rij ck a ert . be . better bottom bar . robot Ċ Ċ import Ġandroid . support . test . espress o . View Interaction Ċ import Ġandroid . support . test . espress o . action . View Actions Ċ import Ġandroid . support . test . espress o . assertion . View Assertions Ċ import Ġandroid . support . test . espress o . matcher . View Matchers Ċ Ċ open Ġclass ĠAssertion Robot ( val Ġview : ĠView Interaction ) Ġ{ ĊĠĠĠ Ġfun Ġtap It (): ĠAssertion Robot Ġ{ ĊĠĠĠĠĠĠĠ Ġview . perform ( View Actions . click ()) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġis Displayed (): ĠAssertion Robot Ġ{ ĊĠĠĠĠĠĠĠ Ġview . check ( View Assertions . matches ( View Matchers . is Displayed ())) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġis Comp let ely Displayed (): ĠAssertion Robot Ġ{ ĊĠĠĠĠĠĠĠ Ġview . check ( View Assertions . matches ( View Matchers . is Comp let ely Displayed ())) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġis Display ing At Least ( minimum Visible Percentage : ĠInt ): ĠAssertion Robot Ġ{ ĊĠĠĠĠĠĠĠ Ġview . check ( View Assertions . matches ( View Matchers . is Display ing At Least ( minimum Visible Percentage ))) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfun Ġdoes NotExist (): ĠAssertion Robot Ġ{ ĊĠĠĠĠĠĠĠ Ġview . check ( View Assertions . does NotExist ()) ĊĠĠĠĠĠĠĠ Ġreturn Ġthis ĊĠĠĠ Ġ} Ċ }