{"action":"created","issue":{"url":"https://api.github.com/repos/net-a-porter-mobile/XCTest-Gherkin/issues/95","repository_url":"https://api.github.com/repos/net-a-porter-mobile/XCTest-Gherkin","labels_url":"https://api.github.com/repos/net-a-porter-mobile/XCTest-Gherkin/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/net-a-porter-mobile/XCTest-Gherkin/issues/95/comments","events_url":"https://api.github.com/repos/net-a-porter-mobile/XCTest-Gherkin/issues/95/events","html_url":"https://github.com/net-a-porter-mobile/XCTest-Gherkin/issues/95","id":294496624,"number":95,"title":"Step not executed when poorly named","user":{"login":"tomesm","id":6170316,"avatar_url":"https://avatars3.githubusercontent.com/u/6170316?v=4","gravatar_id":"","url":"https://api.github.com/users/tomesm","html_url":"https://github.com/tomesm","followers_url":"https://api.github.com/users/tomesm/followers","following_url":"https://api.github.com/users/tomesm/following{/other_user}","gists_url":"https://api.github.com/users/tomesm/gists{/gist_id}","starred_url":"https://api.github.com/users/tomesm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomesm/subscriptions","organizations_url":"https://api.github.com/users/tomesm/orgs","repos_url":"https://api.github.com/users/tomesm/repos","events_url":"https://api.github.com/users/tomesm/events{/privacy}","received_events_url":"https://api.github.com/users/tomesm/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-05T18:32:48Z","updated_at":"2018-02-05T19:35:35Z","closed_at":null,"author_association":"NONE","body":"I am experiencing a strange issue.\r\n\r\nIf I have a step named as \"I tap email button\" it is simply not executed. It is not matter if it is Given/And/When/Then ... step(\"I tap email button\") {...} is simply not executing.\r\n\r\nThe problem is \"email button\". If you put these two words in any existing step names, the step is simply not executed. Which is quite disturbing if you need to test inputs for... email button :)\r\n\r\nCan I hope this will be fixed in the near future?"},"comment":{"url":"https://api.github.com/repos/net-a-porter-mobile/XCTest-Gherkin/issues/comments/363196359","html_url":"https://github.com/net-a-porter-mobile/XCTest-Gherkin/issues/95#issuecomment-363196359","issue_url":"https://api.github.com/repos/net-a-porter-mobile/XCTest-Gherkin/issues/95","id":363196359,"user":{"login":"tomesm","id":6170316,"avatar_url":"https://avatars3.githubusercontent.com/u/6170316?v=4","gravatar_id":"","url":"https://api.github.com/users/tomesm","html_url":"https://github.com/tomesm","followers_url":"https://api.github.com/users/tomesm/followers","following_url":"https://api.github.com/users/tomesm/following{/other_user}","gists_url":"https://api.github.com/users/tomesm/gists{/gist_id}","starred_url":"https://api.github.com/users/tomesm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomesm/subscriptions","organizations_url":"https://api.github.com/users/tomesm/orgs","repos_url":"https://api.github.com/users/tomesm/repos","events_url":"https://api.github.com/users/tomesm/events{/privacy}","received_events_url":"https://api.github.com/users/tomesm/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T19:35:34Z","updated_at":"2018-02-05T19:35:34Z","author_association":"NONE","body":"@kerrmarin There is EmailTestSteps class: https://pastebin.com/PmVKtabU\r\n\r\nAnd here WelcomeFeatureSteps class: https://pastebin.com/6hxYjres\r\n\r\nI have finally figured out what is happening. The problem is substring \"email button\". If the same substring is present in several steps in several Classes, it causes a problem.\r\n\r\nIf I execute EmailTestSteps the **step(\"I tap email button\")** is not executed. Instead, **step(\"email button\")** from WelcomeFeatureSteps is executed. After that it jumps back into EmailTestSteps and **step(\"I put invalid (.*)\") { (address: String) in  }** is executed (and test crashes).\r\n\r\nHere is the folder tree structure: https://pastebin.com/xavwVJnw\r\nYou can see both Classes are in separate folders under parent UITests folder\r\n\r\nCan not show the whole project as it is proprietary. I hope it is understood that the problem is same substrings in two steps."}}
{"actor":{"display_login":"tomesm"}}