{"action":"created","comment":{"url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/comments/199462533","pull_request_review_id":133583928,"id":199462533,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTQ2MjUzMw==","diff_hunk":"@@ -0,0 +1,120 @@\n+/* tslint:disable:no-unused-expression */\n+import { expect } from 'chai'\n+\n+import { PartialAdmission, ResponseDraft } from 'response/draft/responseDraft'\n+import { IndividualDetails } from 'forms/models/individualDetails'\n+import { Defendant } from 'drafts/models/defendant'\n+\n+import { Response } from 'response/form/models/response'\n+import { AlreadyPaid } from 'response/form/models/alreadyPaid'\n+import { YesNoOption } from 'models/yesNoOption'\n+import { HowMuchHaveYouPaid } from 'response/form/models/howMuchHaveYouPaid'\n+import { ResponseType } from 'response/form/models/responseType'\n+import { HowMuchHaveYouPaidTask } from 'response/tasks/howMuchHaveYouPaidTask'\n+import { LocalDate } from 'forms/models/localDate'\n+import { generateString } from '../../../app/forms/models/validationUtils'\n+import { ValidationConstraints } from 'forms/validation/validationConstraints'\n+\n+const validLocalDate = LocalDate.fromObject({ day: 1, month: 1, year: 2010 })\n+const validAmount = 100\n+const validText = 'valid'\n+\n+function validResponseDraft (): ResponseDraft {\n+  const responseDraft: ResponseDraft = new ResponseDraft()\n+  responseDraft.response = new Response(ResponseType.PART_ADMISSION)\n+  responseDraft.partialAdmission = new PartialAdmission()\n+  responseDraft.partialAdmission.alreadyPaid = new AlreadyPaid(YesNoOption.YES)\n+  responseDraft.partialAdmission.howMuchHaveYouPaid = new HowMuchHaveYouPaid(validAmount, validLocalDate, validText)\n+  responseDraft.defendantDetails = new Defendant(new IndividualDetails())\n+\n+  return responseDraft\n+}\n+\n+describe('HowMuchHaveYouPaidTask', () => {\n+\n+  context('should not be completed when', () => {\n+\n+    it('response is not partially admission', () => {","path":"src/test/features/response/tasks/howMuchHaveYouPaidTask.ts","position":37,"original_position":37,"commit_id":"fb0ff88727a129f00b6a9da238bf1d257f62fa5c","original_commit_id":"fb0ff88727a129f00b6a9da238bf1d257f62fa5c","user":{"login":"yarpo","id":5647337,"node_id":"MDQ6VXNlcjU2NDczMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/5647337?v=4","gravatar_id":"","url":"https://api.github.com/users/yarpo","html_url":"https://github.com/yarpo","followers_url":"https://api.github.com/users/yarpo/followers","following_url":"https://api.github.com/users/yarpo/following{/other_user}","gists_url":"https://api.github.com/users/yarpo/gists{/gist_id}","starred_url":"https://api.github.com/users/yarpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarpo/subscriptions","organizations_url":"https://api.github.com/users/yarpo/orgs","repos_url":"https://api.github.com/users/yarpo/repos","events_url":"https://api.github.com/users/yarpo/events{/privacy}","received_events_url":"https://api.github.com/users/yarpo/received_events","type":"User","site_admin":false},"body":"ok","created_at":"2018-07-02T11:10:33Z","updated_at":"2018-07-02T11:10:33Z","html_url":"https://github.com/hmcts/cmc-citizen-frontend/pull/644#discussion_r199462533","pull_request_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/644","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/comments/199462533"},"html":{"href":"https://github.com/hmcts/cmc-citizen-frontend/pull/644#discussion_r199462533"},"pull_request":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/644"}},"in_reply_to_id":199462315},"pull_request":{"url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/644","id":197989971,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3OTg5OTcx","html_url":"https://github.com/hmcts/cmc-citizen-frontend/pull/644","diff_url":"https://github.com/hmcts/cmc-citizen-frontend/pull/644.diff","patch_url":"https://github.com/hmcts/cmc-citizen-frontend/pull/644.patch","issue_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/644","number":644,"state":"open","locked":false,"title":"ROC-3661: front end","user":{"login":"yarpo","id":5647337,"node_id":"MDQ6VXNlcjU2NDczMzc=","avatar_url":"https://avatars0.githubusercontent.com/u/5647337?v=4","gravatar_id":"","url":"https://api.github.com/users/yarpo","html_url":"https://github.com/yarpo","followers_url":"https://api.github.com/users/yarpo/followers","following_url":"https://api.github.com/users/yarpo/following{/other_user}","gists_url":"https://api.github.com/users/yarpo/gists{/gist_id}","starred_url":"https://api.github.com/users/yarpo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarpo/subscriptions","organizations_url":"https://api.github.com/users/yarpo/orgs","repos_url":"https://api.github.com/users/yarpo/repos","events_url":"https://api.github.com/users/yarpo/events{/privacy}","received_events_url":"https://api.github.com/users/yarpo/received_events","type":"User","site_admin":false},"body":"### JIRA link\r\nhttps://tools.hmcts.net/jira/browse/ROC-3661\r\n\r\n\r\n### Change description\r\nAdded partial admission flow\r\n\r\n\r\n### Work checklist\r\n\r\n- [x] Unit tests added where applicable\r\n- [x] Route tests added for new pages\r\n- [x] New pages included in a11y tests\r\n- [x] Task list and task completeness checks updated\r\n- [ ] Check and send page updated\r\n- [x] Routes, page content and page flows of new features are toggled \r\n- [x] UI changes look good on mobile\r\n- [x] Required Google Analytics events are being sent \r\n\r\n### Developer self-QA run statement\r\n\r\n- [ ] I have clicked through the running application to see if all changes I made actually work.\r\n\r\n### Does this PR introduce a breaking change?\r\n\r\n- [ ] Yes\r\n- [ ] No\r\n","created_at":"2018-06-28T10:48:16Z","updated_at":"2018-07-02T11:10:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"352627f62b456480c32e146f78aacc31301945f6","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/644/commits","review_comments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/644/comments","review_comment_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/644/comments","statuses_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/statuses/fb0ff88727a129f00b6a9da238bf1d257f62fa5c","head":{"label":"hmcts:feature/ROC-3661-front-end","ref":"feature/ROC-3661-front-end","sha":"fb0ff88727a129f00b6a9da238bf1d257f62fa5c","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":100393203,"node_id":"MDEwOlJlcG9zaXRvcnkxMDAzOTMyMDM=","name":"cmc-citizen-frontend","full_name":"hmcts/cmc-citizen-frontend","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/cmc-citizen-frontend","description":"Citizen frontend application for Civil Money Claims","fork":false,"url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend","forks_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/forks","keys_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/teams","hooks_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/hooks","issue_events_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/events","assignees_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/tags","blobs_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/languages","stargazers_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/stargazers","contributors_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/contributors","subscribers_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/subscribers","subscription_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/subscription","commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/merges","archive_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/downloads","issues_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/deployments","created_at":"2017-08-15T15:44:48Z","updated_at":"2018-07-02T11:07:59Z","pushed_at":"2018-07-02T11:08:28Z","git_url":"git://github.com/hmcts/cmc-citizen-frontend.git","ssh_url":"git@github.com:hmcts/cmc-citizen-frontend.git","clone_url":"https://github.com/hmcts/cmc-citizen-frontend.git","svn_url":"https://github.com/hmcts/cmc-citizen-frontend","homepage":"https://www.gov.uk/make-money-claim","size":4917,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":8,"watchers":2,"default_branch":"master"}},"base":{"label":"hmcts:master","ref":"master","sha":"d4f55b56a913c5cd25ac1f5f5eac2669b00efbe9","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":100393203,"node_id":"MDEwOlJlcG9zaXRvcnkxMDAzOTMyMDM=","name":"cmc-citizen-frontend","full_name":"hmcts/cmc-citizen-frontend","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/cmc-citizen-frontend","description":"Citizen frontend application for Civil Money Claims","fork":false,"url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend","forks_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/forks","keys_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/teams","hooks_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/hooks","issue_events_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/events","assignees_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/tags","blobs_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/languages","stargazers_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/stargazers","contributors_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/contributors","subscribers_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/subscribers","subscription_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/subscription","commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/merges","archive_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/downloads","issues_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/labels{/name}","releases_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/releases{/id}","deployments_url":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/deployments","created_at":"2017-08-15T15:44:48Z","updated_at":"2018-07-02T11:07:59Z","pushed_at":"2018-07-02T11:08:28Z","git_url":"git://github.com/hmcts/cmc-citizen-frontend.git","ssh_url":"git@github.com:hmcts/cmc-citizen-frontend.git","clone_url":"https://github.com/hmcts/cmc-citizen-frontend.git","svn_url":"https://github.com/hmcts/cmc-citizen-frontend","homepage":"https://www.gov.uk/make-money-claim","size":4917,"stargazers_count":2,"watchers_count":2,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":8,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":4,"open_issues":8,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/644"},"html":{"href":"https://github.com/hmcts/cmc-citizen-frontend/pull/644"},"issue":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/644"},"comments":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/issues/644/comments"},"review_comments":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/644/comments"},"review_comment":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/pulls/644/commits"},"statuses":{"href":"https://api.github.com/repos/hmcts/cmc-citizen-frontend/statuses/fb0ff88727a129f00b6a9da238bf1d257f62fa5c"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"yarpo"}}