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

Not Finding Text in Collection View #1

Open
saramoohead opened this issue Jun 13, 2015 · 2 comments
Open

Not Finding Text in Collection View #1

saramoohead opened this issue Jun 13, 2015 · 2 comments
Assignees

Comments

@saramoohead
Copy link

I am attempting to implement eyeTest in a simple ecommerce app, which uses a collection view. I cannot get my readText test to pass, when the text is clearly visible in the build in the simulator. Perhaps eyeTest is not set up for collection views? I have attempted to modify the definition of the view in the matchers.js file but have been unsuccessful. Any advice?

@jflm
Copy link
Owner

jflm commented Jun 14, 2015

I will investigate this issue now - to clarify, are you definitely using a UILabel to show the text (rather than some other form of text output)? Assuming you are I imagine it is to do with what eyeTest considers to be the view that it is looking at, so I will try to modify some of the code to get it to check it correctly.

@jflm
Copy link
Owner

jflm commented Jun 14, 2015

I have created a new branch called 'collection-view' which has a new method readTextInCollection which will iterate over the contents of your collection view (assuming there is only one - let me know if not). This is a temporary workaround while I work on getting a more robust solution together which will account for other situations as well. Hope this is useful to you. Just pull down the matchers from the new branch and copy across into your Xcode project.

@jflm jflm self-assigned this Jun 14, 2015
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

2 participants