{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/todo_challenge/pulls/comments/51371552","id":51371552,"diff_hunk":"@@ -0,0 +1,90 @@\n+describe('Todo List', function() {\n+\n+  var newItemBox = element(by.model('ctrl.newItem'));\n+\n+  beforeEach(function() {\n+    browser.get('http://localhost:8080');\n+  });\n+\n+  it('has a title', function() {\n+    expect(browser.getTitle()).toEqual('Todo List');\n+  });\n+\n+  describe('adding a new item', function() {\n+    beforeEach(function() {\n+      newItemBox.sendKeys('cleaning');\n+      newItemBox.sendKeys(protractor.Key.ENTER);\n+    });\n+    it('display the item in the list', function() {\n+      expect(element(by.binding('item.title')).getText()).toEqual('cleaning');\n+    });\n+    it('display the item as not completed', function() {\n+      expect(element(by.model('item.completed')).isSelected()).toBe(false);\n+    });\n+    it('increment the remaining items counter', function() {\n+      expect(element(by.binding('ctrl.remainingCount()')).getText())\n+        .toEqual('1');\n+    });\n+  });\n+\n+  describe('marking an item as completed', function() {\n+    beforeEach(function() {\n+      newItemBox.sendKeys('cleaning');\n+      newItemBox.sendKeys(protractor.Key.ENTER);\n+      element(by.model('item.completed')).click();\n+    });\n+    it('display the item as completed', function() {\n+      expect(element(by.model('item.completed')).isSelected()).toBe(true);\n+    });\n+    it('decrement the remaining items counter', function() {\n+      expect(element(by.binding('ctrl.remainingCount()')).getText())\n+        .toEqual('0');\n+    });\n+  });\n+\n+  describe('removing an item', function() {\n+    it('no longer display the item in the list', function() {\n+      newItemBox.sendKeys('cleaning');\n+      newItemBox.sendKeys(protractor.Key.ENTER);\n+      element(by.css('a.remove')).click();\n+      expect(element(by.binding('item.title')).isPresent()).toBe(false);\n+    });\n+  });\n+\n+  describe('filtering items', function() {\n+    var filteredItems = element.all(by.repeater('item in ctrl.filteredItems'));\n+    beforeEach(function() {\n+      newItemBox.sendKeys('cleaning');\n+      newItemBox.sendKeys(protractor.Key.ENTER);\n+      element(by.model('item.completed')).click();\n+      newItemBox.sendKeys('mopping');\n+      newItemBox.sendKeys(protractor.Key.ENTER);\n+    });\n+    it('display all the items when the \"all\" filter is clicked', function() {\n+      element(by.css('#all')).click();\n+      expect(filteredItems.count()).toEqual(2);\n+    });\n+    it('display only completed items when the \"completed\" filter is clicked', function() {\n+      element(by.css('#completed')).click();\n+      expect(filteredItems.count()).toEqual(1);\n+      expect(element(by.binding('item.title')).getText()).toEqual('cleaning');\n+    });\n+    it('display only not completed items when the \"active\" filter is clicked', function() {\n+      element(by.css('#active')).click();\n+      expect(filteredItems.count()).toEqual(1);\n+      expect(element(by.binding('item.title')).getText()).toEqual('mopping');\n+    });\n+  });\n+\n+  describe('clearing completed items', function() {\n+    it('no longer display not completed items in the list', function() {\n+      newItemBox.sendKeys('cleaning');\n+      newItemBox.sendKeys(protractor.Key.ENTER);\n+      element(by.model('item.completed')).click();","path":"tests/e2e/todoListFeature.js","position":83,"original_position":83,"commit_id":"a060de109651475e5f3fd2d0529f4b53aa24a685","original_commit_id":"a060de109651475e5f3fd2d0529f4b53aa24a685","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"'element' is not defined.<br>'by' is not defined.","created_at":"2016-02-01T00:58:15Z","updated_at":"2016-02-01T00:58:15Z","html_url":"https://github.com/makersacademy/todo_challenge/pull/151#discussion_r51371552","pull_request_url":"https://api.github.com/repos/makersacademy/todo_challenge/pulls/151","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/todo_challenge/pulls/comments/51371552"},"html":{"href":"https://github.com/makersacademy/todo_challenge/pull/151#discussion_r51371552"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/todo_challenge/pulls/151"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/todo_challenge/pulls/151","id":57787060,"html_url":"https://github.com/makersacademy/todo_challenge/pull/151","diff_url":"https://github.com/makersacademy/todo_challenge/pull/151.diff","patch_url":"https://github.com/makersacademy/todo_challenge/pull/151.patch","issue_url":"https://api.github.com/repos/makersacademy/todo_challenge/issues/151","number":151,"state":"open","locked":false,"title":"giamir_todo_challenge","user":{"login":"giamir","id":6231616,"avatar_url":"https://avatars.githubusercontent.com/u/6231616?v=3","gravatar_id":"","url":"https://api.github.com/users/giamir","html_url":"https://github.com/giamir","followers_url":"https://api.github.com/users/giamir/followers","following_url":"https://api.github.com/users/giamir/following{/other_user}","gists_url":"https://api.github.com/users/giamir/gists{/gist_id}","starred_url":"https://api.github.com/users/giamir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giamir/subscriptions","organizations_url":"https://api.github.com/users/giamir/orgs","repos_url":"https://api.github.com/users/giamir/repos","events_url":"https://api.github.com/users/giamir/events{/privacy}","received_events_url":"https://api.github.com/users/giamir/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-01T00:57:49Z","updated_at":"2016-02-01T00:58:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6f4c0f101b968c1f057fabaa1d695e98f9cb8aa","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/todo_challenge/pulls/151/commits","review_comments_url":"https://api.github.com/repos/makersacademy/todo_challenge/pulls/151/comments","review_comment_url":"https://api.github.com/repos/makersacademy/todo_challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/todo_challenge/issues/151/comments","statuses_url":"https://api.github.com/repos/makersacademy/todo_challenge/statuses/a060de109651475e5f3fd2d0529f4b53aa24a685","head":{"label":"giamir:master","ref":"master","sha":"a060de109651475e5f3fd2d0529f4b53aa24a685","user":{"login":"giamir","id":6231616,"avatar_url":"https://avatars.githubusercontent.com/u/6231616?v=3","gravatar_id":"","url":"https://api.github.com/users/giamir","html_url":"https://github.com/giamir","followers_url":"https://api.github.com/users/giamir/followers","following_url":"https://api.github.com/users/giamir/following{/other_user}","gists_url":"https://api.github.com/users/giamir/gists{/gist_id}","starred_url":"https://api.github.com/users/giamir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giamir/subscriptions","organizations_url":"https://api.github.com/users/giamir/orgs","repos_url":"https://api.github.com/users/giamir/repos","events_url":"https://api.github.com/users/giamir/events{/privacy}","received_events_url":"https://api.github.com/users/giamir/received_events","type":"User","site_admin":false},"repo":{"id":50675332,"name":"todo_challenge","full_name":"giamir/todo_challenge","owner":{"login":"giamir","id":6231616,"avatar_url":"https://avatars.githubusercontent.com/u/6231616?v=3","gravatar_id":"","url":"https://api.github.com/users/giamir","html_url":"https://github.com/giamir","followers_url":"https://api.github.com/users/giamir/followers","following_url":"https://api.github.com/users/giamir/following{/other_user}","gists_url":"https://api.github.com/users/giamir/gists{/gist_id}","starred_url":"https://api.github.com/users/giamir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giamir/subscriptions","organizations_url":"https://api.github.com/users/giamir/orgs","repos_url":"https://api.github.com/users/giamir/repos","events_url":"https://api.github.com/users/giamir/events{/privacy}","received_events_url":"https://api.github.com/users/giamir/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/giamir/todo_challenge","description":"The \"Hello, world\" for MV* frameworks","fork":true,"url":"https://api.github.com/repos/giamir/todo_challenge","forks_url":"https://api.github.com/repos/giamir/todo_challenge/forks","keys_url":"https://api.github.com/repos/giamir/todo_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/giamir/todo_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/giamir/todo_challenge/teams","hooks_url":"https://api.github.com/repos/giamir/todo_challenge/hooks","issue_events_url":"https://api.github.com/repos/giamir/todo_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/giamir/todo_challenge/events","assignees_url":"https://api.github.com/repos/giamir/todo_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/giamir/todo_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/giamir/todo_challenge/tags","blobs_url":"https://api.github.com/repos/giamir/todo_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/giamir/todo_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/giamir/todo_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/giamir/todo_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/giamir/todo_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/giamir/todo_challenge/languages","stargazers_url":"https://api.github.com/repos/giamir/todo_challenge/stargazers","contributors_url":"https://api.github.com/repos/giamir/todo_challenge/contributors","subscribers_url":"https://api.github.com/repos/giamir/todo_challenge/subscribers","subscription_url":"https://api.github.com/repos/giamir/todo_challenge/subscription","commits_url":"https://api.github.com/repos/giamir/todo_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/giamir/todo_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/giamir/todo_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/giamir/todo_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/giamir/todo_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/giamir/todo_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/giamir/todo_challenge/merges","archive_url":"https://api.github.com/repos/giamir/todo_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/giamir/todo_challenge/downloads","issues_url":"https://api.github.com/repos/giamir/todo_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/giamir/todo_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/giamir/todo_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/giamir/todo_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/giamir/todo_challenge/labels{/name}","releases_url":"https://api.github.com/repos/giamir/todo_challenge/releases{/id}","deployments_url":"https://api.github.com/repos/giamir/todo_challenge/deployments","created_at":"2016-01-29T16:31:48Z","updated_at":"2016-01-31T23:54:05Z","pushed_at":"2016-02-01T00:50:00Z","git_url":"git://github.com/giamir/todo_challenge.git","ssh_url":"git@github.com:giamir/todo_challenge.git","clone_url":"https://github.com/giamir/todo_challenge.git","svn_url":"https://github.com/giamir/todo_challenge","homepage":null,"size":39,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"makersacademy:master","ref":"master","sha":"45b06b628fcc72b4ffe431612449dbff76c9082e","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":32573915,"name":"todo_challenge","full_name":"makersacademy/todo_challenge","owner":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makersacademy/todo_challenge","description":"The \"Hello, world\" for MV* frameworks","fork":false,"url":"https://api.github.com/repos/makersacademy/todo_challenge","forks_url":"https://api.github.com/repos/makersacademy/todo_challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/todo_challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/todo_challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/todo_challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/todo_challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/todo_challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/todo_challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/todo_challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/todo_challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/todo_challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/todo_challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/todo_challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/todo_challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/todo_challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/todo_challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/todo_challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/todo_challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/todo_challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/todo_challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/todo_challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/todo_challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/todo_challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/todo_challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/todo_challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/todo_challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/todo_challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/todo_challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/todo_challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/todo_challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/todo_challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/todo_challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/todo_challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/todo_challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/todo_challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/todo_challenge/releases{/id}","deployments_url":"https://api.github.com/repos/makersacademy/todo_challenge/deployments","created_at":"2015-03-20T09:08:32Z","updated_at":"2016-01-28T15:10:15Z","pushed_at":"2016-02-01T00:57:51Z","git_url":"git://github.com/makersacademy/todo_challenge.git","ssh_url":"git@github.com:makersacademy/todo_challenge.git","clone_url":"https://github.com/makersacademy/todo_challenge.git","svn_url":"https://github.com/makersacademy/todo_challenge","homepage":null,"size":45919,"stargazers_count":3,"watchers_count":3,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":201,"mirror_url":null,"open_issues_count":30,"forks":201,"open_issues":30,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/todo_challenge/pulls/151"},"html":{"href":"https://github.com/makersacademy/todo_challenge/pull/151"},"issue":{"href":"https://api.github.com/repos/makersacademy/todo_challenge/issues/151"},"comments":{"href":"https://api.github.com/repos/makersacademy/todo_challenge/issues/151/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/todo_challenge/pulls/151/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/todo_challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/todo_challenge/pulls/151/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/todo_challenge/statuses/a060de109651475e5f3fd2d0529f4b53aa24a685"}}}}