{"action":"created","comment":{"url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/pulls/comments/26834386","id":26834386,"diff_hunk":"@@ -36,20 +36,85 @@ casper.test.begin 'Test the login procedure', 3, (test) ->\n   casper.then ->\n     test.done()\n \n-casper.test.begin \"Game interface\", 29, (test) ->\n+casper.test.begin \"Tests the 'Challenge a player process\", 6, (test) ->\n+  # Be sure not to use the 'create_game' shortcut.\n+  casper.start()\n+\n+  SHINDOU_EMAIL = 'shindou@ki-in.jp'\n+  TOUYA_EMAIL = 'touya@ki-in.jp'\n+  OCHI_EMAIL = 'ochino1@ki-in.jp'\n+\n+  clearGamesForPlayer p for p in [SHINDOU_EMAIL, TOUYA_EMAIL, OCHI_EMAIL]\n+\n+  # Shindou opens the front page and follows a link to create a new game\n+  createLoginSession SHINDOU_EMAIL\n+  casper.thenOpen serverUrl, ->\n+    test.assertExists '#your_turn_games'\n+    test.assertEqual (casper.evaluate -> $('#your_turn_games a').length),\n+                     0, 'games are cleared so no games listed'\n+\n+  casper.thenClick '#challenge_link', ->\n+    form_values = 'input[name=\"opponent_email\"]' : TOUYA_EMAIL\n+    # The final 'true' argument means that the form is submitted.\n+    this.fillSelectors 'form', form_values, true\n+\n+  # both players load the front page and see links to the same game\n+\n+  # Shindou\n+  casper.thenOpen serverUrl, ->\n+    test.assertEqual (casper.evaluate -> $('#not_your_turn_games a').length), 1\n+    shindous_game_link = casper.evaluate -> \n+                           $('#not_your_turn_games li:last a').getAttribute(\"href\")\n+    # this.echo shindous_game_link\n+    #shindous_game_link_text = shindous_game_link.text\n+    #shindous_game_link_target = shindous_game_link.get_attribute('href')","path":"app/coffee/tests/browser.coffee","position":36,"original_position":36,"commit_id":"bf30304eefaf493d5f441cf047c2ef84e0c614f2","original_commit_id":"bf30304eefaf493d5f441cf047c2ef84e0c614f2","user":{"login":"karlorg","id":3965887,"avatar_url":"https://avatars.githubusercontent.com/u/3965887?v=3","gravatar_id":"","url":"https://api.github.com/users/karlorg","html_url":"https://github.com/karlorg","followers_url":"https://api.github.com/users/karlorg/followers","following_url":"https://api.github.com/users/karlorg/following{/other_user}","gists_url":"https://api.github.com/users/karlorg/gists{/gist_id}","starred_url":"https://api.github.com/users/karlorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlorg/subscriptions","organizations_url":"https://api.github.com/users/karlorg/orgs","repos_url":"https://api.github.com/users/karlorg/repos","events_url":"https://api.github.com/users/karlorg/events{/privacy}","received_events_url":"https://api.github.com/users/karlorg/received_events","type":"User","site_admin":false},"body":"are you planning to do anything else with this commented-out code or will I have a look at it?","created_at":"2015-03-20T11:59:50Z","updated_at":"2015-03-20T11:59:50Z","html_url":"https://github.com/karlorg/drunken-octo-avenger/pull/15#discussion_r26834386","pull_request_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/karlorg/drunken-octo-avenger/pulls/comments/26834386"},"html":{"href":"https://github.com/karlorg/drunken-octo-avenger/pull/15#discussion_r26834386"},"pull_request":{"href":"https://api.github.com/repos/karlorg/drunken-octo-avenger/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/pulls/15","id":31606054,"html_url":"https://github.com/karlorg/drunken-octo-avenger/pull/15","diff_url":"https://github.com/karlorg/drunken-octo-avenger/pull/15.diff","patch_url":"https://github.com/karlorg/drunken-octo-avenger/pull/15.patch","issue_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/issues/15","number":15,"state":"closed","locked":false,"title":"Phantom js","user":{"login":"allanderek","id":791177,"avatar_url":"https://avatars.githubusercontent.com/u/791177?v=3","gravatar_id":"","url":"https://api.github.com/users/allanderek","html_url":"https://github.com/allanderek","followers_url":"https://api.github.com/users/allanderek/followers","following_url":"https://api.github.com/users/allanderek/following{/other_user}","gists_url":"https://api.github.com/users/allanderek/gists{/gist_id}","starred_url":"https://api.github.com/users/allanderek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanderek/subscriptions","organizations_url":"https://api.github.com/users/allanderek/orgs","repos_url":"https://api.github.com/users/allanderek/repos","events_url":"https://api.github.com/users/allanderek/events{/privacy}","received_events_url":"https://api.github.com/users/allanderek/received_events","type":"User","site_admin":false},"body":"Translated the test_start_games selenium test into the casperJS tests.","created_at":"2015-03-20T11:28:52Z","updated_at":"2015-03-20T11:59:50Z","closed_at":"2015-03-20T11:59:23Z","merged_at":"2015-03-20T11:59:23Z","merge_commit_sha":"619935cc1e47fcaeb9b54befad8779a6398b25ae","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/pulls/15/commits","review_comments_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/pulls/15/comments","review_comment_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/issues/15/comments","statuses_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/statuses/bf30304eefaf493d5f441cf047c2ef84e0c614f2","head":{"label":"allanderek:phantom-js","ref":"phantom-js","sha":"bf30304eefaf493d5f441cf047c2ef84e0c614f2","user":{"login":"allanderek","id":791177,"avatar_url":"https://avatars.githubusercontent.com/u/791177?v=3","gravatar_id":"","url":"https://api.github.com/users/allanderek","html_url":"https://github.com/allanderek","followers_url":"https://api.github.com/users/allanderek/followers","following_url":"https://api.github.com/users/allanderek/following{/other_user}","gists_url":"https://api.github.com/users/allanderek/gists{/gist_id}","starred_url":"https://api.github.com/users/allanderek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanderek/subscriptions","organizations_url":"https://api.github.com/users/allanderek/orgs","repos_url":"https://api.github.com/users/allanderek/repos","events_url":"https://api.github.com/users/allanderek/events{/privacy}","received_events_url":"https://api.github.com/users/allanderek/received_events","type":"User","site_admin":false},"repo":{"id":30547416,"name":"drunken-octo-avenger","full_name":"allanderek/drunken-octo-avenger","owner":{"login":"allanderek","id":791177,"avatar_url":"https://avatars.githubusercontent.com/u/791177?v=3","gravatar_id":"","url":"https://api.github.com/users/allanderek","html_url":"https://github.com/allanderek","followers_url":"https://api.github.com/users/allanderek/followers","following_url":"https://api.github.com/users/allanderek/following{/other_user}","gists_url":"https://api.github.com/users/allanderek/gists{/gist_id}","starred_url":"https://api.github.com/users/allanderek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allanderek/subscriptions","organizations_url":"https://api.github.com/users/allanderek/orgs","repos_url":"https://api.github.com/users/allanderek/repos","events_url":"https://api.github.com/users/allanderek/events{/privacy}","received_events_url":"https://api.github.com/users/allanderek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/allanderek/drunken-octo-avenger","description":"Python/Flask version of Go website prototype, for comparison","fork":true,"url":"https://api.github.com/repos/allanderek/drunken-octo-avenger","forks_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/forks","keys_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/teams","hooks_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/hooks","issue_events_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/issues/events{/number}","events_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/events","assignees_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/assignees{/user}","branches_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/branches{/branch}","tags_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/tags","blobs_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/git/refs{/sha}","trees_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/statuses/{sha}","languages_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/languages","stargazers_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/stargazers","contributors_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/contributors","subscribers_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/subscribers","subscription_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/subscription","commits_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/commits{/sha}","git_commits_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/git/commits{/sha}","comments_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/comments{/number}","issue_comment_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/issues/comments{/number}","contents_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/contents/{+path}","compare_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/merges","archive_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/downloads","issues_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/issues{/number}","pulls_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/pulls{/number}","milestones_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/milestones{/number}","notifications_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/labels{/name}","releases_url":"https://api.github.com/repos/allanderek/drunken-octo-avenger/releases{/id}","created_at":"2015-02-09T17:07:43Z","updated_at":"2015-03-19T11:13:06Z","pushed_at":"2015-03-20T11:27:46Z","git_url":"git://github.com/allanderek/drunken-octo-avenger.git","ssh_url":"git@github.com:allanderek/drunken-octo-avenger.git","clone_url":"https://github.com/allanderek/drunken-octo-avenger.git","svn_url":"https://github.com/allanderek/drunken-octo-avenger","homepage":null,"size":585,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"karlorg:phantom-js","ref":"phantom-js","sha":"ba4945ff2a62e8495da678dbc6c11ae37ec84c70","user":{"login":"karlorg","id":3965887,"avatar_url":"https://avatars.githubusercontent.com/u/3965887?v=3","gravatar_id":"","url":"https://api.github.com/users/karlorg","html_url":"https://github.com/karlorg","followers_url":"https://api.github.com/users/karlorg/followers","following_url":"https://api.github.com/users/karlorg/following{/other_user}","gists_url":"https://api.github.com/users/karlorg/gists{/gist_id}","starred_url":"https://api.github.com/users/karlorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlorg/subscriptions","organizations_url":"https://api.github.com/users/karlorg/orgs","repos_url":"https://api.github.com/users/karlorg/repos","events_url":"https://api.github.com/users/karlorg/events{/privacy}","received_events_url":"https://api.github.com/users/karlorg/received_events","type":"User","site_admin":false},"repo":{"id":27976925,"name":"drunken-octo-avenger","full_name":"karlorg/drunken-octo-avenger","owner":{"login":"karlorg","id":3965887,"avatar_url":"https://avatars.githubusercontent.com/u/3965887?v=3","gravatar_id":"","url":"https://api.github.com/users/karlorg","html_url":"https://github.com/karlorg","followers_url":"https://api.github.com/users/karlorg/followers","following_url":"https://api.github.com/users/karlorg/following{/other_user}","gists_url":"https://api.github.com/users/karlorg/gists{/gist_id}","starred_url":"https://api.github.com/users/karlorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlorg/subscriptions","organizations_url":"https://api.github.com/users/karlorg/orgs","repos_url":"https://api.github.com/users/karlorg/repos","events_url":"https://api.github.com/users/karlorg/events{/privacy}","received_events_url":"https://api.github.com/users/karlorg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/karlorg/drunken-octo-avenger","description":"Python/Flask version of Go website prototype, for comparison","fork":false,"url":"https://api.github.com/repos/karlorg/drunken-octo-avenger","forks_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/forks","keys_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/teams","hooks_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/hooks","issue_events_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/issues/events{/number}","events_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/events","assignees_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/assignees{/user}","branches_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/branches{/branch}","tags_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/tags","blobs_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/git/refs{/sha}","trees_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/statuses/{sha}","languages_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/languages","stargazers_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/stargazers","contributors_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/contributors","subscribers_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/subscribers","subscription_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/subscription","commits_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/commits{/sha}","git_commits_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/git/commits{/sha}","comments_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/comments{/number}","issue_comment_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/issues/comments{/number}","contents_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/contents/{+path}","compare_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/merges","archive_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/downloads","issues_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/issues{/number}","pulls_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/pulls{/number}","milestones_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/milestones{/number}","notifications_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/labels{/name}","releases_url":"https://api.github.com/repos/karlorg/drunken-octo-avenger/releases{/id}","created_at":"2014-12-13T23:17:48Z","updated_at":"2015-03-18T23:46:11Z","pushed_at":"2015-03-20T11:59:24Z","git_url":"git://github.com/karlorg/drunken-octo-avenger.git","ssh_url":"git@github.com:karlorg/drunken-octo-avenger.git","clone_url":"https://github.com/karlorg/drunken-octo-avenger.git","svn_url":"https://github.com/karlorg/drunken-octo-avenger","homepage":null,"size":987,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/karlorg/drunken-octo-avenger/pulls/15"},"html":{"href":"https://github.com/karlorg/drunken-octo-avenger/pull/15"},"issue":{"href":"https://api.github.com/repos/karlorg/drunken-octo-avenger/issues/15"},"comments":{"href":"https://api.github.com/repos/karlorg/drunken-octo-avenger/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/karlorg/drunken-octo-avenger/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/karlorg/drunken-octo-avenger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/karlorg/drunken-octo-avenger/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/karlorg/drunken-octo-avenger/statuses/bf30304eefaf493d5f441cf047c2ef84e0c614f2"}}}}