{"action":"created","comment":{"url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/pulls/comments/50472054","id":50472054,"diff_hunk":"@@ -0,0 +1,44 @@\n+describe('Budget Rent a Car', function() {\n+  it('should go to carview page with ocorella credentials', function() {\n+    browser.get('http://localhost:8100/#/');\t\n+    var username = element(by.model('username'));\n+    username.sendKeys('ocorella');\n+    var password = element(by.model('password'));\n+    password.sendKeys('ocorella');\n+    expect(element(by.css('.button-primary')).isPresent()).toBe(true);\n+    element(by.css(\".button-primary\")).click();\n+    browser.sleep(3000); \n+    expect(browser.getCurrentUrl()).toEqual('http://localhost:8100/#/carview');\n+  });\n+});\n+\n+describe('Budget Rent a Car', function() {\n+  it('should stay in login page when using wrong crendetials and show error popup', function() {\n+    browser.get('http://localhost:8100/#/');\t\n+    var username = element(by.model('username'));\n+    username.sendKeys('SIRIASNOTIENECREDENCIALES');\n+    var password = element(by.model('password'));\n+    password.sendKeys('abcdefasdasd');\n+    expect(element(by.css('.button-primary')).isPresent()).toBe(true);\n+    element(by.css(\".button-primary\")).click();\n+    browser.sleep(3000); \n+    expect(element(by.css('.popup')).isPresent()).toBe(true);\n+    expect(browser.getCurrentUrl()).toEqual('http://localhost:8100/#/');\n+  });\n+});\n+\n+describe('Budget Rent a Car', function() {\n+  it('should stay in login page and show popup when clicking the register <a> element', function() {","path":"tests/e2e/login.spec.js","position":31,"original_position":31,"commit_id":"2ca41424ba32fe4ff32b44545330e63263c2e350","original_commit_id":"2ca41424ba32fe4ff32b44545330e63263c2e350","user":{"login":"joserv2812","id":11393488,"avatar_url":"https://avatars.githubusercontent.com/u/11393488?v=3","gravatar_id":"","url":"https://api.github.com/users/joserv2812","html_url":"https://github.com/joserv2812","followers_url":"https://api.github.com/users/joserv2812/followers","following_url":"https://api.github.com/users/joserv2812/following{/other_user}","gists_url":"https://api.github.com/users/joserv2812/gists{/gist_id}","starred_url":"https://api.github.com/users/joserv2812/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joserv2812/subscriptions","organizations_url":"https://api.github.com/users/joserv2812/orgs","repos_url":"https://api.github.com/users/joserv2812/repos","events_url":"https://api.github.com/users/joserv2812/events{/privacy}","received_events_url":"https://api.github.com/users/joserv2812/received_events","type":"User","site_admin":false},"body":"create a beforeEach and declare var username, var password and all elements using in the tests","created_at":"2016-01-21T22:06:06Z","updated_at":"2016-01-21T22:06:06Z","html_url":"https://github.com/pernixgit/Budget-RentaCar/pull/17#discussion_r50472054","pull_request_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/pernixgit/Budget-RentaCar/pulls/comments/50472054"},"html":{"href":"https://github.com/pernixgit/Budget-RentaCar/pull/17#discussion_r50472054"},"pull_request":{"href":"https://api.github.com/repos/pernixgit/Budget-RentaCar/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/pulls/17","id":56814645,"html_url":"https://github.com/pernixgit/Budget-RentaCar/pull/17","diff_url":"https://github.com/pernixgit/Budget-RentaCar/pull/17.diff","patch_url":"https://github.com/pernixgit/Budget-RentaCar/pull/17.patch","issue_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/issues/17","number":17,"state":"open","locked":false,"title":"Protractor tests login page","user":{"login":"ocorella","id":16541223,"avatar_url":"https://avatars.githubusercontent.com/u/16541223?v=3","gravatar_id":"","url":"https://api.github.com/users/ocorella","html_url":"https://github.com/ocorella","followers_url":"https://api.github.com/users/ocorella/followers","following_url":"https://api.github.com/users/ocorella/following{/other_user}","gists_url":"https://api.github.com/users/ocorella/gists{/gist_id}","starred_url":"https://api.github.com/users/ocorella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocorella/subscriptions","organizations_url":"https://api.github.com/users/ocorella/orgs","repos_url":"https://api.github.com/users/ocorella/repos","events_url":"https://api.github.com/users/ocorella/events{/privacy}","received_events_url":"https://api.github.com/users/ocorella/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-21T21:51:12Z","updated_at":"2016-01-21T22:06:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e2970f04eed660fb88674e116b28d2300da20a9f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/pulls/17/commits","review_comments_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/pulls/17/comments","review_comment_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/issues/17/comments","statuses_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/statuses/2ca41424ba32fe4ff32b44545330e63263c2e350","head":{"label":"pernixgit:FBIntegrationLogin","ref":"FBIntegrationLogin","sha":"2ca41424ba32fe4ff32b44545330e63263c2e350","user":{"login":"pernixgit","id":16762997,"avatar_url":"https://avatars.githubusercontent.com/u/16762997?v=3","gravatar_id":"","url":"https://api.github.com/users/pernixgit","html_url":"https://github.com/pernixgit","followers_url":"https://api.github.com/users/pernixgit/followers","following_url":"https://api.github.com/users/pernixgit/following{/other_user}","gists_url":"https://api.github.com/users/pernixgit/gists{/gist_id}","starred_url":"https://api.github.com/users/pernixgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pernixgit/subscriptions","organizations_url":"https://api.github.com/users/pernixgit/orgs","repos_url":"https://api.github.com/users/pernixgit/repos","events_url":"https://api.github.com/users/pernixgit/events{/privacy}","received_events_url":"https://api.github.com/users/pernixgit/received_events","type":"User","site_admin":false},"repo":{"id":48549670,"name":"Budget-RentaCar","full_name":"pernixgit/Budget-RentaCar","owner":{"login":"pernixgit","id":16762997,"avatar_url":"https://avatars.githubusercontent.com/u/16762997?v=3","gravatar_id":"","url":"https://api.github.com/users/pernixgit","html_url":"https://github.com/pernixgit","followers_url":"https://api.github.com/users/pernixgit/followers","following_url":"https://api.github.com/users/pernixgit/following{/other_user}","gists_url":"https://api.github.com/users/pernixgit/gists{/gist_id}","starred_url":"https://api.github.com/users/pernixgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pernixgit/subscriptions","organizations_url":"https://api.github.com/users/pernixgit/orgs","repos_url":"https://api.github.com/users/pernixgit/repos","events_url":"https://api.github.com/users/pernixgit/events{/privacy}","received_events_url":"https://api.github.com/users/pernixgit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pernixgit/Budget-RentaCar","description":"","fork":false,"url":"https://api.github.com/repos/pernixgit/Budget-RentaCar","forks_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/forks","keys_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/teams","hooks_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/hooks","issue_events_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/issues/events{/number}","events_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/events","assignees_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/assignees{/user}","branches_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/branches{/branch}","tags_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/tags","blobs_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/git/refs{/sha}","trees_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/statuses/{sha}","languages_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/languages","stargazers_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/stargazers","contributors_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/contributors","subscribers_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/subscribers","subscription_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/subscription","commits_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/commits{/sha}","git_commits_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/git/commits{/sha}","comments_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/comments{/number}","issue_comment_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/issues/comments{/number}","contents_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/contents/{+path}","compare_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/merges","archive_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/downloads","issues_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/issues{/number}","pulls_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/pulls{/number}","milestones_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/milestones{/number}","notifications_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/labels{/name}","releases_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/releases{/id}","created_at":"2015-12-24T16:19:48Z","updated_at":"2016-01-18T17:51:23Z","pushed_at":"2016-01-21T21:51:12Z","git_url":"git://github.com/pernixgit/Budget-RentaCar.git","ssh_url":"git@github.com:pernixgit/Budget-RentaCar.git","clone_url":"https://github.com/pernixgit/Budget-RentaCar.git","svn_url":"https://github.com/pernixgit/Budget-RentaCar","homepage":null,"size":7680,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"pernixgit:develop","ref":"develop","sha":"8917a97a002fe2478edcbdc457c2fe0f85e0f5fd","user":{"login":"pernixgit","id":16762997,"avatar_url":"https://avatars.githubusercontent.com/u/16762997?v=3","gravatar_id":"","url":"https://api.github.com/users/pernixgit","html_url":"https://github.com/pernixgit","followers_url":"https://api.github.com/users/pernixgit/followers","following_url":"https://api.github.com/users/pernixgit/following{/other_user}","gists_url":"https://api.github.com/users/pernixgit/gists{/gist_id}","starred_url":"https://api.github.com/users/pernixgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pernixgit/subscriptions","organizations_url":"https://api.github.com/users/pernixgit/orgs","repos_url":"https://api.github.com/users/pernixgit/repos","events_url":"https://api.github.com/users/pernixgit/events{/privacy}","received_events_url":"https://api.github.com/users/pernixgit/received_events","type":"User","site_admin":false},"repo":{"id":48549670,"name":"Budget-RentaCar","full_name":"pernixgit/Budget-RentaCar","owner":{"login":"pernixgit","id":16762997,"avatar_url":"https://avatars.githubusercontent.com/u/16762997?v=3","gravatar_id":"","url":"https://api.github.com/users/pernixgit","html_url":"https://github.com/pernixgit","followers_url":"https://api.github.com/users/pernixgit/followers","following_url":"https://api.github.com/users/pernixgit/following{/other_user}","gists_url":"https://api.github.com/users/pernixgit/gists{/gist_id}","starred_url":"https://api.github.com/users/pernixgit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pernixgit/subscriptions","organizations_url":"https://api.github.com/users/pernixgit/orgs","repos_url":"https://api.github.com/users/pernixgit/repos","events_url":"https://api.github.com/users/pernixgit/events{/privacy}","received_events_url":"https://api.github.com/users/pernixgit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pernixgit/Budget-RentaCar","description":"","fork":false,"url":"https://api.github.com/repos/pernixgit/Budget-RentaCar","forks_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/forks","keys_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/teams","hooks_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/hooks","issue_events_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/issues/events{/number}","events_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/events","assignees_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/assignees{/user}","branches_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/branches{/branch}","tags_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/tags","blobs_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/git/refs{/sha}","trees_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/statuses/{sha}","languages_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/languages","stargazers_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/stargazers","contributors_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/contributors","subscribers_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/subscribers","subscription_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/subscription","commits_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/commits{/sha}","git_commits_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/git/commits{/sha}","comments_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/comments{/number}","issue_comment_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/issues/comments{/number}","contents_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/contents/{+path}","compare_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/merges","archive_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/downloads","issues_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/issues{/number}","pulls_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/pulls{/number}","milestones_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/milestones{/number}","notifications_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/labels{/name}","releases_url":"https://api.github.com/repos/pernixgit/Budget-RentaCar/releases{/id}","created_at":"2015-12-24T16:19:48Z","updated_at":"2016-01-18T17:51:23Z","pushed_at":"2016-01-21T21:51:12Z","git_url":"git://github.com/pernixgit/Budget-RentaCar.git","ssh_url":"git@github.com:pernixgit/Budget-RentaCar.git","clone_url":"https://github.com/pernixgit/Budget-RentaCar.git","svn_url":"https://github.com/pernixgit/Budget-RentaCar","homepage":null,"size":7680,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pernixgit/Budget-RentaCar/pulls/17"},"html":{"href":"https://github.com/pernixgit/Budget-RentaCar/pull/17"},"issue":{"href":"https://api.github.com/repos/pernixgit/Budget-RentaCar/issues/17"},"comments":{"href":"https://api.github.com/repos/pernixgit/Budget-RentaCar/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/pernixgit/Budget-RentaCar/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/pernixgit/Budget-RentaCar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pernixgit/Budget-RentaCar/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/pernixgit/Budget-RentaCar/statuses/2ca41424ba32fe4ff32b44545330e63263c2e350"}}}}