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
Post a Comment