{"action":"created","issue":{"url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor/issues/56","repository_url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor","labels_url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor/issues/56/comments","events_url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor/issues/56/events","html_url":"https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/issues/56","id":332323558,"node_id":"MDU6SXNzdWUzMzIzMjM1NTg=","number":56,"title":"Webstorm doesn't recognize step definitions","user":{"login":"kayvanbree","id":11921540,"node_id":"MDQ6VXNlcjExOTIxNTQw","avatar_url":"https://avatars0.githubusercontent.com/u/11921540?v=4","gravatar_id":"","url":"https://api.github.com/users/kayvanbree","html_url":"https://github.com/kayvanbree","followers_url":"https://api.github.com/users/kayvanbree/followers","following_url":"https://api.github.com/users/kayvanbree/following{/other_user}","gists_url":"https://api.github.com/users/kayvanbree/gists{/gist_id}","starred_url":"https://api.github.com/users/kayvanbree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kayvanbree/subscriptions","organizations_url":"https://api.github.com/users/kayvanbree/orgs","repos_url":"https://api.github.com/users/kayvanbree/repos","events_url":"https://api.github.com/users/kayvanbree/events{/privacy}","received_events_url":"https://api.github.com/users/kayvanbree/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2018-06-14T09:32:54Z","updated_at":"2018-07-05T10:02:55Z","closed_at":null,"author_association":"NONE","body":"I don't really know if I should ask this here, but Webstorm doesn't recoginize the step definitions of this plugin because the steps are given, when, then. Webstorm does recognize the official cucumber package's Given, When an Then (capitalized).  Webstorm recognizing step definitions is extremely helpful in preventing duplicate step definitions. \r\n\r\n```\r\n// Recognized (like the official cucumber package)\r\nGiven(`I am on the webpage`, () => {\r\n  cy.visit(url);\r\n});\r\n\r\n// Not recognized (like this plugin)\r\ngiven('I am on the webpage', () => {\r\n  cy.visit(url);\r\n});\r\n```\r\n![webstormnotrecognizingcypresscucumber](https://user-images.githubusercontent.com/11921540/41404040-7e0da9be-6fc6-11e8-9c2a-2e9ebeaba719.gif)\r\n\r\nI did find a workaround, but I'd rather not have people forget to include this:\r\n\r\n```\r\n// Just add this above the step definitions\r\nconst Given = given;\r\nconst When = when;\r\nconst Then = then;\r\n```\r\n\r\nIs there a way this could be solved without a workaround?\r\n"},"comment":{"url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor/issues/comments/402672510","html_url":"https://github.com/TheBrainFamily/cypress-cucumber-preprocessor/issues/56#issuecomment-402672510","issue_url":"https://api.github.com/repos/TheBrainFamily/cypress-cucumber-preprocessor/issues/56","id":402672510,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjY3MjUxMA==","user":{"login":"vadimromanyak","id":7494213,"node_id":"MDQ6VXNlcjc0OTQyMTM=","avatar_url":"https://avatars3.githubusercontent.com/u/7494213?v=4","gravatar_id":"","url":"https://api.github.com/users/vadimromanyak","html_url":"https://github.com/vadimromanyak","followers_url":"https://api.github.com/users/vadimromanyak/followers","following_url":"https://api.github.com/users/vadimromanyak/following{/other_user}","gists_url":"https://api.github.com/users/vadimromanyak/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimromanyak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimromanyak/subscriptions","organizations_url":"https://api.github.com/users/vadimromanyak/orgs","repos_url":"https://api.github.com/users/vadimromanyak/repos","events_url":"https://api.github.com/users/vadimromanyak/events{/privacy}","received_events_url":"https://api.github.com/users/vadimromanyak/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T10:02:55Z","updated_at":"2018-07-05T10:02:55Z","author_association":"NONE","body":"@lgandecki Webstorm doesn't recognize step definition this way:\r\nGiven('user navigated to the Start page', () => { });\r\n\r\nBut if we replace quotes with /^...?/ then it works:\r\nGiven(/^user navigated to the Start page?/, () => { });\r\n"}}
{"actor":{"display_login":"vadimromanyak"}}