{"action":"created","comment":{"url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/pulls/comments/57146496","id":57146496,"diff_hunk":"@@ -0,0 +1,79 @@\n+'use strict';\r\n+\r\n+/* Basic POC test to verify operation of installer login screen\r\n+   when invalid username/password is entered\r\n+   ldimaggi, March 2016\r\n+   */\r\n+\r\n+let webdriver = browser.driver;\r\n+let ACCOUNT_URL = '/account';\r\n+let PAGE_TITLE = 'Red Hat Developer Platform Installer';\r\n+let BAD_USERNAME = \"badusername1\";\r\n+let BAD_PASSWORD = \"badpassword1\";\r\n+var loginButton;\r\n+\r\n+describe('Login', function() {\r\n+\r\n+  beforeEach(function() {\r\n+    loginButton = protractor.until.elementLocated(By.className('btn-lg'))\r\n+  });\r\n+\r\n+/* Simple test for page URL */\r\n+  it ('Inital page URL should be correct', function() {\r\n+    expect (browser.getLocationAbsUrl()).toEqual (ACCOUNT_URL);\r\n+  });\r\n+\r\n+/* Simple test for page title */\r\n+  it ('Initial page title should match', function() {\r\n+    expect (browser.getTitle()).toEqual(PAGE_TITLE);\r\n+  });\r\n+\r\n+/* At this point, the login button should be disabled */\r\n+  it ('Login button should be disabled until user enters name/password', function() {\r\n+    webdriver.wait(loginButton, 10000)\r\n+    .then(function(elm) {\r\n+      expect(elm.isEnabled()).toEqual(false);\r\n+    });\r\n+  });\r\n+\r\n+describe('Bad username and password', function() {\r\n+  beforeEach(function() {\r\n+    var usernameField = element(by.id('username'));\r\n+    var passwordField = element(by.id('password'));\r","path":"test/ui/login-test.js","position":42,"original_position":42,"commit_id":"ef159e33a73d97195cd7eaf3d0d14aed765dc289","original_commit_id":"ef159e33a73d97195cd7eaf3d0d14aed765dc289","user":{"login":"jrichter1","id":4181232,"avatar_url":"https://avatars.githubusercontent.com/u/4181232?v=3","gravatar_id":"","url":"https://api.github.com/users/jrichter1","html_url":"https://github.com/jrichter1","followers_url":"https://api.github.com/users/jrichter1/followers","following_url":"https://api.github.com/users/jrichter1/following{/other_user}","gists_url":"https://api.github.com/users/jrichter1/gists{/gist_id}","starred_url":"https://api.github.com/users/jrichter1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrichter1/subscriptions","organizations_url":"https://api.github.com/users/jrichter1/orgs","repos_url":"https://api.github.com/users/jrichter1/repos","events_url":"https://api.github.com/users/jrichter1/events{/privacy}","received_events_url":"https://api.github.com/users/jrichter1/received_events","type":"User","site_admin":false},"body":"Only one retrieval of the elements is needed - would be better to move the element discovery to a local beforeAll so it doesn't have to repeat for every test case.","created_at":"2016-03-23T11:50:46Z","updated_at":"2016-03-23T11:50:46Z","html_url":"https://github.com/redhat-developer-tooling/developer-platform-install/pull/42#discussion_r57146496","pull_request_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/pulls/comments/57146496"},"html":{"href":"https://github.com/redhat-developer-tooling/developer-platform-install/pull/42#discussion_r57146496"},"pull_request":{"href":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/pulls/42","id":63418288,"html_url":"https://github.com/redhat-developer-tooling/developer-platform-install/pull/42","diff_url":"https://github.com/redhat-developer-tooling/developer-platform-install/pull/42.diff","patch_url":"https://github.com/redhat-developer-tooling/developer-platform-install/pull/42.patch","issue_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/issues/42","number":42,"state":"open","locked":false,"title":"Added POC UI test script - for installer login failure","user":{"login":"ldimaggi","id":642621,"avatar_url":"https://avatars.githubusercontent.com/u/642621?v=3","gravatar_id":"","url":"https://api.github.com/users/ldimaggi","html_url":"https://github.com/ldimaggi","followers_url":"https://api.github.com/users/ldimaggi/followers","following_url":"https://api.github.com/users/ldimaggi/following{/other_user}","gists_url":"https://api.github.com/users/ldimaggi/gists{/gist_id}","starred_url":"https://api.github.com/users/ldimaggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldimaggi/subscriptions","organizations_url":"https://api.github.com/users/ldimaggi/orgs","repos_url":"https://api.github.com/users/ldimaggi/repos","events_url":"https://api.github.com/users/ldimaggi/events{/privacy}","received_events_url":"https://api.github.com/users/ldimaggi/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-18T18:36:30Z","updated_at":"2016-03-23T11:50:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e1eda52366fcd6aaa19fd3f05e67a12da83a57b3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/pulls/42/commits","review_comments_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/pulls/42/comments","review_comment_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/pulls/comments{/number}","comments_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/issues/42/comments","statuses_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/statuses/ef159e33a73d97195cd7eaf3d0d14aed765dc289","head":{"label":"ldimaggi:jbide-21914","ref":"jbide-21914","sha":"ef159e33a73d97195cd7eaf3d0d14aed765dc289","user":{"login":"ldimaggi","id":642621,"avatar_url":"https://avatars.githubusercontent.com/u/642621?v=3","gravatar_id":"","url":"https://api.github.com/users/ldimaggi","html_url":"https://github.com/ldimaggi","followers_url":"https://api.github.com/users/ldimaggi/followers","following_url":"https://api.github.com/users/ldimaggi/following{/other_user}","gists_url":"https://api.github.com/users/ldimaggi/gists{/gist_id}","starred_url":"https://api.github.com/users/ldimaggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldimaggi/subscriptions","organizations_url":"https://api.github.com/users/ldimaggi/orgs","repos_url":"https://api.github.com/users/ldimaggi/repos","events_url":"https://api.github.com/users/ldimaggi/events{/privacy}","received_events_url":"https://api.github.com/users/ldimaggi/received_events","type":"User","site_admin":false},"repo":{"id":53693877,"name":"developer-platform-install","full_name":"ldimaggi/developer-platform-install","owner":{"login":"ldimaggi","id":642621,"avatar_url":"https://avatars.githubusercontent.com/u/642621?v=3","gravatar_id":"","url":"https://api.github.com/users/ldimaggi","html_url":"https://github.com/ldimaggi","followers_url":"https://api.github.com/users/ldimaggi/followers","following_url":"https://api.github.com/users/ldimaggi/following{/other_user}","gists_url":"https://api.github.com/users/ldimaggi/gists{/gist_id}","starred_url":"https://api.github.com/users/ldimaggi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldimaggi/subscriptions","organizations_url":"https://api.github.com/users/ldimaggi/orgs","repos_url":"https://api.github.com/users/ldimaggi/repos","events_url":"https://api.github.com/users/ldimaggi/events{/privacy}","received_events_url":"https://api.github.com/users/ldimaggi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ldimaggi/developer-platform-install","description":"","fork":true,"url":"https://api.github.com/repos/ldimaggi/developer-platform-install","forks_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/forks","keys_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/teams","hooks_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/hooks","issue_events_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/issues/events{/number}","events_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/events","assignees_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/assignees{/user}","branches_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/branches{/branch}","tags_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/tags","blobs_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/git/refs{/sha}","trees_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/statuses/{sha}","languages_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/languages","stargazers_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/stargazers","contributors_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/contributors","subscribers_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/subscribers","subscription_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/subscription","commits_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/commits{/sha}","git_commits_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/git/commits{/sha}","comments_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/comments{/number}","issue_comment_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/issues/comments{/number}","contents_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/contents/{+path}","compare_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/merges","archive_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/downloads","issues_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/issues{/number}","pulls_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/pulls{/number}","milestones_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/milestones{/number}","notifications_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/labels{/name}","releases_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/releases{/id}","deployments_url":"https://api.github.com/repos/ldimaggi/developer-platform-install/deployments","created_at":"2016-03-11T20:10:18Z","updated_at":"2016-03-11T20:10:18Z","pushed_at":"2016-03-22T19:04:09Z","git_url":"git://github.com/ldimaggi/developer-platform-install.git","ssh_url":"git@github.com:ldimaggi/developer-platform-install.git","clone_url":"https://github.com/ldimaggi/developer-platform-install.git","svn_url":"https://github.com/ldimaggi/developer-platform-install","homepage":null,"size":166151,"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":"redhat-developer-tooling:master","ref":"master","sha":"63431f1f233346b569c76a22ec19ca5d829c4ad8","user":{"login":"redhat-developer-tooling","id":14943368,"avatar_url":"https://avatars.githubusercontent.com/u/14943368?v=3","gravatar_id":"","url":"https://api.github.com/users/redhat-developer-tooling","html_url":"https://github.com/redhat-developer-tooling","followers_url":"https://api.github.com/users/redhat-developer-tooling/followers","following_url":"https://api.github.com/users/redhat-developer-tooling/following{/other_user}","gists_url":"https://api.github.com/users/redhat-developer-tooling/gists{/gist_id}","starred_url":"https://api.github.com/users/redhat-developer-tooling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhat-developer-tooling/subscriptions","organizations_url":"https://api.github.com/users/redhat-developer-tooling/orgs","repos_url":"https://api.github.com/users/redhat-developer-tooling/repos","events_url":"https://api.github.com/users/redhat-developer-tooling/events{/privacy}","received_events_url":"https://api.github.com/users/redhat-developer-tooling/received_events","type":"Organization","site_admin":false},"repo":{"id":44125224,"name":"developer-platform-install","full_name":"redhat-developer-tooling/developer-platform-install","owner":{"login":"redhat-developer-tooling","id":14943368,"avatar_url":"https://avatars.githubusercontent.com/u/14943368?v=3","gravatar_id":"","url":"https://api.github.com/users/redhat-developer-tooling","html_url":"https://github.com/redhat-developer-tooling","followers_url":"https://api.github.com/users/redhat-developer-tooling/followers","following_url":"https://api.github.com/users/redhat-developer-tooling/following{/other_user}","gists_url":"https://api.github.com/users/redhat-developer-tooling/gists{/gist_id}","starred_url":"https://api.github.com/users/redhat-developer-tooling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redhat-developer-tooling/subscriptions","organizations_url":"https://api.github.com/users/redhat-developer-tooling/orgs","repos_url":"https://api.github.com/users/redhat-developer-tooling/repos","events_url":"https://api.github.com/users/redhat-developer-tooling/events{/privacy}","received_events_url":"https://api.github.com/users/redhat-developer-tooling/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/redhat-developer-tooling/developer-platform-install","description":"","fork":false,"url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install","forks_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/forks","keys_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/keys{/key_id}","collaborators_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/teams","hooks_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/hooks","issue_events_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/issues/events{/number}","events_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/events","assignees_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/assignees{/user}","branches_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/branches{/branch}","tags_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/tags","blobs_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/git/refs{/sha}","trees_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/git/trees{/sha}","statuses_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/statuses/{sha}","languages_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/languages","stargazers_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/stargazers","contributors_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/contributors","subscribers_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/subscribers","subscription_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/subscription","commits_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/commits{/sha}","git_commits_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/git/commits{/sha}","comments_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/comments{/number}","issue_comment_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/issues/comments{/number}","contents_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/contents/{+path}","compare_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/compare/{base}...{head}","merges_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/merges","archive_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/downloads","issues_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/issues{/number}","pulls_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/pulls{/number}","milestones_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/milestones{/number}","notifications_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/labels{/name}","releases_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/releases{/id}","deployments_url":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/deployments","created_at":"2015-10-12T18:10:26Z","updated_at":"2016-03-18T14:52:48Z","pushed_at":"2016-03-23T09:39:48Z","git_url":"git://github.com/redhat-developer-tooling/developer-platform-install.git","ssh_url":"git@github.com:redhat-developer-tooling/developer-platform-install.git","clone_url":"https://github.com/redhat-developer-tooling/developer-platform-install.git","svn_url":"https://github.com/redhat-developer-tooling/developer-platform-install","homepage":null,"size":166208,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":6,"forks":9,"open_issues":6,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/pulls/42"},"html":{"href":"https://github.com/redhat-developer-tooling/developer-platform-install/pull/42"},"issue":{"href":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/issues/42"},"comments":{"href":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/redhat-developer-tooling/developer-platform-install/statuses/ef159e33a73d97195cd7eaf3d0d14aed765dc289"}}}}