{"action":"opened","issue":{"url":"https://api.github.com/repos/ReadyTalk/cukefarm/issues/14","labels_url":"https://api.github.com/repos/ReadyTalk/cukefarm/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/ReadyTalk/cukefarm/issues/14/comments","events_url":"https://api.github.com/repos/ReadyTalk/cukefarm/issues/14/events","html_url":"https://github.com/ReadyTalk/cukefarm/issues/14","id":78252049,"number":14,"title":"Can't get it working","user":{"login":"solcre","id":4933390,"avatar_url":"https://avatars.githubusercontent.com/u/4933390?v=3","gravatar_id":"","url":"https://api.github.com/users/solcre","html_url":"https://github.com/solcre","followers_url":"https://api.github.com/users/solcre/followers","following_url":"https://api.github.com/users/solcre/following{/other_user}","gists_url":"https://api.github.com/users/solcre/gists{/gist_id}","starred_url":"https://api.github.com/users/solcre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/solcre/subscriptions","organizations_url":"https://api.github.com/users/solcre/orgs","repos_url":"https://api.github.com/users/solcre/repos","events_url":"https://api.github.com/users/solcre/events{/privacy}","received_events_url":"https://api.github.com/users/solcre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-19T21:11:48Z","updated_at":"2015-05-19T21:11:48Z","closed_at":null,"body":"Hey your project rocks! I love it! We do everything very similar to your framework. \r\n\r\nThe only problem is we can't get this to work.\r\n\r\nThis is our project structure\r\n\r\n/test/e2e/features/ => Features inside\r\n/test/e2e/pages/ => Page Objects inside\r\n/test/e2e/steps/ => Custom steps\r\n/test/e2e/support/ => PageObjectMap.coffee and World.coffee\r\n\r\n/test/protractor.conf.coffee with contents:\r\n\r\n```\r\nconfig = require('cukefarm').config\r\n\r\nconfig.specs = 'e2e/features/**/*.feature'\r\nconfig.capabilities.browserName = 'chrome'\r\nconfig.cucumberOpts.require = ['./e2e/support/World.coffee', './e2e/support/PageObjectMap.coffee', './e2e/steps/**/*.js']\r\n\r\nexports.config = config\r\n```\r\n\r\n\r\n(Notice I didn't use coffee script syntax in the config.cucumberOpts.require because it didn't work, btw, I hate coffee script so much! I would love your documentation without coffee examples hehe)\r\n\r\n/test/support/PageObjectMap.coffee with contents:\r\n```\r\nglobule = require 'globule'\r\npath = require 'path'\r\n\r\nfiles = globule.find 'e2e/pages/**/*.coffee'\r\nfor file in files\r\n  page = require path.resolve(file)\r\n  module.exports[page.name] = page.class\r\n```\r\n\r\n/test/support/World.coffee with contents:\r\n\r\n```\r\nWorld = require('cukefarm').World\r\n\r\nWorld::pageObjectMap = require('./PageObjectMap')\r\n\r\nmodule.exports.World = World\r\n```\r\n\r\nWhen I run: grunt protractor I get:\r\n\r\n5 steps (5 undefined)\r\n\r\nYou can implement step definitions for undefined steps with these snippets:\r\n\r\nthis.Given(/^I am on the \"([^\"]*)\" page$/, function (arg1, callback) {\r\n  // Write code here that turns the phrase above into concrete actions\r\n  callback.pending();\r\n});\r\n\r\nthis.When(/^I type \"([^\"]*)\" in the \"([^\"]*)\" field$/, function (arg1, arg2, callback) {\r\n  // Write code here that turns the phrase above into concrete actions\r\n  callback.pending();\r\n});\r\n\r\nthis.When(/^I click the \"([^\"]*)\" button$/, function (arg1, callback) {\r\n  // Write code here that turns the phrase above into concrete actions\r\n  callback.pending();\r\n});\r\n\r\nthis.Then(/^I should be on the \"([^\"]*)\" page$/, function (arg1, callback) {\r\n  // Write code here that turns the phrase above into concrete actions\r\n  callback.pending();\r\n});\r\n\r\nthis.Then(/^the \"([^\"]*)\" should contain the text \"([^\"]*)\"$/, function (arg1, arg2, callback) {\r\n  // Write code here that turns the phrase above into concrete actions\r\n  callback.pending();\r\n});\r\n\r\n"}}