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

Fix exceptions when app is running with different locale than english #44

Merged
merged 2 commits into from
Oct 17, 2017

Conversation

rajdeepv
Copy link
Contributor

OS: Android Nogut (7.1)
Locale: Turkish 'tr'

QUERY:
query("* id:'content' child android.widget.FrameLayout")

ERROR:
query failed because: No enum constant sh.calaba.instrumentationbackend.query.ast.UIQueryDirection.CHİLD
(RuntimeError)

REASON
sh/calaba/instrumentationbackend/query/Query.java:162
step.getText().toUpperCase() yields "CHİLD" instead of "CHILD" (notice a dot above 'I' here because locale of app is not english)

Similarly, query("* {text like '* hello *'}") changes predicate to LİKE instead of LIKE

@msftclas
Copy link

msftclas commented Sep 28, 2017

CLA assistant check
All CLA requirements met.

@owenniblock
Copy link
Contributor

Hi @rajdeepv - we've just fixed an issue with our CI build but unfortunately this means that this PR has failed some checks.

Please could you rebase your changes against develop and resend the PR?

I don't think we have any issues with this change so hopefully we can get this merged in soon.

@rajdeepv
Copy link
Contributor Author

@owenniblock Done, 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.

3 participants