{"action":"created","issue":{"url":"https://api.github.com/repos/xolvio/chimp/issues/187","labels_url":"https://api.github.com/repos/xolvio/chimp/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/xolvio/chimp/issues/187/comments","events_url":"https://api.github.com/repos/xolvio/chimp/issues/187/events","html_url":"https://github.com/xolvio/chimp/issues/187","id":121615907,"number":187,"title":"Tests passing locally but failing on CodeShip","user":{"login":"philcruz","id":281846,"avatar_url":"https://avatars.githubusercontent.com/u/281846?v=3","gravatar_id":"","url":"https://api.github.com/users/philcruz","html_url":"https://github.com/philcruz","followers_url":"https://api.github.com/users/philcruz/followers","following_url":"https://api.github.com/users/philcruz/following{/other_user}","gists_url":"https://api.github.com/users/philcruz/gists{/gist_id}","starred_url":"https://api.github.com/users/philcruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philcruz/subscriptions","organizations_url":"https://api.github.com/users/philcruz/orgs","repos_url":"https://api.github.com/users/philcruz/repos","events_url":"https://api.github.com/users/philcruz/events{/privacy}","received_events_url":"https://api.github.com/users/philcruz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-11T01:28:23Z","updated_at":"2015-12-11T02:17:23Z","closed_at":"2015-12-11T02:17:23Z","body":"I have several tests set up on my app which run fine on multiple local dev environments (Windows and Mac). I'm trying to set up continuous integration/deployment using CodeShip but the tests are failing. The logs show\r\n\r\n    PASSED jasmine-client-unit : check shared helpers:shared helpers => confirms versionIsDraft\r\n    PASSED jasmine-client-integration : template:layout => shows Login link\r\n    PASSED jasmine-client-integration : logging in:user functions => confirms the user is logged in\r\n    PASSED cucumber : Create a new project:A user should be able to create, read, update and delete     projects. => Given I am logged in as the default user\r\n    PASSED cucumber : Create a new project:A user should be able to create, read, update and delete projects. => When I click the project menu\r\n    FAILED cucumber : Create a new project:A user should be able to create, read, update and delete    projects. => And I click the new project menu item\r\n    RuntimeError: no such element: Unable to locate element:    {\"method\":\"id\",\"selector\":\"createNewProjectMenuItem\"}  ...\r\n    at World.<anonymous> (/tests/cucumber/features/step_definitions/project_steps.js:22:16)\r\n    ...\r\n\r\na snippet from project_steps.js\r\n\r\n    this.Given(/^I am logged in as the default user$/, function () {\r\n\t\t\tthis.client.url(process.env.ROOT_URL);\r\n\t\t\tthis.AuthenticationHelper.logout();\r\n\t\t\tthis.AuthenticationHelper.login();\r\n\t\t\tthis.client.waitForExist('#project-dropdown');\r\n\t\t});\r\n\r\n\t\tthis.When(/^I click the project menu$/, function () {\r\n\t\t\tthis.client.waitForExist('#project-dropdown');\r\n\t\t\tthis.client.click('#project-dropdown');\r\n\t\t\tthis.client.waitForExist('#createNewProjectMenuItem')\r\n\t\t\tthis.client.pause(1000);\r\n\t\t});\r\n\r\n\t\tthis.When(/^I click the new project menu item$/, function () {\r\n\t\t\tthis.client.click('#createNewProjectMenuItem');\r\n\t\t\tthis.client.pause(1000);\r\n\t\t});\r\n\r\nand the authentication help file looks like\r\n\r\n    module.exports = function () {\r\n\r\n\tthis.Before(function () {\r\n\r\n\t\tthis.AuthenticationHelper = {\r\n\t\t\tlogin: function () {\r\n\t\t\t\tbrowser.url( process.env.ROOT_URL + 'sign-in');\r\n\t\t\t\tbrowser.waitForExist('#at-field-username_and_email');\r\n\t\t\t\tbrowser.setValue('#at-field-username_and_email', 'apitheory');\r\n\t\t\t\tbrowser.pause(1000);\r\n\t\t\t\tbrowser.setValue('#at-field-password', 'letmein');\r\n\t\t\t\tbrowser.click('#at-btn');\r\n\t\t\t},\r\n\r\n\t\t\tlogout: function () {\r\n\t\t\t\tbrowser.executeAsync(function (done) {\r\n\t\t\t\t\tMeteor.logout(done);\r\n\t\t\t\t});\r\n\t\t\t\tbrowser.pause(1000);\r\n\t\t\t},\r\n\r\n\t\t\tcreateAccount: function (profile) {\r\n\t\t\t\tprofile = profile || {\r\n\t\t\t\t\tperiodEnd: Math.floor(new Date().getTime() / 1000)\r\n\t\t\t\t};\r\n\r\n\t\t\t\treturn server.call('fixtures/createAccount', {\r\n\t\t\t\t\temail: 'me@example.com',\r\n\t\t\t\t\tpassword: 'letme1n',\r\n\t\t\t\t\tprofile: profile\r\n\t\t\t\t});\r\n\t\t\t},\r\n\r\n\t\t\tcreateAccountAndLogin : function(profile) {\r\n\t\t\t\tthis.createAccount(profile);\r\n\t\t\t\tthis.login();\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t});\r\n    };\r\n\r\n\r\nWhat could be the issue?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/xolvio/chimp/issues/comments/163813841","html_url":"https://github.com/xolvio/chimp/issues/187#issuecomment-163813841","issue_url":"https://api.github.com/repos/xolvio/chimp/issues/187","id":163813841,"user":{"login":"samhatoum","id":2021955,"avatar_url":"https://avatars.githubusercontent.com/u/2021955?v=3","gravatar_id":"","url":"https://api.github.com/users/samhatoum","html_url":"https://github.com/samhatoum","followers_url":"https://api.github.com/users/samhatoum/followers","following_url":"https://api.github.com/users/samhatoum/following{/other_user}","gists_url":"https://api.github.com/users/samhatoum/gists{/gist_id}","starred_url":"https://api.github.com/users/samhatoum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samhatoum/subscriptions","organizations_url":"https://api.github.com/users/samhatoum/orgs","repos_url":"https://api.github.com/users/samhatoum/repos","events_url":"https://api.github.com/users/samhatoum/events{/privacy}","received_events_url":"https://api.github.com/users/samhatoum/received_events","type":"User","site_admin":false},"created_at":"2015-12-11T02:17:23Z","updated_at":"2015-12-11T02:17:23Z","body":"cloud CI servers run slower than local machines, you have to ensure you always wait for elements properly. try waiting for the element to exist before the click it inside the last step"}}