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

Espresso Intents #342

Closed
theapache64 opened this issue Apr 30, 2020 · 14 comments
Closed

Espresso Intents #342

theapache64 opened this issue Apr 30, 2020 · 14 comments

Comments

@theapache64
Copy link

Description what you'd like to happen:

assertIntended(
    clickListItem(R.id.rv_users, 0), // mandatory
    UserDetailActivity::class.java.name, // mandatory
    intentData // optional
)

Example espresso code if available

Intents.init()
// ... clickListItem(R.id.rv_users, 0)
intended(
    allOf(
        hasComponent(UserDetailActivity::class.java.name)
    )
)
Intents.release()
@Sloy
Copy link
Member

Sloy commented Apr 30, 2020

Hi @theapache64! Thanks for the suggestion. We're not currently considering adding any special DSL for intents, except for very weird and complex cases like mockAndroidCamera().

@theapache64
Copy link
Author

theapache64 commented Apr 30, 2020

The suggested method is a normal function. 😬

@Sloy
Copy link
Member

Sloy commented Apr 30, 2020

Yes, sorry. By "DSL" I meant "Barista methods" 😅

@theapache64
Copy link
Author

theapache64 commented Apr 30, 2020

🤣 Alright. Anyways, good work guys. I've been searching for your email to thank in person.

I've recently replaced all espresso test cases with barista methods in one of my pet projects. :)
Every time I write a call to the barista method, i was like "Wooow!! That's it ?". once again, Cool work 😎

@rocboronat
Copy link
Member

I'll print and frame your comment and have it near my screen. When something bad happened, I'll read it and be happy again 😄

@theapache64
Copy link
Author

Haha. I would also say this library is so underrated. If i had access to developer.android.com docs, I'd have replaced all espresso samples with Barista. 😎

@Sloy
Copy link
Member

Sloy commented Apr 30, 2020

😂Thank you so much @theapache64, that's very kind of you to say. 😊
I'm very happy that Barista is helping you.

@lachudra87
Copy link

Place for "Thank You notes" would be awesome ;) With Barista I even convinced all the people from my project that writing android UI test could be fun :)

@rocboronat
Copy link
Member

Hahahaha! What do you think about opening an issue and linking it from the readme? 😄 @Sloy @alorma @EsteveAguilera @alorma @lachudra87 @theapache64

@theapache64
Copy link
Author

Sure! Who's gonna do it?

@rocboronat
Copy link
Member

Let's wait for @Sloy 😅 Maybe he has a better idea 😄

@Sloy
Copy link
Member

Sloy commented May 7, 2020

Sounds cool! And thank you for the proposal, I really appreciate the gesture.
Maybe also hit @AdevintaEng on Twitter so they realize the community finds this library useful :)

@theapache64
Copy link
Author

I am gonna close this issue for now. See you there in #344 😉

@rocboronat
Copy link
Member

See you there! 😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants