Skip to content

Conversation

@lechuckcaptain
Copy link

It should be easier to interact with JGProgressHUD during UI tests.

I added a very basic sample Swift UI test project and some basics accessibilityIdentifier to some relevant things of JGProgressHUD.

It's just a basic proof of concept (I'm really not an expert of Objective-C) in order to make you understand the idea, I'm sure there is plenty of space for improvement.

@JonasGessner
Copy link
Owner

Hey, thanks for the PR! This looks pretty good, but without any concrete tests beyond a PoC this is not something I'd want on master. To be honest I wouldn't add any UI tests myself anytime soon, so unless you are planning on adding more tests I'd go ahead and close this PR.

@lechuckcaptain
Copy link
Author

I'll try to add some tests. Keep the PR open please.

Added an actual meaning to UI tests, checking all the steps of the Demo swift app
@lechuckcaptain
Copy link
Author

Hey @JonasGessner, please have a look at the updated PR. I added a more meaningful UI test for the Swift app. I can add more tests, but it would require to expand the Swift app example with more feature or to test the Obj-C app.

If you are not willing to consinder the PR, please at least keep (or add new) accessibilityIdentifier(s) to the HUD views.

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants