{"action":"created","comment":{"url":"https://api.github.com/repos/ca-cwds/intake/pulls/comments/121543787","pull_request_review_id":43581637,"id":121543787,"diff_hunk":"@@ -125,4 +125,66 @@ describe('InputField', () => {\n       expect(event.target.placeholder).toEqual('I like attention :) ')\n     })\n   })\n+\n+  describe('when InputField is NOT required', () => {\n+    const props = {\n+      gridClassName: 'myWrapperTest',\n+      labelClassName: 'myLabelTest',\n+      id: 'myInputFieldId',\n+      label: 'this is my label',\n+      onChange: onChange,\n+    }\n+\n+    beforeEach(() => {\n+      component = shallow(<InputField {...props}/>)\n+    })\n+    it('renders an input field', () => {\n+      expect(component.find('label.required').exists()).toEqual(false)\n+      expect(component.find('label').not('.required').exists()).toEqual(true)\n+    })\n+  })\n+\n+  describe('when InputField is required', () => {\n+    const props = {\n+      gridClassName: 'myWrapperTest',\n+      labelClassName: 'myLabelTest',\n+      id: 'myInputFieldId',\n+      label: 'this is my label',\n+      onChange: onChange,\n+      required: true,\n+    }\n+\n+    beforeEach(() => {\n+      component = shallow(<InputField {...props}/>)\n+    })\n+    it('renders a required input field', () => {\n+      expect(component.find('label.required').exists()).toEqual(true)\n+      expect(component.find('label').not('.required').exists()).toEqual(false)\n+      expect(component.find('input').prop('required')).toEqual(true)\n+      expect(component.find('input').prop('aria-required')).toEqual(true)\n+    })\n+  })\n+\n+  describe('when MaskedInput is required', () => {","path":"spec/javascripts/components/common/InputFieldSpec.jsx","position":44,"original_position":44,"commit_id":"06654b78aa28de48f03562d92b4a3805922f5fd3","original_commit_id":"00c3fd17325a94bd34a62871abd0dd2111c1f9ad","user":{"login":"saraOSI","id":26719864,"avatar_url":"https://avatars0.githubusercontent.com/u/26719864?v=3","gravatar_id":"","url":"https://api.github.com/users/saraOSI","html_url":"https://github.com/saraOSI","followers_url":"https://api.github.com/users/saraOSI/followers","following_url":"https://api.github.com/users/saraOSI/following{/other_user}","gists_url":"https://api.github.com/users/saraOSI/gists{/gist_id}","starred_url":"https://api.github.com/users/saraOSI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saraOSI/subscriptions","organizations_url":"https://api.github.com/users/saraOSI/orgs","repos_url":"https://api.github.com/users/saraOSI/repos","events_url":"https://api.github.com/users/saraOSI/events{/privacy}","received_events_url":"https://api.github.com/users/saraOSI/received_events","type":"User","site_admin":false},"body":"👍 ","created_at":"2017-06-12T22:36:26Z","updated_at":"2017-06-12T22:36:26Z","html_url":"https://github.com/ca-cwds/intake/pull/198#discussion_r121543787","pull_request_url":"https://api.github.com/repos/ca-cwds/intake/pulls/198","_links":{"self":{"href":"https://api.github.com/repos/ca-cwds/intake/pulls/comments/121543787"},"html":{"href":"https://github.com/ca-cwds/intake/pull/198#discussion_r121543787"},"pull_request":{"href":"https://api.github.com/repos/ca-cwds/intake/pulls/198"}}},"pull_request":{"url":"https://api.github.com/repos/ca-cwds/intake/pulls/198","id":124909662,"html_url":"https://github.com/ca-cwds/intake/pull/198","diff_url":"https://github.com/ca-cwds/intake/pull/198.diff","patch_url":"https://github.com/ca-cwds/intake/pull/198.patch","issue_url":"https://api.github.com/repos/ca-cwds/intake/issues/198","number":198,"state":"open","locked":false,"title":"In 146125903 add required flags","user":{"login":"AmanShurafa","id":28609622,"avatar_url":"https://avatars0.githubusercontent.com/u/28609622?v=3","gravatar_id":"","url":"https://api.github.com/users/AmanShurafa","html_url":"https://github.com/AmanShurafa","followers_url":"https://api.github.com/users/AmanShurafa/followers","following_url":"https://api.github.com/users/AmanShurafa/following{/other_user}","gists_url":"https://api.github.com/users/AmanShurafa/gists{/gist_id}","starred_url":"https://api.github.com/users/AmanShurafa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AmanShurafa/subscriptions","organizations_url":"https://api.github.com/users/AmanShurafa/orgs","repos_url":"https://api.github.com/users/AmanShurafa/repos","events_url":"https://api.github.com/users/AmanShurafa/events{/privacy}","received_events_url":"https://api.github.com/users/AmanShurafa/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-06-09T16:56:52Z","updated_at":"2017-06-12T22:36:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4fbe942f8e17300d9d2fbe8c9cf30bf97ad99406","assignee":{"login":"NateOSI","id":22509591,"avatar_url":"https://avatars1.githubusercontent.com/u/22509591?v=3","gravatar_id":"","url":"https://api.github.com/users/NateOSI","html_url":"https://github.com/NateOSI","followers_url":"https://api.github.com/users/NateOSI/followers","following_url":"https://api.github.com/users/NateOSI/following{/other_user}","gists_url":"https://api.github.com/users/NateOSI/gists{/gist_id}","starred_url":"https://api.github.com/users/NateOSI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NateOSI/subscriptions","organizations_url":"https://api.github.com/users/NateOSI/orgs","repos_url":"https://api.github.com/users/NateOSI/repos","events_url":"https://api.github.com/users/NateOSI/events{/privacy}","received_events_url":"https://api.github.com/users/NateOSI/received_events","type":"User","site_admin":false},"assignees":[{"login":"NateOSI","id":22509591,"avatar_url":"https://avatars1.githubusercontent.com/u/22509591?v=3","gravatar_id":"","url":"https://api.github.com/users/NateOSI","html_url":"https://github.com/NateOSI","followers_url":"https://api.github.com/users/NateOSI/followers","following_url":"https://api.github.com/users/NateOSI/following{/other_user}","gists_url":"https://api.github.com/users/NateOSI/gists{/gist_id}","starred_url":"https://api.github.com/users/NateOSI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NateOSI/subscriptions","organizations_url":"https://api.github.com/users/NateOSI/orgs","repos_url":"https://api.github.com/users/NateOSI/repos","events_url":"https://api.github.com/users/NateOSI/events{/privacy}","received_events_url":"https://api.github.com/users/NateOSI/received_events","type":"User","site_admin":false},{"login":"aaronOSI","id":25188905,"avatar_url":"https://avatars2.githubusercontent.com/u/25188905?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronOSI","html_url":"https://github.com/aaronOSI","followers_url":"https://api.github.com/users/aaronOSI/followers","following_url":"https://api.github.com/users/aaronOSI/following{/other_user}","gists_url":"https://api.github.com/users/aaronOSI/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronOSI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronOSI/subscriptions","organizations_url":"https://api.github.com/users/aaronOSI/orgs","repos_url":"https://api.github.com/users/aaronOSI/repos","events_url":"https://api.github.com/users/aaronOSI/events{/privacy}","received_events_url":"https://api.github.com/users/aaronOSI/received_events","type":"User","site_admin":false},{"login":"brunoOSI","id":25443739,"avatar_url":"https://avatars2.githubusercontent.com/u/25443739?v=3","gravatar_id":"","url":"https://api.github.com/users/brunoOSI","html_url":"https://github.com/brunoOSI","followers_url":"https://api.github.com/users/brunoOSI/followers","following_url":"https://api.github.com/users/brunoOSI/following{/other_user}","gists_url":"https://api.github.com/users/brunoOSI/gists{/gist_id}","starred_url":"https://api.github.com/users/brunoOSI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brunoOSI/subscriptions","organizations_url":"https://api.github.com/users/brunoOSI/orgs","repos_url":"https://api.github.com/users/brunoOSI/repos","events_url":"https://api.github.com/users/brunoOSI/events{/privacy}","received_events_url":"https://api.github.com/users/brunoOSI/received_events","type":"User","site_admin":false},{"login":"saraOSI","id":26719864,"avatar_url":"https://avatars0.githubusercontent.com/u/26719864?v=3","gravatar_id":"","url":"https://api.github.com/users/saraOSI","html_url":"https://github.com/saraOSI","followers_url":"https://api.github.com/users/saraOSI/followers","following_url":"https://api.github.com/users/saraOSI/following{/other_user}","gists_url":"https://api.github.com/users/saraOSI/gists{/gist_id}","starred_url":"https://api.github.com/users/saraOSI/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saraOSI/subscriptions","organizations_url":"https://api.github.com/users/saraOSI/orgs","repos_url":"https://api.github.com/users/saraOSI/repos","events_url":"https://api.github.com/users/saraOSI/events{/privacy}","received_events_url":"https://api.github.com/users/saraOSI/received_events","type":"User","site_admin":false},{"login":"jgedeon-osi","id":28609691,"avatar_url":"https://avatars3.githubusercontent.com/u/28609691?v=3","gravatar_id":"","url":"https://api.github.com/users/jgedeon-osi","html_url":"https://github.com/jgedeon-osi","followers_url":"https://api.github.com/users/jgedeon-osi/followers","following_url":"https://api.github.com/users/jgedeon-osi/following{/other_user}","gists_url":"https://api.github.com/users/jgedeon-osi/gists{/gist_id}","starred_url":"https://api.github.com/users/jgedeon-osi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgedeon-osi/subscriptions","organizations_url":"https://api.github.com/users/jgedeon-osi/orgs","repos_url":"https://api.github.com/users/jgedeon-osi/repos","events_url":"https://api.github.com/users/jgedeon-osi/events{/privacy}","received_events_url":"https://api.github.com/users/jgedeon-osi/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ca-cwds/intake/pulls/198/commits","review_comments_url":"https://api.github.com/repos/ca-cwds/intake/pulls/198/comments","review_comment_url":"https://api.github.com/repos/ca-cwds/intake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ca-cwds/intake/issues/198/comments","statuses_url":"https://api.github.com/repos/ca-cwds/intake/statuses/06654b78aa28de48f03562d92b4a3805922f5fd3","head":{"label":"ca-cwds:in_146125903_add_required_flags","ref":"in_146125903_add_required_flags","sha":"06654b78aa28de48f03562d92b4a3805922f5fd3","user":{"login":"ca-cwds","id":16274270,"avatar_url":"https://avatars0.githubusercontent.com/u/16274270?v=3","gravatar_id":"","url":"https://api.github.com/users/ca-cwds","html_url":"https://github.com/ca-cwds","followers_url":"https://api.github.com/users/ca-cwds/followers","following_url":"https://api.github.com/users/ca-cwds/following{/other_user}","gists_url":"https://api.github.com/users/ca-cwds/gists{/gist_id}","starred_url":"https://api.github.com/users/ca-cwds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca-cwds/subscriptions","organizations_url":"https://api.github.com/users/ca-cwds/orgs","repos_url":"https://api.github.com/users/ca-cwds/repos","events_url":"https://api.github.com/users/ca-cwds/events{/privacy}","received_events_url":"https://api.github.com/users/ca-cwds/received_events","type":"Organization","site_admin":false},"repo":{"id":69582220,"name":"intake","full_name":"ca-cwds/intake","owner":{"login":"ca-cwds","id":16274270,"avatar_url":"https://avatars0.githubusercontent.com/u/16274270?v=3","gravatar_id":"","url":"https://api.github.com/users/ca-cwds","html_url":"https://github.com/ca-cwds","followers_url":"https://api.github.com/users/ca-cwds/followers","following_url":"https://api.github.com/users/ca-cwds/following{/other_user}","gists_url":"https://api.github.com/users/ca-cwds/gists{/gist_id}","starred_url":"https://api.github.com/users/ca-cwds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca-cwds/subscriptions","organizations_url":"https://api.github.com/users/ca-cwds/orgs","repos_url":"https://api.github.com/users/ca-cwds/repos","events_url":"https://api.github.com/users/ca-cwds/events{/privacy}","received_events_url":"https://api.github.com/users/ca-cwds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ca-cwds/intake","description":"The Casebook Intake Accelerator","fork":true,"url":"https://api.github.com/repos/ca-cwds/intake","forks_url":"https://api.github.com/repos/ca-cwds/intake/forks","keys_url":"https://api.github.com/repos/ca-cwds/intake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ca-cwds/intake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ca-cwds/intake/teams","hooks_url":"https://api.github.com/repos/ca-cwds/intake/hooks","issue_events_url":"https://api.github.com/repos/ca-cwds/intake/issues/events{/number}","events_url":"https://api.github.com/repos/ca-cwds/intake/events","assignees_url":"https://api.github.com/repos/ca-cwds/intake/assignees{/user}","branches_url":"https://api.github.com/repos/ca-cwds/intake/branches{/branch}","tags_url":"https://api.github.com/repos/ca-cwds/intake/tags","blobs_url":"https://api.github.com/repos/ca-cwds/intake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ca-cwds/intake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ca-cwds/intake/git/refs{/sha}","trees_url":"https://api.github.com/repos/ca-cwds/intake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ca-cwds/intake/statuses/{sha}","languages_url":"https://api.github.com/repos/ca-cwds/intake/languages","stargazers_url":"https://api.github.com/repos/ca-cwds/intake/stargazers","contributors_url":"https://api.github.com/repos/ca-cwds/intake/contributors","subscribers_url":"https://api.github.com/repos/ca-cwds/intake/subscribers","subscription_url":"https://api.github.com/repos/ca-cwds/intake/subscription","commits_url":"https://api.github.com/repos/ca-cwds/intake/commits{/sha}","git_commits_url":"https://api.github.com/repos/ca-cwds/intake/git/commits{/sha}","comments_url":"https://api.github.com/repos/ca-cwds/intake/comments{/number}","issue_comment_url":"https://api.github.com/repos/ca-cwds/intake/issues/comments{/number}","contents_url":"https://api.github.com/repos/ca-cwds/intake/contents/{+path}","compare_url":"https://api.github.com/repos/ca-cwds/intake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ca-cwds/intake/merges","archive_url":"https://api.github.com/repos/ca-cwds/intake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ca-cwds/intake/downloads","issues_url":"https://api.github.com/repos/ca-cwds/intake/issues{/number}","pulls_url":"https://api.github.com/repos/ca-cwds/intake/pulls{/number}","milestones_url":"https://api.github.com/repos/ca-cwds/intake/milestones{/number}","notifications_url":"https://api.github.com/repos/ca-cwds/intake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ca-cwds/intake/labels{/name}","releases_url":"https://api.github.com/repos/ca-cwds/intake/releases{/id}","deployments_url":"https://api.github.com/repos/ca-cwds/intake/deployments","created_at":"2016-09-29T15:42:09Z","updated_at":"2016-11-21T22:47:30Z","pushed_at":"2017-06-12T22:09:11Z","git_url":"git://github.com/ca-cwds/intake.git","ssh_url":"git@github.com:ca-cwds/intake.git","clone_url":"https://github.com/ca-cwds/intake.git","svn_url":"https://github.com/ca-cwds/intake","homepage":"","size":3644,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":3,"default_branch":"master"}},"base":{"label":"ca-cwds:master","ref":"master","sha":"a2b11f2c91ea67ebc312f4b879f4dded78fd16f1","user":{"login":"ca-cwds","id":16274270,"avatar_url":"https://avatars0.githubusercontent.com/u/16274270?v=3","gravatar_id":"","url":"https://api.github.com/users/ca-cwds","html_url":"https://github.com/ca-cwds","followers_url":"https://api.github.com/users/ca-cwds/followers","following_url":"https://api.github.com/users/ca-cwds/following{/other_user}","gists_url":"https://api.github.com/users/ca-cwds/gists{/gist_id}","starred_url":"https://api.github.com/users/ca-cwds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca-cwds/subscriptions","organizations_url":"https://api.github.com/users/ca-cwds/orgs","repos_url":"https://api.github.com/users/ca-cwds/repos","events_url":"https://api.github.com/users/ca-cwds/events{/privacy}","received_events_url":"https://api.github.com/users/ca-cwds/received_events","type":"Organization","site_admin":false},"repo":{"id":69582220,"name":"intake","full_name":"ca-cwds/intake","owner":{"login":"ca-cwds","id":16274270,"avatar_url":"https://avatars0.githubusercontent.com/u/16274270?v=3","gravatar_id":"","url":"https://api.github.com/users/ca-cwds","html_url":"https://github.com/ca-cwds","followers_url":"https://api.github.com/users/ca-cwds/followers","following_url":"https://api.github.com/users/ca-cwds/following{/other_user}","gists_url":"https://api.github.com/users/ca-cwds/gists{/gist_id}","starred_url":"https://api.github.com/users/ca-cwds/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ca-cwds/subscriptions","organizations_url":"https://api.github.com/users/ca-cwds/orgs","repos_url":"https://api.github.com/users/ca-cwds/repos","events_url":"https://api.github.com/users/ca-cwds/events{/privacy}","received_events_url":"https://api.github.com/users/ca-cwds/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ca-cwds/intake","description":"The Casebook Intake Accelerator","fork":true,"url":"https://api.github.com/repos/ca-cwds/intake","forks_url":"https://api.github.com/repos/ca-cwds/intake/forks","keys_url":"https://api.github.com/repos/ca-cwds/intake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ca-cwds/intake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ca-cwds/intake/teams","hooks_url":"https://api.github.com/repos/ca-cwds/intake/hooks","issue_events_url":"https://api.github.com/repos/ca-cwds/intake/issues/events{/number}","events_url":"https://api.github.com/repos/ca-cwds/intake/events","assignees_url":"https://api.github.com/repos/ca-cwds/intake/assignees{/user}","branches_url":"https://api.github.com/repos/ca-cwds/intake/branches{/branch}","tags_url":"https://api.github.com/repos/ca-cwds/intake/tags","blobs_url":"https://api.github.com/repos/ca-cwds/intake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ca-cwds/intake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ca-cwds/intake/git/refs{/sha}","trees_url":"https://api.github.com/repos/ca-cwds/intake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ca-cwds/intake/statuses/{sha}","languages_url":"https://api.github.com/repos/ca-cwds/intake/languages","stargazers_url":"https://api.github.com/repos/ca-cwds/intake/stargazers","contributors_url":"https://api.github.com/repos/ca-cwds/intake/contributors","subscribers_url":"https://api.github.com/repos/ca-cwds/intake/subscribers","subscription_url":"https://api.github.com/repos/ca-cwds/intake/subscription","commits_url":"https://api.github.com/repos/ca-cwds/intake/commits{/sha}","git_commits_url":"https://api.github.com/repos/ca-cwds/intake/git/commits{/sha}","comments_url":"https://api.github.com/repos/ca-cwds/intake/comments{/number}","issue_comment_url":"https://api.github.com/repos/ca-cwds/intake/issues/comments{/number}","contents_url":"https://api.github.com/repos/ca-cwds/intake/contents/{+path}","compare_url":"https://api.github.com/repos/ca-cwds/intake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ca-cwds/intake/merges","archive_url":"https://api.github.com/repos/ca-cwds/intake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ca-cwds/intake/downloads","issues_url":"https://api.github.com/repos/ca-cwds/intake/issues{/number}","pulls_url":"https://api.github.com/repos/ca-cwds/intake/pulls{/number}","milestones_url":"https://api.github.com/repos/ca-cwds/intake/milestones{/number}","notifications_url":"https://api.github.com/repos/ca-cwds/intake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ca-cwds/intake/labels{/name}","releases_url":"https://api.github.com/repos/ca-cwds/intake/releases{/id}","deployments_url":"https://api.github.com/repos/ca-cwds/intake/deployments","created_at":"2016-09-29T15:42:09Z","updated_at":"2016-11-21T22:47:30Z","pushed_at":"2017-06-12T22:09:11Z","git_url":"git://github.com/ca-cwds/intake.git","ssh_url":"git@github.com:ca-cwds/intake.git","clone_url":"https://github.com/ca-cwds/intake.git","svn_url":"https://github.com/ca-cwds/intake","homepage":"","size":3644,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ca-cwds/intake/pulls/198"},"html":{"href":"https://github.com/ca-cwds/intake/pull/198"},"issue":{"href":"https://api.github.com/repos/ca-cwds/intake/issues/198"},"comments":{"href":"https://api.github.com/repos/ca-cwds/intake/issues/198/comments"},"review_comments":{"href":"https://api.github.com/repos/ca-cwds/intake/pulls/198/comments"},"review_comment":{"href":"https://api.github.com/repos/ca-cwds/intake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ca-cwds/intake/pulls/198/commits"},"statuses":{"href":"https://api.github.com/repos/ca-cwds/intake/statuses/06654b78aa28de48f03562d92b4a3805922f5fd3"}}}}
{"actor":{"display_login":"saraOSI"}}