{"action":"created","comment":{"url":"https://api.github.com/repos/ca-cwds/acceptance_testing/pulls/comments/174876431","pull_request_review_id":104315358,"id":174876431,"diff_hunk":"@@ -0,0 +1,50 @@\n+# frozen_string_literal: true\n+\n+describe 'Screening Index', type: :feature, js: true do\n+  before do\n+    visit '/'\n+    login_user\n+    click_button 'Start Screening'\n+  end\n+\n+  let(:nav_links) { page.all('.side-bar ul li a') }\n+  let(:card_elements) { page.all('a.anchor', visible: false) }\n+\n+  it 'has a sidebar' do\n+    expect(page).to have_css('.side-bar')\n+  end\n+\n+  it 'has list of anchor links on the left hand side of the page' do\n+    within '.side-bar' do\n+      expect(page).to have_link('People & Roles', href: '#search-card-anchor')\n+      expect(page).to have_link('Relationships', href: '#relationships-card-anchor')\n+      expect(page).to have_link('History', href: '#history-card-anchor')\n+    end\n+  end\n+\n+  it 'has a sidebar anchor links that appear in the same order as they are presented on the right hand side' do\n+    card_elements.each_with_index do |element, index|\n+      expect(nav_links[index][:href]).to include element[:id]\n+    end\n+  end\n+\n+  it 'has a side anchor links, when clicked should automatically scroll and put the card in focus' do\n+    click_link('People & Roles')\n+    expect(page).to have_css ('#search-card')\n+    expect(page.current_url).to include '#search-card-anchor'\n+    click_link('Relationships')\n+    expect(page).to have_css ('#relationships-card')\n+    expect(page.current_url).to include '#relationships-card-anchor'\n+    click_link('History')\n+    expect(page).to have_css ('#history-card')\n+    expect(page.current_url).to include '#history-card-anchor'\n+  end\n+\n+  it 'has a sidebar that sticks to the left side when scrolling down the page' do\n+    page.execute_script \"window.scrollBy(0,10000)\"\n+    click_link('People & Roles')\n+    click_link('Relationships')\n+    click_link('History')\n+    expect(page).to have_css('.side-bar')","path":"spec/screening/sidebar_spec.rb","position":48,"original_position":48,"commit_id":"1c5313441cad9ee0da35b788284f2365f33f2bc5","original_commit_id":"1c5313441cad9ee0da35b788284f2365f33f2bc5","user":{"login":"wmitchell-cambria","id":36680514,"avatar_url":"https://avatars2.githubusercontent.com/u/36680514?v=4","gravatar_id":"","url":"https://api.github.com/users/wmitchell-cambria","html_url":"https://github.com/wmitchell-cambria","followers_url":"https://api.github.com/users/wmitchell-cambria/followers","following_url":"https://api.github.com/users/wmitchell-cambria/following{/other_user}","gists_url":"https://api.github.com/users/wmitchell-cambria/gists{/gist_id}","starred_url":"https://api.github.com/users/wmitchell-cambria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wmitchell-cambria/subscriptions","organizations_url":"https://api.github.com/users/wmitchell-cambria/orgs","repos_url":"https://api.github.com/users/wmitchell-cambria/repos","events_url":"https://api.github.com/users/wmitchell-cambria/events{/privacy}","received_events_url":"https://api.github.com/users/wmitchell-cambria/received_events","type":"User","site_admin":false},"body":"The sidebar isn't actually the thing being clicked, though. I'm talking with Manish offline, though, and he confirmed that `have_css` (and all Capybara selectors) default to only checking for visible elements, unless you pass in an option like `visible: false`. So, this comment can be considered resolved from my perspective.","created_at":"2018-03-15T17:58:57Z","updated_at":"2018-03-15T17:58:57Z","html_url":"https://github.com/ca-cwds/acceptance_testing/pull/84#discussion_r174876431","pull_request_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/pulls/84","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/ca-cwds/acceptance_testing/pulls/comments/174876431"},"html":{"href":"https://github.com/ca-cwds/acceptance_testing/pull/84#discussion_r174876431"},"pull_request":{"href":"https://api.github.com/repos/ca-cwds/acceptance_testing/pulls/84"}},"in_reply_to_id":174855682},"pull_request":{"url":"https://api.github.com/repos/ca-cwds/acceptance_testing/pulls/84","id":175278712,"html_url":"https://github.com/ca-cwds/acceptance_testing/pull/84","diff_url":"https://github.com/ca-cwds/acceptance_testing/pull/84.diff","patch_url":"https://github.com/ca-cwds/acceptance_testing/pull/84.patch","issue_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/issues/84","number":84,"state":"open","locked":false,"title":"Int 1404 acceptance test for sidebar in snapshot","user":{"login":"pokharelmanish","id":24608948,"avatar_url":"https://avatars3.githubusercontent.com/u/24608948?v=4","gravatar_id":"","url":"https://api.github.com/users/pokharelmanish","html_url":"https://github.com/pokharelmanish","followers_url":"https://api.github.com/users/pokharelmanish/followers","following_url":"https://api.github.com/users/pokharelmanish/following{/other_user}","gists_url":"https://api.github.com/users/pokharelmanish/gists{/gist_id}","starred_url":"https://api.github.com/users/pokharelmanish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pokharelmanish/subscriptions","organizations_url":"https://api.github.com/users/pokharelmanish/orgs","repos_url":"https://api.github.com/users/pokharelmanish/repos","events_url":"https://api.github.com/users/pokharelmanish/events{/privacy}","received_events_url":"https://api.github.com/users/pokharelmanish/received_events","type":"User","site_admin":false},"body":"### Jira Story\r\n[Write acceptance test for sidebar in snapshot.](https://osi-cwds.atlassian.net/browse/INT-1404)\r\n\r\n## Description\r\nAdded acceptance test for the sidebar in snapshot and screening. \r\n\r\n## Checklist:\r\n<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->\r\n<!--- If you're unsure about any of these, don't hesitate to ask. -->\r\n- [x] My code follows the code style of this project.\r\n- [x] I have ran all tests for the project.\r\n- [x] I have ran lint/rubocop check for the changed/new files.\r\n- [x] My code is in a stable state ready to be deployable, but not necessarily complete.\r\n- [x] I promise on my honor as a CWDS developer to ensure I don't break the build, to check Lint/Rubocop, use best practices, to leave the code in better shape than I found it, and to have a good day.","created_at":"2018-03-15T15:01:06Z","updated_at":"2018-03-15T17:58:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a2cbc329c876c63bf12ca3a70da59aca556f7518","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/pulls/84/commits","review_comments_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/pulls/84/comments","review_comment_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/issues/84/comments","statuses_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/statuses/1c5313441cad9ee0da35b788284f2365f33f2bc5","head":{"label":"ca-cwds:INT-1404-acceptance-test-for-sidebar-in-snapshot","ref":"INT-1404-acceptance-test-for-sidebar-in-snapshot","sha":"1c5313441cad9ee0da35b788284f2365f33f2bc5","user":{"login":"ca-cwds","id":16274270,"avatar_url":"https://avatars3.githubusercontent.com/u/16274270?v=4","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":80653329,"name":"acceptance_testing","full_name":"ca-cwds/acceptance_testing","owner":{"login":"ca-cwds","id":16274270,"avatar_url":"https://avatars3.githubusercontent.com/u/16274270?v=4","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/acceptance_testing","description":"acceptance testing","fork":false,"url":"https://api.github.com/repos/ca-cwds/acceptance_testing","forks_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/forks","keys_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/teams","hooks_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/hooks","issue_events_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/issues/events{/number}","events_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/events","assignees_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/assignees{/user}","branches_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/branches{/branch}","tags_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/tags","blobs_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/statuses/{sha}","languages_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/languages","stargazers_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/stargazers","contributors_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/contributors","subscribers_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/subscribers","subscription_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/subscription","commits_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/contents/{+path}","compare_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/merges","archive_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/downloads","issues_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/issues{/number}","pulls_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/pulls{/number}","milestones_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/milestones{/number}","notifications_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/labels{/name}","releases_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/releases{/id}","deployments_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/deployments","created_at":"2017-02-01T19:03:14Z","updated_at":"2018-03-14T18:40:23Z","pushed_at":"2018-03-15T15:01:07Z","git_url":"git://github.com/ca-cwds/acceptance_testing.git","ssh_url":"git@github.com:ca-cwds/acceptance_testing.git","clone_url":"https://github.com/ca-cwds/acceptance_testing.git","svn_url":"https://github.com/ca-cwds/acceptance_testing","homepage":null,"size":254,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ca-cwds:master","ref":"master","sha":"5bb9d23f9f1136d7307f436de73c5fa2405d33a1","user":{"login":"ca-cwds","id":16274270,"avatar_url":"https://avatars3.githubusercontent.com/u/16274270?v=4","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":80653329,"name":"acceptance_testing","full_name":"ca-cwds/acceptance_testing","owner":{"login":"ca-cwds","id":16274270,"avatar_url":"https://avatars3.githubusercontent.com/u/16274270?v=4","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/acceptance_testing","description":"acceptance testing","fork":false,"url":"https://api.github.com/repos/ca-cwds/acceptance_testing","forks_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/forks","keys_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/teams","hooks_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/hooks","issue_events_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/issues/events{/number}","events_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/events","assignees_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/assignees{/user}","branches_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/branches{/branch}","tags_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/tags","blobs_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/git/refs{/sha}","trees_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/statuses/{sha}","languages_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/languages","stargazers_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/stargazers","contributors_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/contributors","subscribers_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/subscribers","subscription_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/subscription","commits_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/commits{/sha}","git_commits_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/git/commits{/sha}","comments_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/comments{/number}","issue_comment_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/issues/comments{/number}","contents_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/contents/{+path}","compare_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/merges","archive_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/downloads","issues_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/issues{/number}","pulls_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/pulls{/number}","milestones_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/milestones{/number}","notifications_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/labels{/name}","releases_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/releases{/id}","deployments_url":"https://api.github.com/repos/ca-cwds/acceptance_testing/deployments","created_at":"2017-02-01T19:03:14Z","updated_at":"2018-03-14T18:40:23Z","pushed_at":"2018-03-15T15:01:07Z","git_url":"git://github.com/ca-cwds/acceptance_testing.git","ssh_url":"git@github.com:ca-cwds/acceptance_testing.git","clone_url":"https://github.com/ca-cwds/acceptance_testing.git","svn_url":"https://github.com/ca-cwds/acceptance_testing","homepage":null,"size":254,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ca-cwds/acceptance_testing/pulls/84"},"html":{"href":"https://github.com/ca-cwds/acceptance_testing/pull/84"},"issue":{"href":"https://api.github.com/repos/ca-cwds/acceptance_testing/issues/84"},"comments":{"href":"https://api.github.com/repos/ca-cwds/acceptance_testing/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/ca-cwds/acceptance_testing/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/ca-cwds/acceptance_testing/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ca-cwds/acceptance_testing/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/ca-cwds/acceptance_testing/statuses/1c5313441cad9ee0da35b788284f2365f33f2bc5"}},"author_association":"NONE"}}
{"actor":{"display_login":"wmitchell-cambria"}}