Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to performing actions on browsers/another app/gallery/contacts etc. #258

Closed
proshoumma opened this issue Sep 1, 2017 · 4 comments
Closed

Comments

@proshoumma
Copy link

Description

In our application we use Facebook authentication. In the login screen there is a button to 'Continue with Facebook' and clicking on that button opens up either the FB app (if available), or safari. Also there are some other places where we need to access the photo gallery. Now we can make the button clicks from our app, but is there any way to make clicks and fill forms when the FB app/Safari comes up?

If we need to mock this process, is there any recommended approach? Also is it possible to select a photo from gallery using Detox?

Would really appreciate any advice or suggestions on these.

@isnifer
Copy link
Contributor

isnifer commented Sep 1, 2017

About FB - #136

@DanielMSchmidt
Copy link
Contributor

I think this is not possible in general. As far as I understand it detox and EarlGrey can not interfer with stuff like this. But don't take my word full on this, I am only 80% sure

@LeoNatan
Copy link
Contributor

LeoNatan commented Sep 5, 2017

You need to mock the FB/Safari part. This is not supported in Detox.

Regarding photos, if you are using the native UIImagePickerController, it should be theoretically possible because that is all in-app, but it should be difficult because I assume there are no testID on the views. I suggest mocking that too.

@LeoNatan LeoNatan closed this as completed Sep 5, 2017
@proshoumma
Copy link
Author

@LeoNatan Thank you for confirming 👍

@wix wix locked and limited conversation to collaborators Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants