calabash / calabash-ios

Calabash for iOS
Other
1.81k stars 369 forks source link

`touch("button marked:'login")` is missing a trailing `'`; this causes a touch in the middle of the screen - should throw an exception #594

Open jmoody opened 10 years ago

jmoody commented 10 years ago
$ git clone git@github.com:jmoody/animated-happiness.git
$ git co -t origin/demo/reproduce-calabash-ios-594-missing-trailing-single-quote
$ cd animated-happiness/chou
$ bundle update
$ make app-cal
$ export APP="${PWD}/chou-cal.app"
$ be cucumber
 Scenario:  Query string has a missing trailing single quote
    When I search for the text using a correctly formatted query
    Then I expect one text field result
    When I search for the text using a query with a missing trailing quote, I expect an exception

@krukow Which part of the system is responsible for verifying query syntax? Is it even possible to detect cases like this?

ark-konopacki commented 9 years ago

it can be handled just bu adding ' sign to query string if last character is not '