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

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -