{"action":"created","comment":{"url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/comments/228700251","pull_request_review_id":169042341,"id":228700251,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODcwMDI1MQ==","diff_hunk":"@@ -0,0 +1,116 @@\n+const PageAvatarMenu = require('./../../src/components/AvatarMenu/pageObject');\n+const {\n+    ESCAPE_KEY,\n+    SPACE_KEY,\n+    ENTER_KEY,\n+    ARROW_DOWN_KEY,\n+    ARROW_UP_KEY,\n+    TAB_KEY,\n+} = require('./../constants');\n+\n+const AVATAR_MENU = '#avatar-menu';\n+const REACT_LOGO = 'img[alt=\"rainbow logo\"]';\n+\n+describe('AvatarMenu base example', () => {\n+    beforeEach(() => {\n+        browser.url('/#!/AvatarMenu/1');\n+        browser.refresh();\n+    });\n+    it('should open the menu when click on the AvatarMenu', () => {\n+        const avatarMenu = new PageAvatarMenu(AVATAR_MENU);\n+        avatarMenu.click();\n+        expect(avatarMenu.isOpen()).toBe(true);\n+    });\n+    it('should close the menu when the menu is opened and click outside of the menu', () => {\n+        const avatarMenu = new PageAvatarMenu(AVATAR_MENU);\n+        avatarMenu.click();\n+        browser.click(REACT_LOGO);\n+        expect(avatarMenu.isOpen()).toBe(false);\n+    });\n+    it('should close the menu when the menu is opened and press ESC', () => {\n+        const avatarMenu = new PageAvatarMenu(AVATAR_MENU);\n+        avatarMenu.click();\n+        browser.keys(ESCAPE_KEY);\n+        expect(avatarMenu.isOpen()).toBe(false);\n+    });\n+    it('should close the menu when the menu is opened and click an element', () => {\n+        const avatarMenu = new PageAvatarMenu(AVATAR_MENU);\n+        const menuItem = avatarMenu.getItem(1);\n+        avatarMenu.click();\n+        menuItem.click();\n+        expect(avatarMenu.isOpen()).toBe(false);\n+    });\n+    it('should put the menu button focused when the menu is opened and press ESC', () => {\n+        const avatarMenu = new PageAvatarMenu(AVATAR_MENU);\n+        avatarMenu.click();\n+        browser.keys(ESCAPE_KEY);\n+        expect(avatarMenu.hasFocusButton()).toBe(true);\n+    });\n+    it('should open the menu when the button is focused and press Space', () => {\n+        const avatarMenu = new PageAvatarMenu(AVATAR_MENU);\n+        avatarMenu.click();\n+        browser.keys(ESCAPE_KEY);\n+        browser.keys(SPACE_KEY);\n+        expect(avatarMenu.isOpen()).toBe(true);\n+    });\n+    it('should open the menu when the button is focused and press Enter', () => {","path":"integration/specs/avatarMenu-1.spec.js","position":56,"original_position":56,"commit_id":"db8861bb14b601208a432a230f1c3e1d2c50faf7","original_commit_id":"db8861bb14b601208a432a230f1c3e1d2c50faf7","user":{"login":"LeandroTorresSicilia","id":24737097,"node_id":"MDQ6VXNlcjI0NzM3MDk3","avatar_url":"https://avatars0.githubusercontent.com/u/24737097?v=4","gravatar_id":"","url":"https://api.github.com/users/LeandroTorresSicilia","html_url":"https://github.com/LeandroTorresSicilia","followers_url":"https://api.github.com/users/LeandroTorresSicilia/followers","following_url":"https://api.github.com/users/LeandroTorresSicilia/following{/other_user}","gists_url":"https://api.github.com/users/LeandroTorresSicilia/gists{/gist_id}","starred_url":"https://api.github.com/users/LeandroTorresSicilia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeandroTorresSicilia/subscriptions","organizations_url":"https://api.github.com/users/LeandroTorresSicilia/orgs","repos_url":"https://api.github.com/users/LeandroTorresSicilia/repos","events_url":"https://api.github.com/users/LeandroTorresSicilia/events{/privacy}","received_events_url":"https://api.github.com/users/LeandroTorresSicilia/received_events","type":"User","site_admin":false},"body":"remove this","created_at":"2018-10-27T03:49:10Z","updated_at":"2018-10-27T03:49:10Z","html_url":"https://github.com/90milesbridge/react-rainbow/pull/352#discussion_r228700251","pull_request_url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/352","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/comments/228700251"},"html":{"href":"https://github.com/90milesbridge/react-rainbow/pull/352#discussion_r228700251"},"pull_request":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/352"}}},"pull_request":{"url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/352","id":226266281,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MjY2Mjgx","html_url":"https://github.com/90milesbridge/react-rainbow/pull/352","diff_url":"https://github.com/90milesbridge/react-rainbow/pull/352.diff","patch_url":"https://github.com/90milesbridge/react-rainbow/pull/352.patch","issue_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/352","number":352,"state":"open","locked":false,"title":"test: add integration test in avatarMenu component","user":{"login":"cmcartaya","id":33812799,"node_id":"MDQ6VXNlcjMzODEyNzk5","avatar_url":"https://avatars0.githubusercontent.com/u/33812799?v=4","gravatar_id":"","url":"https://api.github.com/users/cmcartaya","html_url":"https://github.com/cmcartaya","followers_url":"https://api.github.com/users/cmcartaya/followers","following_url":"https://api.github.com/users/cmcartaya/following{/other_user}","gists_url":"https://api.github.com/users/cmcartaya/gists{/gist_id}","starred_url":"https://api.github.com/users/cmcartaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmcartaya/subscriptions","organizations_url":"https://api.github.com/users/cmcartaya/orgs","repos_url":"https://api.github.com/users/cmcartaya/repos","events_url":"https://api.github.com/users/cmcartaya/events{/privacy}","received_events_url":"https://api.github.com/users/cmcartaya/received_events","type":"User","site_admin":false},"body":"fix: #332 #334 ","created_at":"2018-10-27T03:32:03Z","updated_at":"2018-10-27T03:49:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f20cab88ef94abef955b26b86522ead289cadecd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/352/commits","review_comments_url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/352/comments","review_comment_url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/352/comments","statuses_url":"https://api.github.com/repos/90milesbridge/react-rainbow/statuses/db8861bb14b601208a432a230f1c3e1d2c50faf7","head":{"label":"90milesbridge:avatarMenu-int-test","ref":"avatarMenu-int-test","sha":"db8861bb14b601208a432a230f1c3e1d2c50faf7","user":{"login":"90milesbridge","id":18670678,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NjcwNjc4","avatar_url":"https://avatars3.githubusercontent.com/u/18670678?v=4","gravatar_id":"","url":"https://api.github.com/users/90milesbridge","html_url":"https://github.com/90milesbridge","followers_url":"https://api.github.com/users/90milesbridge/followers","following_url":"https://api.github.com/users/90milesbridge/following{/other_user}","gists_url":"https://api.github.com/users/90milesbridge/gists{/gist_id}","starred_url":"https://api.github.com/users/90milesbridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/90milesbridge/subscriptions","organizations_url":"https://api.github.com/users/90milesbridge/orgs","repos_url":"https://api.github.com/users/90milesbridge/repos","events_url":"https://api.github.com/users/90milesbridge/events{/privacy}","received_events_url":"https://api.github.com/users/90milesbridge/received_events","type":"Organization","site_admin":false},"repo":{"id":146396702,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzOTY3MDI=","name":"react-rainbow","full_name":"90milesbridge/react-rainbow","private":false,"owner":{"login":"90milesbridge","id":18670678,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NjcwNjc4","avatar_url":"https://avatars3.githubusercontent.com/u/18670678?v=4","gravatar_id":"","url":"https://api.github.com/users/90milesbridge","html_url":"https://github.com/90milesbridge","followers_url":"https://api.github.com/users/90milesbridge/followers","following_url":"https://api.github.com/users/90milesbridge/following{/other_user}","gists_url":"https://api.github.com/users/90milesbridge/gists{/gist_id}","starred_url":"https://api.github.com/users/90milesbridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/90milesbridge/subscriptions","organizations_url":"https://api.github.com/users/90milesbridge/orgs","repos_url":"https://api.github.com/users/90milesbridge/repos","events_url":"https://api.github.com/users/90milesbridge/events{/privacy}","received_events_url":"https://api.github.com/users/90milesbridge/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/90milesbridge/react-rainbow","description":"React Rainbow components","fork":false,"url":"https://api.github.com/repos/90milesbridge/react-rainbow","forks_url":"https://api.github.com/repos/90milesbridge/react-rainbow/forks","keys_url":"https://api.github.com/repos/90milesbridge/react-rainbow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/90milesbridge/react-rainbow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/90milesbridge/react-rainbow/teams","hooks_url":"https://api.github.com/repos/90milesbridge/react-rainbow/hooks","issue_events_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/events{/number}","events_url":"https://api.github.com/repos/90milesbridge/react-rainbow/events","assignees_url":"https://api.github.com/repos/90milesbridge/react-rainbow/assignees{/user}","branches_url":"https://api.github.com/repos/90milesbridge/react-rainbow/branches{/branch}","tags_url":"https://api.github.com/repos/90milesbridge/react-rainbow/tags","blobs_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/refs{/sha}","trees_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/90milesbridge/react-rainbow/statuses/{sha}","languages_url":"https://api.github.com/repos/90milesbridge/react-rainbow/languages","stargazers_url":"https://api.github.com/repos/90milesbridge/react-rainbow/stargazers","contributors_url":"https://api.github.com/repos/90milesbridge/react-rainbow/contributors","subscribers_url":"https://api.github.com/repos/90milesbridge/react-rainbow/subscribers","subscription_url":"https://api.github.com/repos/90milesbridge/react-rainbow/subscription","commits_url":"https://api.github.com/repos/90milesbridge/react-rainbow/commits{/sha}","git_commits_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/commits{/sha}","comments_url":"https://api.github.com/repos/90milesbridge/react-rainbow/comments{/number}","issue_comment_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/comments{/number}","contents_url":"https://api.github.com/repos/90milesbridge/react-rainbow/contents/{+path}","compare_url":"https://api.github.com/repos/90milesbridge/react-rainbow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/90milesbridge/react-rainbow/merges","archive_url":"https://api.github.com/repos/90milesbridge/react-rainbow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/90milesbridge/react-rainbow/downloads","issues_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues{/number}","pulls_url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls{/number}","milestones_url":"https://api.github.com/repos/90milesbridge/react-rainbow/milestones{/number}","notifications_url":"https://api.github.com/repos/90milesbridge/react-rainbow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/90milesbridge/react-rainbow/labels{/name}","releases_url":"https://api.github.com/repos/90milesbridge/react-rainbow/releases{/id}","deployments_url":"https://api.github.com/repos/90milesbridge/react-rainbow/deployments","created_at":"2018-08-28T05:34:53Z","updated_at":"2018-10-27T01:25:37Z","pushed_at":"2018-10-27T03:32:05Z","git_url":"git://github.com/90milesbridge/react-rainbow.git","ssh_url":"git@github.com:90milesbridge/react-rainbow.git","clone_url":"https://github.com/90milesbridge/react-rainbow.git","svn_url":"https://github.com/90milesbridge/react-rainbow","homepage":"https://react-rainbow.firebaseapp.com/","size":10717,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":24,"watchers":12,"default_branch":"master"}},"base":{"label":"90milesbridge:master","ref":"master","sha":"c92bba498d3844603de3ee66f89b1103ef88cc1b","user":{"login":"90milesbridge","id":18670678,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NjcwNjc4","avatar_url":"https://avatars3.githubusercontent.com/u/18670678?v=4","gravatar_id":"","url":"https://api.github.com/users/90milesbridge","html_url":"https://github.com/90milesbridge","followers_url":"https://api.github.com/users/90milesbridge/followers","following_url":"https://api.github.com/users/90milesbridge/following{/other_user}","gists_url":"https://api.github.com/users/90milesbridge/gists{/gist_id}","starred_url":"https://api.github.com/users/90milesbridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/90milesbridge/subscriptions","organizations_url":"https://api.github.com/users/90milesbridge/orgs","repos_url":"https://api.github.com/users/90milesbridge/repos","events_url":"https://api.github.com/users/90milesbridge/events{/privacy}","received_events_url":"https://api.github.com/users/90milesbridge/received_events","type":"Organization","site_admin":false},"repo":{"id":146396702,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzOTY3MDI=","name":"react-rainbow","full_name":"90milesbridge/react-rainbow","private":false,"owner":{"login":"90milesbridge","id":18670678,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NjcwNjc4","avatar_url":"https://avatars3.githubusercontent.com/u/18670678?v=4","gravatar_id":"","url":"https://api.github.com/users/90milesbridge","html_url":"https://github.com/90milesbridge","followers_url":"https://api.github.com/users/90milesbridge/followers","following_url":"https://api.github.com/users/90milesbridge/following{/other_user}","gists_url":"https://api.github.com/users/90milesbridge/gists{/gist_id}","starred_url":"https://api.github.com/users/90milesbridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/90milesbridge/subscriptions","organizations_url":"https://api.github.com/users/90milesbridge/orgs","repos_url":"https://api.github.com/users/90milesbridge/repos","events_url":"https://api.github.com/users/90milesbridge/events{/privacy}","received_events_url":"https://api.github.com/users/90milesbridge/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/90milesbridge/react-rainbow","description":"React Rainbow components","fork":false,"url":"https://api.github.com/repos/90milesbridge/react-rainbow","forks_url":"https://api.github.com/repos/90milesbridge/react-rainbow/forks","keys_url":"https://api.github.com/repos/90milesbridge/react-rainbow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/90milesbridge/react-rainbow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/90milesbridge/react-rainbow/teams","hooks_url":"https://api.github.com/repos/90milesbridge/react-rainbow/hooks","issue_events_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/events{/number}","events_url":"https://api.github.com/repos/90milesbridge/react-rainbow/events","assignees_url":"https://api.github.com/repos/90milesbridge/react-rainbow/assignees{/user}","branches_url":"https://api.github.com/repos/90milesbridge/react-rainbow/branches{/branch}","tags_url":"https://api.github.com/repos/90milesbridge/react-rainbow/tags","blobs_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/refs{/sha}","trees_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/90milesbridge/react-rainbow/statuses/{sha}","languages_url":"https://api.github.com/repos/90milesbridge/react-rainbow/languages","stargazers_url":"https://api.github.com/repos/90milesbridge/react-rainbow/stargazers","contributors_url":"https://api.github.com/repos/90milesbridge/react-rainbow/contributors","subscribers_url":"https://api.github.com/repos/90milesbridge/react-rainbow/subscribers","subscription_url":"https://api.github.com/repos/90milesbridge/react-rainbow/subscription","commits_url":"https://api.github.com/repos/90milesbridge/react-rainbow/commits{/sha}","git_commits_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/commits{/sha}","comments_url":"https://api.github.com/repos/90milesbridge/react-rainbow/comments{/number}","issue_comment_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/comments{/number}","contents_url":"https://api.github.com/repos/90milesbridge/react-rainbow/contents/{+path}","compare_url":"https://api.github.com/repos/90milesbridge/react-rainbow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/90milesbridge/react-rainbow/merges","archive_url":"https://api.github.com/repos/90milesbridge/react-rainbow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/90milesbridge/react-rainbow/downloads","issues_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues{/number}","pulls_url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls{/number}","milestones_url":"https://api.github.com/repos/90milesbridge/react-rainbow/milestones{/number}","notifications_url":"https://api.github.com/repos/90milesbridge/react-rainbow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/90milesbridge/react-rainbow/labels{/name}","releases_url":"https://api.github.com/repos/90milesbridge/react-rainbow/releases{/id}","deployments_url":"https://api.github.com/repos/90milesbridge/react-rainbow/deployments","created_at":"2018-08-28T05:34:53Z","updated_at":"2018-10-27T01:25:37Z","pushed_at":"2018-10-27T03:32:05Z","git_url":"git://github.com/90milesbridge/react-rainbow.git","ssh_url":"git@github.com:90milesbridge/react-rainbow.git","clone_url":"https://github.com/90milesbridge/react-rainbow.git","svn_url":"https://github.com/90milesbridge/react-rainbow","homepage":"https://react-rainbow.firebaseapp.com/","size":10717,"stargazers_count":12,"watchers_count":12,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":24,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/352"},"html":{"href":"https://github.com/90milesbridge/react-rainbow/pull/352"},"issue":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/352"},"comments":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/352/comments"},"review_comments":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/352/comments"},"review_comment":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/352/commits"},"statuses":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/statuses/db8861bb14b601208a432a230f1c3e1d2c50faf7"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"LeandroTorresSicilia"}}