{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/bedrock/pulls/comments/34994411","id":34994411,"diff_hunk":"@@ -0,0 +1,65 @@\n+/* This Source Code Form is subject to the terms of the Mozilla Public\" + '/n' +\n+ \"* License, v. 2.0. If a copy of the MPL was not distributed with this\n+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n+\n+/* global casper */\n+'use strict';\n+\n+var config = require('../lib/config');\n+var helpers = require('../lib/helpers');\n+var path = '/contribute/stories/';\n+var url = config.base() + path;\n+\n+casper.test.begin('Contribute Stories, Elements: ' + url, 11, function suite(test) {\n+    casper.start(url, function() {\n+        test.assertHttpStatus(200);\n+\n+        test.assertVisible('#contribute-nav-menu .nav-cta', 'Get involved button is visible');\n+        test.assertVisible('.head-stats', 'Community stats visible');\n+\n+        test.assertVisible('.story-intro .photo', 'The Mozillian profile image is visible');\n+        test.assertVisible('.story-areas', 'Areas of activity content visible');\n+        test.assertVisible('.story-links', 'List of links to social and other external links visible');\n+\n+        test.assertElementCount('.stories-other .person', 3, 'List of three Mozillians visible');\n+        test.assertElementCount('.person a.url', 3, 'Each Mozillians read more link is visible');\n+\n+        test.assertVisible('.extra-event .event-link', 'There is one featured event');\n+        test.assertVisible('.extra-event .events-all', 'All events link visible');\n+        test.assertVisible('#newsletter-form', 'The newsletter form is visible.');\n+    });\n+\n+    casper.run(function() {\n+        test.done();\n+        helpers.done();\n+    });\n+});\n+\n+casper.test.begin('Contribute Stories, Individual Story Page: ' + url, 5, function suite(test) {\n+    casper.start(url, function() {\n+        this.click('.stories-other .person:first-child a.url');\n+    });\n+\n+    casper.waitForUrl(/contribute\\/stories\\/shreyas\\/$/, function() {","path":"tests/functional/contribute-stories.js","position":43,"original_position":43,"commit_id":"d1c4508daf50619ddfde8c31991ed8cfbccdb5de","original_commit_id":"d1c4508daf50619ddfde8c31991ed8cfbccdb5de","user":{"login":"schalkneethling","id":10350960,"avatar_url":"https://avatars.githubusercontent.com/u/10350960?v=3","gravatar_id":"","url":"https://api.github.com/users/schalkneethling","html_url":"https://github.com/schalkneethling","followers_url":"https://api.github.com/users/schalkneethling/followers","following_url":"https://api.github.com/users/schalkneethling/following{/other_user}","gists_url":"https://api.github.com/users/schalkneethling/gists{/gist_id}","starred_url":"https://api.github.com/users/schalkneethling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schalkneethling/subscriptions","organizations_url":"https://api.github.com/users/schalkneethling/orgs","repos_url":"https://api.github.com/users/schalkneethling/repos","events_url":"https://api.github.com/users/schalkneethling/events{/privacy}","received_events_url":"https://api.github.com/users/schalkneethling/received_events","type":"User","site_admin":false},"body":"Yeah I agree. When I realized that they are in fact exactly the same page, I was wondering whether I should not just load the individual member page and be done with it. This settles it then.","created_at":"2015-07-20T13:35:38Z","updated_at":"2015-07-20T13:35:38Z","html_url":"https://github.com/mozilla/bedrock/pull/3141#discussion_r34994411","pull_request_url":"https://api.github.com/repos/mozilla/bedrock/pulls/3141","_links":{"self":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/comments/34994411"},"html":{"href":"https://github.com/mozilla/bedrock/pull/3141#discussion_r34994411"},"pull_request":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/3141"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/bedrock/pulls/3141","id":40350227,"html_url":"https://github.com/mozilla/bedrock/pull/3141","diff_url":"https://github.com/mozilla/bedrock/pull/3141.diff","patch_url":"https://github.com/mozilla/bedrock/pull/3141.patch","issue_url":"https://api.github.com/repos/mozilla/bedrock/issues/3141","number":3141,"state":"open","locked":false,"title":"Casper tests contribute stories","user":{"login":"schalkneethling","id":10350960,"avatar_url":"https://avatars.githubusercontent.com/u/10350960?v=3","gravatar_id":"","url":"https://api.github.com/users/schalkneethling","html_url":"https://github.com/schalkneethling","followers_url":"https://api.github.com/users/schalkneethling/followers","following_url":"https://api.github.com/users/schalkneethling/following{/other_user}","gists_url":"https://api.github.com/users/schalkneethling/gists{/gist_id}","starred_url":"https://api.github.com/users/schalkneethling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schalkneethling/subscriptions","organizations_url":"https://api.github.com/users/schalkneethling/orgs","repos_url":"https://api.github.com/users/schalkneethling/repos","events_url":"https://api.github.com/users/schalkneethling/events{/privacy}","received_events_url":"https://api.github.com/users/schalkneethling/received_events","type":"User","site_admin":false},"body":"@alexgibson r? Here I combined the tests for https://www.mozilla.org/en-US/contribute/stories/ and individual community member pages such as /contribute/stories/shreyas/ into one test suite as they are essentially the same page.","created_at":"2015-07-20T13:14:08Z","updated_at":"2015-07-20T13:35:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b35e3c006ece530464bc627b315c668f35fc367","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/bedrock/pulls/3141/commits","review_comments_url":"https://api.github.com/repos/mozilla/bedrock/pulls/3141/comments","review_comment_url":"https://api.github.com/repos/mozilla/bedrock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/bedrock/issues/3141/comments","statuses_url":"https://api.github.com/repos/mozilla/bedrock/statuses/d1c4508daf50619ddfde8c31991ed8cfbccdb5de","head":{"label":"schalkneethling:casper-tests-contribute-stories","ref":"casper-tests-contribute-stories","sha":"d1c4508daf50619ddfde8c31991ed8cfbccdb5de","user":{"login":"schalkneethling","id":10350960,"avatar_url":"https://avatars.githubusercontent.com/u/10350960?v=3","gravatar_id":"","url":"https://api.github.com/users/schalkneethling","html_url":"https://github.com/schalkneethling","followers_url":"https://api.github.com/users/schalkneethling/followers","following_url":"https://api.github.com/users/schalkneethling/following{/other_user}","gists_url":"https://api.github.com/users/schalkneethling/gists{/gist_id}","starred_url":"https://api.github.com/users/schalkneethling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schalkneethling/subscriptions","organizations_url":"https://api.github.com/users/schalkneethling/orgs","repos_url":"https://api.github.com/users/schalkneethling/repos","events_url":"https://api.github.com/users/schalkneethling/events{/privacy}","received_events_url":"https://api.github.com/users/schalkneethling/received_events","type":"User","site_admin":false},"repo":{"id":4284689,"name":"bedrock","full_name":"schalkneethling/bedrock","owner":{"login":"schalkneethling","id":10350960,"avatar_url":"https://avatars.githubusercontent.com/u/10350960?v=3","gravatar_id":"","url":"https://api.github.com/users/schalkneethling","html_url":"https://github.com/schalkneethling","followers_url":"https://api.github.com/users/schalkneethling/followers","following_url":"https://api.github.com/users/schalkneethling/following{/other_user}","gists_url":"https://api.github.com/users/schalkneethling/gists{/gist_id}","starred_url":"https://api.github.com/users/schalkneethling/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schalkneethling/subscriptions","organizations_url":"https://api.github.com/users/schalkneethling/orgs","repos_url":"https://api.github.com/users/schalkneethling/repos","events_url":"https://api.github.com/users/schalkneethling/events{/privacy}","received_events_url":"https://api.github.com/users/schalkneethling/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/schalkneethling/bedrock","description":"Making mozilla.org awesome, one pebble at a time","fork":true,"url":"https://api.github.com/repos/schalkneethling/bedrock","forks_url":"https://api.github.com/repos/schalkneethling/bedrock/forks","keys_url":"https://api.github.com/repos/schalkneethling/bedrock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schalkneethling/bedrock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schalkneethling/bedrock/teams","hooks_url":"https://api.github.com/repos/schalkneethling/bedrock/hooks","issue_events_url":"https://api.github.com/repos/schalkneethling/bedrock/issues/events{/number}","events_url":"https://api.github.com/repos/schalkneethling/bedrock/events","assignees_url":"https://api.github.com/repos/schalkneethling/bedrock/assignees{/user}","branches_url":"https://api.github.com/repos/schalkneethling/bedrock/branches{/branch}","tags_url":"https://api.github.com/repos/schalkneethling/bedrock/tags","blobs_url":"https://api.github.com/repos/schalkneethling/bedrock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schalkneethling/bedrock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schalkneethling/bedrock/git/refs{/sha}","trees_url":"https://api.github.com/repos/schalkneethling/bedrock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schalkneethling/bedrock/statuses/{sha}","languages_url":"https://api.github.com/repos/schalkneethling/bedrock/languages","stargazers_url":"https://api.github.com/repos/schalkneethling/bedrock/stargazers","contributors_url":"https://api.github.com/repos/schalkneethling/bedrock/contributors","subscribers_url":"https://api.github.com/repos/schalkneethling/bedrock/subscribers","subscription_url":"https://api.github.com/repos/schalkneethling/bedrock/subscription","commits_url":"https://api.github.com/repos/schalkneethling/bedrock/commits{/sha}","git_commits_url":"https://api.github.com/repos/schalkneethling/bedrock/git/commits{/sha}","comments_url":"https://api.github.com/repos/schalkneethling/bedrock/comments{/number}","issue_comment_url":"https://api.github.com/repos/schalkneethling/bedrock/issues/comments{/number}","contents_url":"https://api.github.com/repos/schalkneethling/bedrock/contents/{+path}","compare_url":"https://api.github.com/repos/schalkneethling/bedrock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schalkneethling/bedrock/merges","archive_url":"https://api.github.com/repos/schalkneethling/bedrock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schalkneethling/bedrock/downloads","issues_url":"https://api.github.com/repos/schalkneethling/bedrock/issues{/number}","pulls_url":"https://api.github.com/repos/schalkneethling/bedrock/pulls{/number}","milestones_url":"https://api.github.com/repos/schalkneethling/bedrock/milestones{/number}","notifications_url":"https://api.github.com/repos/schalkneethling/bedrock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schalkneethling/bedrock/labels{/name}","releases_url":"https://api.github.com/repos/schalkneethling/bedrock/releases{/id}","created_at":"2012-05-10T13:21:55Z","updated_at":"2015-05-04T12:53:53Z","pushed_at":"2015-07-20T13:06:29Z","git_url":"git://github.com/schalkneethling/bedrock.git","ssh_url":"git@github.com:schalkneethling/bedrock.git","clone_url":"https://github.com/schalkneethling/bedrock.git","svn_url":"https://github.com/schalkneethling/bedrock","homepage":"http://mozilla.org","size":312916,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"mozilla:master","ref":"master","sha":"d6c6212fbd424733a46898bd4200f4734c010b63","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":1616665,"name":"bedrock","full_name":"mozilla/bedrock","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/bedrock","description":"Making mozilla.org awesome, one pebble at a time","fork":false,"url":"https://api.github.com/repos/mozilla/bedrock","forks_url":"https://api.github.com/repos/mozilla/bedrock/forks","keys_url":"https://api.github.com/repos/mozilla/bedrock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/bedrock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/bedrock/teams","hooks_url":"https://api.github.com/repos/mozilla/bedrock/hooks","issue_events_url":"https://api.github.com/repos/mozilla/bedrock/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/bedrock/events","assignees_url":"https://api.github.com/repos/mozilla/bedrock/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/bedrock/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/bedrock/tags","blobs_url":"https://api.github.com/repos/mozilla/bedrock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/bedrock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/bedrock/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/bedrock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/bedrock/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/bedrock/languages","stargazers_url":"https://api.github.com/repos/mozilla/bedrock/stargazers","contributors_url":"https://api.github.com/repos/mozilla/bedrock/contributors","subscribers_url":"https://api.github.com/repos/mozilla/bedrock/subscribers","subscription_url":"https://api.github.com/repos/mozilla/bedrock/subscription","commits_url":"https://api.github.com/repos/mozilla/bedrock/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/bedrock/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/bedrock/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/bedrock/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/bedrock/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/bedrock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/bedrock/merges","archive_url":"https://api.github.com/repos/mozilla/bedrock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/bedrock/downloads","issues_url":"https://api.github.com/repos/mozilla/bedrock/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/bedrock/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/bedrock/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/bedrock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/bedrock/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/bedrock/releases{/id}","created_at":"2011-04-14T22:57:57Z","updated_at":"2015-07-15T08:58:19Z","pushed_at":"2015-07-20T13:16:12Z","git_url":"git://github.com/mozilla/bedrock.git","ssh_url":"git@github.com:mozilla/bedrock.git","clone_url":"https://github.com/mozilla/bedrock.git","svn_url":"https://github.com/mozilla/bedrock","homepage":"https://www.mozilla.org","size":354613,"stargazers_count":245,"watchers_count":245,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":339,"mirror_url":null,"open_issues_count":19,"forks":339,"open_issues":19,"watchers":245,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/3141"},"html":{"href":"https://github.com/mozilla/bedrock/pull/3141"},"issue":{"href":"https://api.github.com/repos/mozilla/bedrock/issues/3141"},"comments":{"href":"https://api.github.com/repos/mozilla/bedrock/issues/3141/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/3141/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/3141/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/bedrock/statuses/d1c4508daf50619ddfde8c31991ed8cfbccdb5de"}}}}