{"action":"created","comment":{"url":"https://api.github.com/repos/mozilla/bedrock/pulls/comments/35087172","id":35087172,"diff_hunk":"@@ -0,0 +1,154 @@\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/signup/';\n+var url = config.base() + path;\n+\n+casper.test.begin('Contribute Signup, Elements: ' + url, 15, function suite(test) {\n+    casper.start(url, function() {\n+        test.assertHttpStatus(200);\n+\n+        test.assertVisible('#inquiry-form', 'Th inquiry form is visible');\n+        test.assertVisible('.option-list', 'The categories option list is visible');\n+        test.assertElementCount('.option-list li', 8, 'There are eight category items');\n+\n+        test.assertNotVisible('.areas', 'The areas form fields are initially hidden');\n+\n+        test.assertElementCount('.personal input[type=\"text\"]', 1, 'Name input field exists');\n+        test.assertElementCount('.personal input[type=\"email\"]', 1, 'Email input field exists');\n+        test.assertElementCount('.personal select', 1, 'Country select field exist');\n+        test.assertElementCount('.personal textarea', 1, 'Message field exist');\n+        test.assertElementCount('.form-format input[type=\"radio\"]', 2, 'Email format radio buttons exist');\n+        test.assertElementCount('.form-agree input[type=\"checkbox\"]', 1, 'Accept privacy policy checkbox exists');\n+        test.assertElementCount('.submit button', 1, 'Start Contributing buttons exists');\n+        test.assertElementCount('.form-newsletter input[type=\"checkbox\"]', 1, 'Newsletter subscribe checkbox exists');\n+\n+        test.assertVisible('.next-steps', 'The next steps section is visible');\n+        test.assertElementCount('.steps li', 3, 'There are three steps listed');\n+    });\n+\n+    casper.run(function() {\n+        test.done();\n+        helpers.done();\n+    });\n+});\n+\n+casper.test.begin('Contribute Signup, Areas of interest interaction: ' + url, 8, function suite(test) {\n+    casper.start(url, function() {\n+        casper.click('.option-list li:first-child label');\n+    });\n+\n+    casper.waitUntilVisible('.areas', function() {\n+        test.assert(true, 'The areas of interest section is visible');\n+    });\n+\n+    casper.waitUntilVisible('#area-coding', function() {\n+        test.assert(true, 'The appropriate area of interest select field is visible');\n+        test.assertElementCount('#area-coding select', 1, 'The select field exists');\n+\n+        casper.click('.option-list li:nth-child(3) label');\n+    })\n+\n+    casper.waitUntilVisible('#area-writing', function() {\n+        test.assert(true, 'The writing area of interest section is visible');\n+        test.assertElementCount('#area-writing select', 1, 'The select field exists');\n+        test.assertNotVisible('#area-coding', 'The coding area of interest section has been hidden');\n+\n+        casper.click('.option-list li:nth-child(5) label');\n+    });\n+\n+    casper.waitWhileVisible('#area-writing', function() {\n+        test.assert(true, 'The writing area of interest is hidden');\n+        test.assertNotVisible('.areas', 'Areas of interest select fields hidden');\n+    });\n+\n+    casper.run(function() {\n+        test.done();\n+        helpers.done();\n+    });\n+});\n+\n+casper.test.begin('Contribute Signup, Tooltip: ' + url, 2, function suite(test) {\n+    casper.start(url, function() {\n+        this.mouse.move('a.info');\n+    });\n+\n+    casper.waitUntilVisible('.tooltip', function() {\n+        test.assert(true, 'The tooltip is shown');\n+        // move the mouse of the info icon","path":"tests/functional/contribute-signup.js","position":84,"original_position":84,"commit_id":"156fef7a00b95f302a64445cdf0fb236c5453e1d","original_commit_id":"156fef7a00b95f302a64445cdf0fb236c5453e1d","user":{"login":"alexgibson","id":400117,"avatar_url":"https://avatars.githubusercontent.com/u/400117?v=3","gravatar_id":"","url":"https://api.github.com/users/alexgibson","html_url":"https://github.com/alexgibson","followers_url":"https://api.github.com/users/alexgibson/followers","following_url":"https://api.github.com/users/alexgibson/following{/other_user}","gists_url":"https://api.github.com/users/alexgibson/gists{/gist_id}","starred_url":"https://api.github.com/users/alexgibson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexgibson/subscriptions","organizations_url":"https://api.github.com/users/alexgibson/orgs","repos_url":"https://api.github.com/users/alexgibson/repos","events_url":"https://api.github.com/users/alexgibson/events{/privacy}","received_events_url":"https://api.github.com/users/alexgibson/received_events","type":"User","site_admin":false},"body":"Typo `off`","created_at":"2015-07-21T10:00:34Z","updated_at":"2015-07-21T10:00:34Z","html_url":"https://github.com/mozilla/bedrock/pull/3142#discussion_r35087172","pull_request_url":"https://api.github.com/repos/mozilla/bedrock/pulls/3142","_links":{"self":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/comments/35087172"},"html":{"href":"https://github.com/mozilla/bedrock/pull/3142#discussion_r35087172"},"pull_request":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/3142"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla/bedrock/pulls/3142","id":40350402,"html_url":"https://github.com/mozilla/bedrock/pull/3142","diff_url":"https://github.com/mozilla/bedrock/pull/3142.diff","patch_url":"https://github.com/mozilla/bedrock/pull/3142.patch","issue_url":"https://api.github.com/repos/mozilla/bedrock/issues/3142","number":3142,"state":"open","locked":false,"title":"Adds functional tests for the community signup page","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? Whilst writing these tests, I discovered and logged 4 bugs, yeah tests!","created_at":"2015-07-20T13:16:12Z","updated_at":"2015-07-21T10:00:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"328e146a37b100dd0049921ddb869d2cf5760a16","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/bedrock/pulls/3142/commits","review_comments_url":"https://api.github.com/repos/mozilla/bedrock/pulls/3142/comments","review_comment_url":"https://api.github.com/repos/mozilla/bedrock/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/bedrock/issues/3142/comments","statuses_url":"https://api.github.com/repos/mozilla/bedrock/statuses/156fef7a00b95f302a64445cdf0fb236c5453e1d","head":{"label":"schalkneethling:casper-tests-contribute-signup","ref":"casper-tests-contribute-signup","sha":"156fef7a00b95f302a64445cdf0fb236c5453e1d","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-21T09:59:06Z","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":"8b0a201ee953aee855916846da1af98e25c10c0c","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-20T14:19:15Z","pushed_at":"2015-07-21T09:59:07Z","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":244,"watchers_count":244,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":339,"mirror_url":null,"open_issues_count":12,"forks":339,"open_issues":12,"watchers":244,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/3142"},"html":{"href":"https://github.com/mozilla/bedrock/pull/3142"},"issue":{"href":"https://api.github.com/repos/mozilla/bedrock/issues/3142"},"comments":{"href":"https://api.github.com/repos/mozilla/bedrock/issues/3142/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/3142/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/bedrock/pulls/3142/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/bedrock/statuses/156fef7a00b95f302a64445cdf0fb236c5453e1d"}}}}