android - Espresso how to assert intent data -


this intent:

-intent { act=android.intent.action.view dat=smsto:xxxxxxx@xxxxx.xxx (has extras) } handling packages:[[com.android.messaging]], extras:[bundle[{sms_body=mytext}]])

how matcher should in order assert data this:

dat=smsto:xxxxxxx@xxxxx.xxx

for example won't work:

intented(hasdata("xxxxxxx@xxxxx.xxx"); 

try :

intented(hasdata(uri.parse("smsto:xxxxxxx@xxxxx.xxx")); 

it should work !

(replace 'xxx's actual characters.)


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -