{"action":"created","comment":{"url":"https://api.github.com/repos/hmcts/idam-web-public/pulls/comments/216376649","pull_request_review_id":153843312,"id":216376649,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNjM3NjY0OQ==","diff_hunk":"@@ -34,17 +34,32 @@ return Promise.all([\n });\n \n  Scenario('@functional @unlock My user account is unlocked when I reset my password - citizen', async (I) => {\n-       I.amOnPage(TestData.WEB_PUBLIC_URL + '/users/selfRegister?redirect_uri=https://www.autotest.com&client_id=' + serviceName);\n+       I.amOnPage(TestData.WEB_PUBLIC_URL + '/users/selfRegister?redirect_uri=https://idam.testservice.gov.uk&client_id=' + serviceName);\n        I.click('Sign in to your account');\n        I.waitInUrl('/login', 180);\n        I.waitForText('Sign in or create an account', 20, 'h1');\n-       I.lockAccount(citizenEmail);\n-       I.waitForText('There is a problem with your account login details');\n-       I.see('Your account is locked due to too many unsuccessful attempts.');\n+       I.lockAccount(citizenEmail, serviceName);\n        I.click('reset your password');\n        I.waitForText('Reset your password', 20, 'h1');\n        I.fillField('#email', citizenEmail);\n        I.click('Submit');\n        I.waitForText('Check your email', 20, 'h1');\n-       await I.verifyEmailSent(citizenEmail);\n+       I.see('Check your email');\n+       var resetPasswordUrl = await I.extractUrl(citizenEmail);\n+       I.amOnPage(resetPasswordUrl);\n+       I.waitForText('Create a new password', 20, 'h1');\n+       I.seeTitleEquals('Reset Password - HMCTS Access');\n+       I.fillField('#password1', 'Passw0rd1234');\n+       I.fillField('#password2', 'Passw0rd1234');\n+       I.click('Continue');\n+       I.waitForText('Your password has been changed', 20, 'h1');\n+       I.see('You can now sign in with your new password.')\n+       I.amOnPage(TestData.WEB_PUBLIC_URL + '/users/selfRegister?redirect_uri=https://idam.testservice.gov.uk&client_id=' + serviceName);\n+       I.click('Sign in to your account');\n+       I.waitInUrl('/login', 180);\n+       I.waitForText('Sign in or create an account', 20, 'h1');\n+       I.fillField('#username', citizenEmail);\n+       I.fillField('#password', 'Passw0rd1234');\n+       I.click('Sign in');\n+       I.waitInUrl('idam.testservice.gov.uk', 180);","path":"src/test/js/account_lockout_reset_password_test.js","position":36,"original_position":36,"commit_id":"36709b586e7d3f6be91ed86e2839f0a92e8c90f8","original_commit_id":"36709b586e7d3f6be91ed86e2839f0a92e8c90f8","user":{"login":"jburke-amido","id":39126884,"node_id":"MDQ6VXNlcjM5MTI2ODg0","avatar_url":"https://avatars0.githubusercontent.com/u/39126884?v=4","gravatar_id":"","url":"https://api.github.com/users/jburke-amido","html_url":"https://github.com/jburke-amido","followers_url":"https://api.github.com/users/jburke-amido/followers","following_url":"https://api.github.com/users/jburke-amido/following{/other_user}","gists_url":"https://api.github.com/users/jburke-amido/gists{/gist_id}","starred_url":"https://api.github.com/users/jburke-amido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jburke-amido/subscriptions","organizations_url":"https://api.github.com/users/jburke-amido/orgs","repos_url":"https://api.github.com/users/jburke-amido/repos","events_url":"https://api.github.com/users/jburke-amido/events{/privacy}","received_events_url":"https://api.github.com/users/jburke-amido/received_events","type":"User","site_admin":false},"body":"check for \"code\" parameter, and \"error\" not being present","created_at":"2018-09-10T15:55:24Z","updated_at":"2018-09-10T15:55:24Z","html_url":"https://github.com/hmcts/idam-web-public/pull/83#discussion_r216376649","pull_request_url":"https://api.github.com/repos/hmcts/idam-web-public/pulls/83","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hmcts/idam-web-public/pulls/comments/216376649"},"html":{"href":"https://github.com/hmcts/idam-web-public/pull/83#discussion_r216376649"},"pull_request":{"href":"https://api.github.com/repos/hmcts/idam-web-public/pulls/83"}}},"pull_request":{"url":"https://api.github.com/repos/hmcts/idam-web-public/pulls/83","id":213844004,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEzODQ0MDA0","html_url":"https://github.com/hmcts/idam-web-public/pull/83","diff_url":"https://github.com/hmcts/idam-web-public/pull/83.diff","patch_url":"https://github.com/hmcts/idam-web-public/pull/83.patch","issue_url":"https://api.github.com/repos/hmcts/idam-web-public/issues/83","number":83,"state":"open","locked":false,"title":"[PREVIEW] SIDM-1840: Get URL extraction working","user":{"login":"steveclewer","id":7994000,"node_id":"MDQ6VXNlcjc5OTQwMDA=","avatar_url":"https://avatars3.githubusercontent.com/u/7994000?v=4","gravatar_id":"","url":"https://api.github.com/users/steveclewer","html_url":"https://github.com/steveclewer","followers_url":"https://api.github.com/users/steveclewer/followers","following_url":"https://api.github.com/users/steveclewer/following{/other_user}","gists_url":"https://api.github.com/users/steveclewer/gists{/gist_id}","starred_url":"https://api.github.com/users/steveclewer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveclewer/subscriptions","organizations_url":"https://api.github.com/users/steveclewer/orgs","repos_url":"https://api.github.com/users/steveclewer/repos","events_url":"https://api.github.com/users/steveclewer/events{/privacy}","received_events_url":"https://api.github.com/users/steveclewer/received_events","type":"User","site_admin":false},"body":"https://tools.hmcts.net/jira/browse/SIDM-1840\r\n\r\nUse URL extracted from email for password reset.\r\n\r\n**Does this PR introduce a breaking change?** (check one with \"x\")\r\n\r\n```\r\n[ ] Yes\r\n[x] No\r\n```\r\n","created_at":"2018-09-07T07:48:15Z","updated_at":"2018-09-10T15:55:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5d6281c49880ad07cf841a167acdcc9164d3180f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hmcts/idam-web-public/pulls/83/commits","review_comments_url":"https://api.github.com/repos/hmcts/idam-web-public/pulls/83/comments","review_comment_url":"https://api.github.com/repos/hmcts/idam-web-public/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmcts/idam-web-public/issues/83/comments","statuses_url":"https://api.github.com/repos/hmcts/idam-web-public/statuses/36709b586e7d3f6be91ed86e2839f0a92e8c90f8","head":{"label":"hmcts:SIDM-1840-intercept-email","ref":"SIDM-1840-intercept-email","sha":"36709b586e7d3f6be91ed86e2839f0a92e8c90f8","user":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":132147429,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIxNDc0Mjk=","name":"idam-web-public","full_name":"hmcts/idam-web-public","owner":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmcts/idam-web-public","description":"Web Public Application for Reform IdAM (Strategic)","fork":false,"url":"https://api.github.com/repos/hmcts/idam-web-public","forks_url":"https://api.github.com/repos/hmcts/idam-web-public/forks","keys_url":"https://api.github.com/repos/hmcts/idam-web-public/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/idam-web-public/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/idam-web-public/teams","hooks_url":"https://api.github.com/repos/hmcts/idam-web-public/hooks","issue_events_url":"https://api.github.com/repos/hmcts/idam-web-public/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/idam-web-public/events","assignees_url":"https://api.github.com/repos/hmcts/idam-web-public/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/idam-web-public/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/idam-web-public/tags","blobs_url":"https://api.github.com/repos/hmcts/idam-web-public/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/idam-web-public/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/idam-web-public/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/idam-web-public/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/idam-web-public/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/idam-web-public/languages","stargazers_url":"https://api.github.com/repos/hmcts/idam-web-public/stargazers","contributors_url":"https://api.github.com/repos/hmcts/idam-web-public/contributors","subscribers_url":"https://api.github.com/repos/hmcts/idam-web-public/subscribers","subscription_url":"https://api.github.com/repos/hmcts/idam-web-public/subscription","commits_url":"https://api.github.com/repos/hmcts/idam-web-public/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/idam-web-public/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/idam-web-public/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/idam-web-public/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/idam-web-public/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/idam-web-public/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/idam-web-public/merges","archive_url":"https://api.github.com/repos/hmcts/idam-web-public/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/idam-web-public/downloads","issues_url":"https://api.github.com/repos/hmcts/idam-web-public/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/idam-web-public/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/idam-web-public/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/idam-web-public/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/idam-web-public/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/idam-web-public/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/idam-web-public/deployments","created_at":"2018-05-04T14:01:25Z","updated_at":"2018-09-07T16:22:39Z","pushed_at":"2018-09-10T15:49:15Z","git_url":"git://github.com/hmcts/idam-web-public.git","ssh_url":"git@github.com:hmcts/idam-web-public.git","clone_url":"https://github.com/hmcts/idam-web-public.git","svn_url":"https://github.com/hmcts/idam-web-public","homepage":null,"size":1803,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"hmcts:master","ref":"master","sha":"c0bd1d273166e80332ee90fff2158974f7608b32","user":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"repo":{"id":132147429,"node_id":"MDEwOlJlcG9zaXRvcnkxMzIxNDc0Mjk=","name":"idam-web-public","full_name":"hmcts/idam-web-public","owner":{"login":"hmcts","id":22817111,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyODE3MTEx","avatar_url":"https://avatars1.githubusercontent.com/u/22817111?v=4","gravatar_id":"","url":"https://api.github.com/users/hmcts","html_url":"https://github.com/hmcts","followers_url":"https://api.github.com/users/hmcts/followers","following_url":"https://api.github.com/users/hmcts/following{/other_user}","gists_url":"https://api.github.com/users/hmcts/gists{/gist_id}","starred_url":"https://api.github.com/users/hmcts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hmcts/subscriptions","organizations_url":"https://api.github.com/users/hmcts/orgs","repos_url":"https://api.github.com/users/hmcts/repos","events_url":"https://api.github.com/users/hmcts/events{/privacy}","received_events_url":"https://api.github.com/users/hmcts/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hmcts/idam-web-public","description":"Web Public Application for Reform IdAM (Strategic)","fork":false,"url":"https://api.github.com/repos/hmcts/idam-web-public","forks_url":"https://api.github.com/repos/hmcts/idam-web-public/forks","keys_url":"https://api.github.com/repos/hmcts/idam-web-public/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/idam-web-public/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/idam-web-public/teams","hooks_url":"https://api.github.com/repos/hmcts/idam-web-public/hooks","issue_events_url":"https://api.github.com/repos/hmcts/idam-web-public/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/idam-web-public/events","assignees_url":"https://api.github.com/repos/hmcts/idam-web-public/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/idam-web-public/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/idam-web-public/tags","blobs_url":"https://api.github.com/repos/hmcts/idam-web-public/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/idam-web-public/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/idam-web-public/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/idam-web-public/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/idam-web-public/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/idam-web-public/languages","stargazers_url":"https://api.github.com/repos/hmcts/idam-web-public/stargazers","contributors_url":"https://api.github.com/repos/hmcts/idam-web-public/contributors","subscribers_url":"https://api.github.com/repos/hmcts/idam-web-public/subscribers","subscription_url":"https://api.github.com/repos/hmcts/idam-web-public/subscription","commits_url":"https://api.github.com/repos/hmcts/idam-web-public/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/idam-web-public/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/idam-web-public/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/idam-web-public/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/idam-web-public/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/idam-web-public/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/idam-web-public/merges","archive_url":"https://api.github.com/repos/hmcts/idam-web-public/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/idam-web-public/downloads","issues_url":"https://api.github.com/repos/hmcts/idam-web-public/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/idam-web-public/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/idam-web-public/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/idam-web-public/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/idam-web-public/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/idam-web-public/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/idam-web-public/deployments","created_at":"2018-05-04T14:01:25Z","updated_at":"2018-09-07T16:22:39Z","pushed_at":"2018-09-10T15:49:15Z","git_url":"git://github.com/hmcts/idam-web-public.git","ssh_url":"git@github.com:hmcts/idam-web-public.git","clone_url":"https://github.com/hmcts/idam-web-public.git","svn_url":"https://github.com/hmcts/idam-web-public","homepage":null,"size":1803,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmcts/idam-web-public/pulls/83"},"html":{"href":"https://github.com/hmcts/idam-web-public/pull/83"},"issue":{"href":"https://api.github.com/repos/hmcts/idam-web-public/issues/83"},"comments":{"href":"https://api.github.com/repos/hmcts/idam-web-public/issues/83/comments"},"review_comments":{"href":"https://api.github.com/repos/hmcts/idam-web-public/pulls/83/comments"},"review_comment":{"href":"https://api.github.com/repos/hmcts/idam-web-public/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmcts/idam-web-public/pulls/83/commits"},"statuses":{"href":"https://api.github.com/repos/hmcts/idam-web-public/statuses/36709b586e7d3f6be91ed86e2839f0a92e8c90f8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"jburke-amido"}}