{"action":"created","comment":{"url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/comments/42467802","id":42467802,"diff_hunk":"@@ -112,36 +137,66 @@ def time_next(self):\n     @property\n     def is_minimized(self):\n         self.close_zoom()\n-        return not sel.is_displayed(self._minimize.format(self._div_id))\n+        if not self.newer_version:\n+            return not sel.is_displayed(self._minimize.format(self._div_id))\n+        else:\n+            return not sel.is_displayed(self._content.format(self._div_id))\n \n     @property\n     def can_zoom(self):\n         \"\"\"Can this Widget be zoomed?\"\"\"\n-        return sel.is_displayed(self._zoom.format(self._div_id))\n+        self.close_zoom()\n+        if not self.newer_version:\n+            return sel.is_displayed(self._zoom.format(self._div_id))\n+        else:\n+            self.open_dropdown_menu()\n+            zoomable = sel.is_displayed(self._menu_zoom.format(self._div_id))\n+            self.close_dropdown_menu()\n+            return zoomable\n \n     def remove(self, cancel=False):\n         \"\"\"Remove this Widget.\"\"\"\n         self.close_zoom()\n-        sel.click(self._remove.format(self._div_id), wait_ajax=False)  # alert\n-        sel.handle_alert(cancel)\n+        if not self.newer_version:\n+            sel.click(self._remove.format(self._div_id), wait_ajax=False)  # alert\n+            sel.handle_alert(cancel)\n+        else:\n+            self.open_dropdown_menu()\n+            sel.click(self._menu_remove.format(self._div_id))\n+            self.close_dropdown_menu()\n \n     def minimize(self):\n         \"\"\"Minimize this Widget.\"\"\"\n         self.close_zoom()\n         if not self.is_minimized:\n-            sel.click(self._minimize.format(self._div_id))","path":"cfme/dashboard.py","position":117,"original_position":109,"commit_id":"8d359cc7d899329f0990b2ecce08efd18125cfb5","original_commit_id":"e89e4ee809be53992699dc83969df90681304581","user":{"login":"mfalesni","id":2163040,"avatar_url":"https://avatars.githubusercontent.com/u/2163040?v=3","gravatar_id":"","url":"https://api.github.com/users/mfalesni","html_url":"https://github.com/mfalesni","followers_url":"https://api.github.com/users/mfalesni/followers","following_url":"https://api.github.com/users/mfalesni/following{/other_user}","gists_url":"https://api.github.com/users/mfalesni/gists{/gist_id}","starred_url":"https://api.github.com/users/mfalesni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfalesni/subscriptions","organizations_url":"https://api.github.com/users/mfalesni/orgs","repos_url":"https://api.github.com/users/mfalesni/repos","events_url":"https://api.github.com/users/mfalesni/events{/privacy}","received_events_url":"https://api.github.com/users/mfalesni/received_events","type":"User","site_admin":false},"body":"I have changed some things for more DRY but not on this line, I don't know what would I change here. ","created_at":"2015-10-20T08:29:20Z","updated_at":"2015-10-20T08:29:20Z","html_url":"https://github.com/RedHatQE/cfme_tests/pull/2327#discussion_r42467802","pull_request_url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2327","_links":{"self":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/comments/42467802"},"html":{"href":"https://github.com/RedHatQE/cfme_tests/pull/2327#discussion_r42467802"},"pull_request":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2327"}}},"pull_request":{"url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2327","id":47930295,"html_url":"https://github.com/RedHatQE/cfme_tests/pull/2327","diff_url":"https://github.com/RedHatQE/cfme_tests/pull/2327.diff","patch_url":"https://github.com/RedHatQE/cfme_tests/pull/2327.patch","issue_url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/2327","number":2327,"state":"open","locked":false,"title":"Support the new dashboard widgets","user":{"login":"mfalesni","id":2163040,"avatar_url":"https://avatars.githubusercontent.com/u/2163040?v=3","gravatar_id":"","url":"https://api.github.com/users/mfalesni","html_url":"https://github.com/mfalesni","followers_url":"https://api.github.com/users/mfalesni/followers","following_url":"https://api.github.com/users/mfalesni/following{/other_user}","gists_url":"https://api.github.com/users/mfalesni/gists{/gist_id}","starred_url":"https://api.github.com/users/mfalesni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfalesni/subscriptions","organizations_url":"https://api.github.com/users/mfalesni/orgs","repos_url":"https://api.github.com/users/mfalesni/repos","events_url":"https://api.github.com/users/mfalesni/events{/privacy}","received_events_url":"https://api.github.com/users/mfalesni/received_events","type":"User","site_admin":false},"body":"{{pytest: cfme/tests/intelligence/test_dashboard.py -v -k 'operation or widget' --long-running }}","created_at":"2015-10-16T16:16:41Z","updated_at":"2015-10-20T08:29:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c65909b7f3da3afb3c79d0eb46a88234d433dcb5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2327/commits","review_comments_url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2327/comments","review_comment_url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/2327/comments","statuses_url":"https://api.github.com/repos/RedHatQE/cfme_tests/statuses/8d359cc7d899329f0990b2ecce08efd18125cfb5","head":{"label":"mfalesni:update-dashboard-widgets","ref":"update-dashboard-widgets","sha":"8d359cc7d899329f0990b2ecce08efd18125cfb5","user":{"login":"mfalesni","id":2163040,"avatar_url":"https://avatars.githubusercontent.com/u/2163040?v=3","gravatar_id":"","url":"https://api.github.com/users/mfalesni","html_url":"https://github.com/mfalesni","followers_url":"https://api.github.com/users/mfalesni/followers","following_url":"https://api.github.com/users/mfalesni/following{/other_user}","gists_url":"https://api.github.com/users/mfalesni/gists{/gist_id}","starred_url":"https://api.github.com/users/mfalesni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfalesni/subscriptions","organizations_url":"https://api.github.com/users/mfalesni/orgs","repos_url":"https://api.github.com/users/mfalesni/repos","events_url":"https://api.github.com/users/mfalesni/events{/privacy}","received_events_url":"https://api.github.com/users/mfalesni/received_events","type":"User","site_admin":false},"repo":{"id":12919747,"name":"cfme_tests","full_name":"mfalesni/cfme_tests","owner":{"login":"mfalesni","id":2163040,"avatar_url":"https://avatars.githubusercontent.com/u/2163040?v=3","gravatar_id":"","url":"https://api.github.com/users/mfalesni","html_url":"https://github.com/mfalesni","followers_url":"https://api.github.com/users/mfalesni/followers","following_url":"https://api.github.com/users/mfalesni/following{/other_user}","gists_url":"https://api.github.com/users/mfalesni/gists{/gist_id}","starred_url":"https://api.github.com/users/mfalesni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfalesni/subscriptions","organizations_url":"https://api.github.com/users/mfalesni/orgs","repos_url":"https://api.github.com/users/mfalesni/repos","events_url":"https://api.github.com/users/mfalesni/events{/privacy}","received_events_url":"https://api.github.com/users/mfalesni/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mfalesni/cfme_tests","description":"CloudForms Management Engine - Functional tests","fork":true,"url":"https://api.github.com/repos/mfalesni/cfme_tests","forks_url":"https://api.github.com/repos/mfalesni/cfme_tests/forks","keys_url":"https://api.github.com/repos/mfalesni/cfme_tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mfalesni/cfme_tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mfalesni/cfme_tests/teams","hooks_url":"https://api.github.com/repos/mfalesni/cfme_tests/hooks","issue_events_url":"https://api.github.com/repos/mfalesni/cfme_tests/issues/events{/number}","events_url":"https://api.github.com/repos/mfalesni/cfme_tests/events","assignees_url":"https://api.github.com/repos/mfalesni/cfme_tests/assignees{/user}","branches_url":"https://api.github.com/repos/mfalesni/cfme_tests/branches{/branch}","tags_url":"https://api.github.com/repos/mfalesni/cfme_tests/tags","blobs_url":"https://api.github.com/repos/mfalesni/cfme_tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mfalesni/cfme_tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mfalesni/cfme_tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/mfalesni/cfme_tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mfalesni/cfme_tests/statuses/{sha}","languages_url":"https://api.github.com/repos/mfalesni/cfme_tests/languages","stargazers_url":"https://api.github.com/repos/mfalesni/cfme_tests/stargazers","contributors_url":"https://api.github.com/repos/mfalesni/cfme_tests/contributors","subscribers_url":"https://api.github.com/repos/mfalesni/cfme_tests/subscribers","subscription_url":"https://api.github.com/repos/mfalesni/cfme_tests/subscription","commits_url":"https://api.github.com/repos/mfalesni/cfme_tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/mfalesni/cfme_tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/mfalesni/cfme_tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/mfalesni/cfme_tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/mfalesni/cfme_tests/contents/{+path}","compare_url":"https://api.github.com/repos/mfalesni/cfme_tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mfalesni/cfme_tests/merges","archive_url":"https://api.github.com/repos/mfalesni/cfme_tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mfalesni/cfme_tests/downloads","issues_url":"https://api.github.com/repos/mfalesni/cfme_tests/issues{/number}","pulls_url":"https://api.github.com/repos/mfalesni/cfme_tests/pulls{/number}","milestones_url":"https://api.github.com/repos/mfalesni/cfme_tests/milestones{/number}","notifications_url":"https://api.github.com/repos/mfalesni/cfme_tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mfalesni/cfme_tests/labels{/name}","releases_url":"https://api.github.com/repos/mfalesni/cfme_tests/releases{/id}","created_at":"2013-09-18T10:01:35Z","updated_at":"2015-05-06T16:22:20Z","pushed_at":"2015-10-20T08:27:45Z","git_url":"git://github.com/mfalesni/cfme_tests.git","ssh_url":"git@github.com:mfalesni/cfme_tests.git","clone_url":"https://github.com/mfalesni/cfme_tests.git","svn_url":"https://github.com/mfalesni/cfme_tests","homepage":"","size":14484,"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":"RedHatQE:master","ref":"master","sha":"1a6504fa45cf55636812acc83f88157adaf52387","user":{"login":"RedHatQE","id":534870,"avatar_url":"https://avatars.githubusercontent.com/u/534870?v=3","gravatar_id":"","url":"https://api.github.com/users/RedHatQE","html_url":"https://github.com/RedHatQE","followers_url":"https://api.github.com/users/RedHatQE/followers","following_url":"https://api.github.com/users/RedHatQE/following{/other_user}","gists_url":"https://api.github.com/users/RedHatQE/gists{/gist_id}","starred_url":"https://api.github.com/users/RedHatQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedHatQE/subscriptions","organizations_url":"https://api.github.com/users/RedHatQE/orgs","repos_url":"https://api.github.com/users/RedHatQE/repos","events_url":"https://api.github.com/users/RedHatQE/events{/privacy}","received_events_url":"https://api.github.com/users/RedHatQE/received_events","type":"Organization","site_admin":false},"repo":{"id":8061086,"name":"cfme_tests","full_name":"RedHatQE/cfme_tests","owner":{"login":"RedHatQE","id":534870,"avatar_url":"https://avatars.githubusercontent.com/u/534870?v=3","gravatar_id":"","url":"https://api.github.com/users/RedHatQE","html_url":"https://github.com/RedHatQE","followers_url":"https://api.github.com/users/RedHatQE/followers","following_url":"https://api.github.com/users/RedHatQE/following{/other_user}","gists_url":"https://api.github.com/users/RedHatQE/gists{/gist_id}","starred_url":"https://api.github.com/users/RedHatQE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RedHatQE/subscriptions","organizations_url":"https://api.github.com/users/RedHatQE/orgs","repos_url":"https://api.github.com/users/RedHatQE/repos","events_url":"https://api.github.com/users/RedHatQE/events{/privacy}","received_events_url":"https://api.github.com/users/RedHatQE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RedHatQE/cfme_tests","description":"CloudForms Management Engine - Functional tests","fork":false,"url":"https://api.github.com/repos/RedHatQE/cfme_tests","forks_url":"https://api.github.com/repos/RedHatQE/cfme_tests/forks","keys_url":"https://api.github.com/repos/RedHatQE/cfme_tests/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RedHatQE/cfme_tests/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RedHatQE/cfme_tests/teams","hooks_url":"https://api.github.com/repos/RedHatQE/cfme_tests/hooks","issue_events_url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/events{/number}","events_url":"https://api.github.com/repos/RedHatQE/cfme_tests/events","assignees_url":"https://api.github.com/repos/RedHatQE/cfme_tests/assignees{/user}","branches_url":"https://api.github.com/repos/RedHatQE/cfme_tests/branches{/branch}","tags_url":"https://api.github.com/repos/RedHatQE/cfme_tests/tags","blobs_url":"https://api.github.com/repos/RedHatQE/cfme_tests/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RedHatQE/cfme_tests/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RedHatQE/cfme_tests/git/refs{/sha}","trees_url":"https://api.github.com/repos/RedHatQE/cfme_tests/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RedHatQE/cfme_tests/statuses/{sha}","languages_url":"https://api.github.com/repos/RedHatQE/cfme_tests/languages","stargazers_url":"https://api.github.com/repos/RedHatQE/cfme_tests/stargazers","contributors_url":"https://api.github.com/repos/RedHatQE/cfme_tests/contributors","subscribers_url":"https://api.github.com/repos/RedHatQE/cfme_tests/subscribers","subscription_url":"https://api.github.com/repos/RedHatQE/cfme_tests/subscription","commits_url":"https://api.github.com/repos/RedHatQE/cfme_tests/commits{/sha}","git_commits_url":"https://api.github.com/repos/RedHatQE/cfme_tests/git/commits{/sha}","comments_url":"https://api.github.com/repos/RedHatQE/cfme_tests/comments{/number}","issue_comment_url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/comments{/number}","contents_url":"https://api.github.com/repos/RedHatQE/cfme_tests/contents/{+path}","compare_url":"https://api.github.com/repos/RedHatQE/cfme_tests/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RedHatQE/cfme_tests/merges","archive_url":"https://api.github.com/repos/RedHatQE/cfme_tests/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RedHatQE/cfme_tests/downloads","issues_url":"https://api.github.com/repos/RedHatQE/cfme_tests/issues{/number}","pulls_url":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls{/number}","milestones_url":"https://api.github.com/repos/RedHatQE/cfme_tests/milestones{/number}","notifications_url":"https://api.github.com/repos/RedHatQE/cfme_tests/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RedHatQE/cfme_tests/labels{/name}","releases_url":"https://api.github.com/repos/RedHatQE/cfme_tests/releases{/id}","created_at":"2013-02-06T21:59:17Z","updated_at":"2015-10-15T14:24:03Z","pushed_at":"2015-10-20T08:27:46Z","git_url":"git://github.com/RedHatQE/cfme_tests.git","ssh_url":"git@github.com:RedHatQE/cfme_tests.git","clone_url":"https://github.com/RedHatQE/cfme_tests.git","svn_url":"https://github.com/RedHatQE/cfme_tests","homepage":"","size":30383,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":33,"mirror_url":null,"open_issues_count":66,"forks":33,"open_issues":66,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2327"},"html":{"href":"https://github.com/RedHatQE/cfme_tests/pull/2327"},"issue":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/2327"},"comments":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/issues/2327/comments"},"review_comments":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2327/comments"},"review_comment":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/pulls/2327/commits"},"statuses":{"href":"https://api.github.com/repos/RedHatQE/cfme_tests/statuses/8d359cc7d899329f0990b2ecce08efd18125cfb5"}}}}