GitHub PullRequestReviewCommentEvent at 2014-10-07 12:51:40
Repository: gaia
Actor: chirarobert
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/18516619","id":18516619,"diff_hunk":"@@ -0,0 +1,85 @@\n+# This Source Code Form is subject to the terms of the Mozilla Public\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+from marionette import SkipTest\n+\n+from gaiatest import GaiaTestCase\n+from gaiatest.apps.email.app import Email\n+from gaiatest.mocks.mock_email import MockEmail\n+from gaiatest.utils.email.email_util import EmailUtil\n+from gaiatest.apps.system.app import System\n+\n+\n+class TestEmailNotofiactiion(GaiaTestCase):\n+\n+    def setUp(self):\n+        try:\n+            self.testvars['email']['IMAP']\n+        except KeyError:\n+            raise SkipTest('account details not present in test variables')\n+\n+        GaiaTestCase.setUp(self)\n+        self.connect_to_network()\n+\n+        # Open email app\n+        self.email = Email(self.marionette)\n+        self.email.launch()\n+\n+    def test_email_notification(self):\n+\n+        # setup email account\n+        self.email.setup_IMAP_email(self.testvars['email']['IMAP'])\n+\n+        # check account has emails\n+        self.email.wait_for_emails_to_sync()\n+        self.assertGreater(len(self.email.mails), 0)\n+\n+        # Touch home button to exit email app\n+        self.device.touch_home_button()\n+\n+        # send email to IMAP account\n+        mock_email = MockEmail(senders_email=self.testvars['email']['IMAP']['email'],\n+                               recipients_email=self.testvars['email']['IMAP']['email'])\n+        EmailUtil().send(self.testvars['email']['IMAP'], mock_email)\n+\n+        self.marionette.switch_to_frame()\n+        system = System(self.marionette)\n+\n+        # Wait for email notification\n+        system.wait_for_notification_toaster_displayed(timeout = 60)\n+        system.wait_for_notification_toaster_not_displayed()\n+\n+        # Expand the notification bar\n+        system.wait_for_status_bar_displayed()\n+        utility_tray = system.open_utility_tray()\n+        utility_tray.wait_for_notification_container_displayed()\n+\n+        # Assert there is one notification is listed in notifications-container","path":"tests/python/gaia-ui-tests/gaiatest/tests/functional/email/test_email_notification.py","position":58,"original_position":58,"commit_id":"c812abcd2c5807140b0decee5dc201dd29de02d5","original_commit_id":"c812abcd2c5807140b0decee5dc201dd29de02d5","user":{"login":"chirarobert","id":6347849,"avatar_url":"https://avatars.githubusercontent.com/u/6347849?v=2","gravatar_id":"","url":"https://api.github.com/users/chirarobert","html_url":"https://github.com/chirarobert","followers_url":"https://api.github.com/users/chirarobert/followers","following_url":"https://api.github.com/users/chirarobert/following{/other_user}","gists_url":"https://api.github.com/users/chirarobert/gists{/gist_id}","starred_url":"https://api.github.com/users/chirarobert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chirarobert/subscriptions","organizations_url":"https://api.github.com/users/chirarobert/orgs","repos_url":"https://api.github.com/users/chirarobert/repos","events_url":"https://api.github.com/users/chirarobert/events{/privacy}","received_events_url":"https://api.github.com/users/chirarobert/received_events","type":"User","site_admin":false},"body":"You should rephrase this comment.","created_at":"2014-10-07T12:51:40Z","updated_at":"2014-10-07T12:51:40Z","html_url":"https://github.com/mozilla-b2g/gaia/pull/24884#discussion_r18516619","pull_request_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/24884","_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/18516619"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/24884#discussion_r18516619"},"pull_request":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/24884"}}},"pull_request":{"url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/24884","id":22349166,"html_url":"https://github.com/mozilla-b2g/gaia/pull/24884","diff_url":"https://github.com/mozilla-b2g/gaia/pull/24884.diff","patch_url":"https://github.com/mozilla-b2g/gaia/pull/24884.patch","issue_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/24884","number":24884,"state":"open","locked":false,"title":"Bug 1075510 - Add test to verify the Notification for E-mail is displaye...","user":{"login":"bebef1987","id":703611,"avatar_url":"https://avatars.githubusercontent.com/u/703611?v=2","gravatar_id":"","url":"https://api.github.com/users/bebef1987","html_url":"https://github.com/bebef1987","followers_url":"https://api.github.com/users/bebef1987/followers","following_url":"https://api.github.com/users/bebef1987/following{/other_user}","gists_url":"https://api.github.com/users/bebef1987/gists{/gist_id}","starred_url":"https://api.github.com/users/bebef1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bebef1987/subscriptions","organizations_url":"https://api.github.com/users/bebef1987/orgs","repos_url":"https://api.github.com/users/bebef1987/repos","events_url":"https://api.github.com/users/bebef1987/events{/privacy}","received_events_url":"https://api.github.com/users/bebef1987/received_events","type":"User","site_admin":false},"body":"...d","created_at":"2014-10-07T12:37:31Z","updated_at":"2014-10-07T12:51:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2812b3108fafe5569b4edda43c2c83c4f5eb6d00","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/24884/commits","review_comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/24884/comments","review_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/24884/comments","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/c812abcd2c5807140b0decee5dc201dd29de02d5","head":{"label":"bebef1987:email_notification","ref":"email_notification","sha":"c812abcd2c5807140b0decee5dc201dd29de02d5","user":{"login":"bebef1987","id":703611,"avatar_url":"https://avatars.githubusercontent.com/u/703611?v=2","gravatar_id":"","url":"https://api.github.com/users/bebef1987","html_url":"https://github.com/bebef1987","followers_url":"https://api.github.com/users/bebef1987/followers","following_url":"https://api.github.com/users/bebef1987/following{/other_user}","gists_url":"https://api.github.com/users/bebef1987/gists{/gist_id}","starred_url":"https://api.github.com/users/bebef1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bebef1987/subscriptions","organizations_url":"https://api.github.com/users/bebef1987/orgs","repos_url":"https://api.github.com/users/bebef1987/repos","events_url":"https://api.github.com/users/bebef1987/events{/privacy}","received_events_url":"https://api.github.com/users/bebef1987/received_events","type":"User","site_admin":false},"repo":{"id":12868630,"name":"gaia","full_name":"bebef1987/gaia","owner":{"login":"bebef1987","id":703611,"avatar_url":"https://avatars.githubusercontent.com/u/703611?v=2","gravatar_id":"","url":"https://api.github.com/users/bebef1987","html_url":"https://github.com/bebef1987","followers_url":"https://api.github.com/users/bebef1987/followers","following_url":"https://api.github.com/users/bebef1987/following{/other_user}","gists_url":"https://api.github.com/users/bebef1987/gists{/gist_id}","starred_url":"https://api.github.com/users/bebef1987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bebef1987/subscriptions","organizations_url":"https://api.github.com/users/bebef1987/orgs","repos_url":"https://api.github.com/users/bebef1987/repos","events_url":"https://api.github.com/users/bebef1987/events{/privacy}","received_events_url":"https://api.github.com/users/bebef1987/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bebef1987/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see https://wiki.mozilla.org/Release_Management/B2G_Landing","fork":true,"url":"https://api.github.com/repos/bebef1987/gaia","forks_url":"https://api.github.com/repos/bebef1987/gaia/forks","keys_url":"https://api.github.com/repos/bebef1987/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bebef1987/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bebef1987/gaia/teams","hooks_url":"https://api.github.com/repos/bebef1987/gaia/hooks","issue_events_url":"https://api.github.com/repos/bebef1987/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/bebef1987/gaia/events","assignees_url":"https://api.github.com/repos/bebef1987/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/bebef1987/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/bebef1987/gaia/tags","blobs_url":"https://api.github.com/repos/bebef1987/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bebef1987/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bebef1987/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/bebef1987/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bebef1987/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/bebef1987/gaia/languages","stargazers_url":"https://api.github.com/repos/bebef1987/gaia/stargazers","contributors_url":"https://api.github.com/repos/bebef1987/gaia/contributors","subscribers_url":"https://api.github.com/repos/bebef1987/gaia/subscribers","subscription_url":"https://api.github.com/repos/bebef1987/gaia/subscription","commits_url":"https://api.github.com/repos/bebef1987/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/bebef1987/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/bebef1987/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/bebef1987/gaia/issues/comments/{number}","contents_url":"https://api.github.com/repos/bebef1987/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/bebef1987/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bebef1987/gaia/merges","archive_url":"https://api.github.com/repos/bebef1987/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bebef1987/gaia/downloads","issues_url":"https://api.github.com/repos/bebef1987/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/bebef1987/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/bebef1987/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/bebef1987/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bebef1987/gaia/labels{/name}","releases_url":"https://api.github.com/repos/bebef1987/gaia/releases{/id}","created_at":"2013-09-16T13:56:08Z","updated_at":"2014-06-25T09:04:49Z","pushed_at":"2014-10-07T12:37:30Z","git_url":"git://github.com/bebef1987/gaia.git","ssh_url":"git@github.com:bebef1987/gaia.git","clone_url":"https://github.com/bebef1987/gaia.git","svn_url":"https://github.com/bebef1987/gaia","homepage":"https://wiki.mozilla.org/B2G","size":834095,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":0,"default_branch":"master"}},"base":{"label":"mozilla-b2g:master","ref":"master","sha":"7d54bbbea42343fc30649fd275c08ae247eec1b3","user":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=2","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"repo":{"id":2317369,"name":"gaia","full_name":"mozilla-b2g/gaia","owner":{"login":"mozilla-b2g","id":1261292,"avatar_url":"https://avatars.githubusercontent.com/u/1261292?v=2","gravatar_id":"","url":"https://api.github.com/users/mozilla-b2g","html_url":"https://github.com/mozilla-b2g","followers_url":"https://api.github.com/users/mozilla-b2g/followers","following_url":"https://api.github.com/users/mozilla-b2g/following{/other_user}","gists_url":"https://api.github.com/users/mozilla-b2g/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla-b2g/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla-b2g/subscriptions","organizations_url":"https://api.github.com/users/mozilla-b2g/orgs","repos_url":"https://api.github.com/users/mozilla-b2g/repos","events_url":"https://api.github.com/users/mozilla-b2g/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla-b2g/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla-b2g/gaia","description":"Gaia is a HTML5-based Phone UI for the Boot 2 Gecko Project. NOTE: For details of what branches are used for what releases, see","fork":false,"url":"https://api.github.com/repos/mozilla-b2g/gaia","forks_url":"https://api.github.com/repos/mozilla-b2g/gaia/forks","keys_url":"https://api.github.com/repos/mozilla-b2g/gaia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla-b2g/gaia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla-b2g/gaia/teams","hooks_url":"https://api.github.com/repos/mozilla-b2g/gaia/hooks","issue_events_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla-b2g/gaia/events","assignees_url":"https://api.github.com/repos/mozilla-b2g/gaia/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla-b2g/gaia/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/tags","blobs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla-b2g/gaia/languages","stargazers_url":"https://api.github.com/repos/mozilla-b2g/gaia/stargazers","contributors_url":"https://api.github.com/repos/mozilla-b2g/gaia/contributors","subscribers_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscribers","subscription_url":"https://api.github.com/repos/mozilla-b2g/gaia/subscription","commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla-b2g/gaia/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla-b2g/gaia/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues/comments/{number}","contents_url":"https://api.github.com/repos/mozilla-b2g/gaia/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla-b2g/gaia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla-b2g/gaia/merges","archive_url":"https://api.github.com/repos/mozilla-b2g/gaia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla-b2g/gaia/downloads","issues_url":"https://api.github.com/repos/mozilla-b2g/gaia/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla-b2g/gaia/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla-b2g/gaia/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla-b2g/gaia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla-b2g/gaia/labels{/name}","releases_url":"https://api.github.com/repos/mozilla-b2g/gaia/releases{/id}","created_at":"2011-09-03T01:38:46Z","updated_at":"2014-10-07T06:33:28Z","pushed_at":"2014-10-07T10:43:06Z","git_url":"git://github.com/mozilla-b2g/gaia.git","ssh_url":"git@github.com:mozilla-b2g/gaia.git","clone_url":"https://github.com/mozilla-b2g/gaia.git","svn_url":"https://github.com/mozilla-b2g/gaia","homepage":"https://wiki.mozilla.org/B2G","size":1478808,"stargazers_count":1764,"watchers_count":1764,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1967,"mirror_url":null,"open_issues_count":431,"forks":1967,"open_issues":431,"watchers":1764,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/24884"},"html":{"href":"https://github.com/mozilla-b2g/gaia/pull/24884"},"issue":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/24884"},"comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/issues/24884/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/24884/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/pulls/24884/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla-b2g/gaia/statuses/c812abcd2c5807140b0decee5dc201dd29de02d5"}}}}