package Ġcom . tw ilio . video . app . screen Ċ Ċ 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 . type Text Ċ 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 . with Id Ċ import Ġandroidx . test . espress o . matcher . View Matchers . is Displayed Ċ import Ġandroidx . test . espress o . matcher . View Matchers . with Text Ċ import Ġandroidx . test . platform . app . Instrumentation Registry . get Instrumentation Ċ import Ġcom . tw ilio . video . app . Email Credentials Ċ import Ġcom . tw ilio . video . app . R Ċ Ċ // ĠTODO ĠMove Ġto Ġcommon Ġmodule Ġas Ġpart Ġof Ġhttps :// issues . corp . tw ilio . com / browse / A HO Y APPS - 1 9 7 Ċ Ċ fun Ġassert Google SignIn Button Is Visible () Ġ{ ĊĠĠĠ Ġon View ( with Id ( R . id . google _ sign _ in _ button )). check ( matches ( is Displayed ())) Ċ } Ċ Ċ fun Ġassert SignIn Error Is Visible () Ġ{ ĊĠĠĠ Ġval Ġerror Title Ġ= Ġget Instrumentation (). target Context . getString ( R . string . login _ screen _ auth _ error _ title ) ĊĠĠĠ Ġon View ( with Text ( error Title )). check ( matches ( is Displayed ())) Ċ } Ċ Ċ fun Ġlogin With Email ( email Credentials : ĠEmail Credentials ) Ġ{ ĊĠĠĠ Ġlogin With Email ( email Credentials . email , Ġemail Credentials . password ) Ċ } Ċ Ċ fun Ġlogin With Wrong Email Cred s ( email Credentials : ĠEmail Credentials ) Ġ{ ĊĠĠĠ Ġlogin With Email ( email Credentials . email , Ġ" foo ") Ċ } Ċ Ċ private Ġfun Ġlogin With Email ( email : ĠString , Ġpassword : ĠString ) Ġ{ ĊĠĠĠ Ġon View ( with Id ( R . id . email _ sign _ in _ button )). perform ( click ()) ĊĠĠĠ Ġon View ( with Id ( R . id . email _ edit text )). perform ( type Text ( email )) ĊĠĠĠ Ġon View ( with Id ( R . id . password _ edit text )). perform ( scrollTo (), Ġtype Text ( password )) ĊĠĠĠ Ġon View ( with Id ( R . id . login _ button )). perform ( click ()) Ċ } Ċ