{"action":"created","comment":{"url":"https://api.github.com/repos/gem/oq-platform-taxtweb/pulls/comments/158053246","pull_request_review_id":84798290,"id":158053246,"diff_hunk":"@@ -0,0 +1,77 @@\n+#!/usr/bin/env python\n+import unittest\n+from openquake.moon import platform_get\n+\n+\n+class VulnTaxonomiesTest(unittest.TestCase):\n+    @staticmethod\n+    def setup_class():\n+        pla = platform_get()\n+        pla.get('/taxtweb')\n+        try:\n+            dontshow_tag = pla.xpath_finduniq(\n+                \"//div[@id='taxtweb_splash']//input[@name='dontshowmeagain']\",\n+                times=10)\n+            pla.wait_visibility(dontshow_tag)\n+            dontshow_tag.click()\n+            close_tag = pla.xpath_finduniq(\n+                \"//div[@id='taxtweb_splash']//button[@name='close_btn']\")\n+            close_tag.click()\n+        except:\n+            pass\n+\n+    def click_and_help_simple_test(self):\n+        pla = platform_get()\n+\n+        first_tab_tag = pla.xpath_finduniq(\n+            \"//li[span[normalize-space(text()) = 'Structural System']]\")\n+        first_tab_tag.click()\n+\n+        click_and_help_tag = pla.xpath_finduniq(\n+            \"//li[@id='id_help_form']\")\n+        click_and_help_tag.click()\n+\n+        simple_help = pla.xpath_finduniq(\n+            \"//li[span[normalize-space(text()) = 'Direction X']]\")\n+        simple_help.click()\n+\n+        pla.select_window_by_name(\".*Direction X.*\", timeout=5.0,\n+                                  is_regex=True)\n+        pla.window_close()\n+        pla.select_main_window()\n+\n+    def click_and_help_complex_test(self):\n+        pla = platform_get()\n+\n+        third_tab_tag = pla.xpath_finduniq(\n+            \"//li[span[normalize-space(text()) = 'Exterior Attributes']]\")\n+        third_tab_tag.click()\n+\n+        click_and_help_tag = pla.xpath_finduniq(\n+            \"//li[@id='id_help_form']\")\n+        click_and_help_tag.click()\n+\n+        select_tag = pla.xpath_finduniq(\n+            \"//select[@id='PositionCB']\")\n+        select_tag.click()\n+\n+        item_tag = pla.xpath_finduniq(\n+            \"//div[@id='gem_help_select']/span[normalize-space(text()) = \"\n+            \"'Adjoining building(s) on two sides']\")\n+\n+        item_tag.click()\n+\n+        pla.select_window_by_name(\".*Adjoining buildings on two sides.*\",\n+                                  timeout=5.0, is_regex=True)\n+        pla.window_close()\n+        pla.select_main_window()\n+\n+\n+        # click_and_help_tag = pla.xpath_finduniq(\n+        #     \"//li[@id='id_help_form']\")\n+        # click_and_help_tag.click()\n+\n+        # simple_help = pla.xpath_finduniq(\n+        #     \"//li[span[normalize-space(text()) = 'Direction X']]\")\n+        # simple_help.click()\n+","path":"openquakeplatform_taxtweb/test/click_and_help_test.py","position":77,"original_position":77,"commit_id":"401b3c8121727f915fa1d5f16c71e080c99fc85e","original_commit_id":"401b3c8121727f915fa1d5f16c71e080c99fc85e","user":{"login":"hascar","id":22245939,"avatar_url":"https://avatars3.githubusercontent.com/u/22245939?v=4","gravatar_id":"","url":"https://api.github.com/users/hascar","html_url":"https://github.com/hascar","followers_url":"https://api.github.com/users/hascar/followers","following_url":"https://api.github.com/users/hascar/following{/other_user}","gists_url":"https://api.github.com/users/hascar/gists{/gist_id}","starred_url":"https://api.github.com/users/hascar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hascar/subscriptions","organizations_url":"https://api.github.com/users/hascar/orgs","repos_url":"https://api.github.com/users/hascar/repos","events_url":"https://api.github.com/users/hascar/events{/privacy}","received_events_url":"https://api.github.com/users/hascar/received_events","type":"User","site_admin":false},"body":"For me this comments are useless","created_at":"2017-12-20T15:27:21Z","updated_at":"2017-12-20T15:27:21Z","html_url":"https://github.com/gem/oq-platform-taxtweb/pull/22#discussion_r158053246","pull_request_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/pulls/22","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/gem/oq-platform-taxtweb/pulls/comments/158053246"},"html":{"href":"https://github.com/gem/oq-platform-taxtweb/pull/22#discussion_r158053246"},"pull_request":{"href":"https://api.github.com/repos/gem/oq-platform-taxtweb/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/gem/oq-platform-taxtweb/pulls/22","id":159443586,"html_url":"https://github.com/gem/oq-platform-taxtweb/pull/22","diff_url":"https://github.com/gem/oq-platform-taxtweb/pull/22.diff","patch_url":"https://github.com/gem/oq-platform-taxtweb/pull/22.patch","issue_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/issues/22","number":22,"state":"open","locked":false,"title":"Fix taxonomy links","user":{"login":"nastasi-oq","id":1670278,"avatar_url":"https://avatars1.githubusercontent.com/u/1670278?v=4","gravatar_id":"","url":"https://api.github.com/users/nastasi-oq","html_url":"https://github.com/nastasi-oq","followers_url":"https://api.github.com/users/nastasi-oq/followers","following_url":"https://api.github.com/users/nastasi-oq/following{/other_user}","gists_url":"https://api.github.com/users/nastasi-oq/gists{/gist_id}","starred_url":"https://api.github.com/users/nastasi-oq/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nastasi-oq/subscriptions","organizations_url":"https://api.github.com/users/nastasi-oq/orgs","repos_url":"https://api.github.com/users/nastasi-oq/repos","events_url":"https://api.github.com/users/nastasi-oq/events{/privacy}","received_events_url":"https://api.github.com/users/nastasi-oq/received_events","type":"User","site_admin":false},"body":"Tests are green here: https://ci.openquake.org/job/zdevel_oq-platform/476/\r\nand here: https://ci.openquake.org/job/zdevel_oq-platform-standalone/184/","created_at":"2017-12-20T15:23:05Z","updated_at":"2017-12-20T15:27:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5293787e785a0143bf851861f2d8288171bab3b4","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/pulls/22/commits","review_comments_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/pulls/22/comments","review_comment_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/issues/22/comments","statuses_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/statuses/401b3c8121727f915fa1d5f16c71e080c99fc85e","head":{"label":"gem:fix-taxonomy-links","ref":"fix-taxonomy-links","sha":"401b3c8121727f915fa1d5f16c71e080c99fc85e","user":{"login":"gem","id":316546,"avatar_url":"https://avatars1.githubusercontent.com/u/316546?v=4","gravatar_id":"","url":"https://api.github.com/users/gem","html_url":"https://github.com/gem","followers_url":"https://api.github.com/users/gem/followers","following_url":"https://api.github.com/users/gem/following{/other_user}","gists_url":"https://api.github.com/users/gem/gists{/gist_id}","starred_url":"https://api.github.com/users/gem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gem/subscriptions","organizations_url":"https://api.github.com/users/gem/orgs","repos_url":"https://api.github.com/users/gem/repos","events_url":"https://api.github.com/users/gem/events{/privacy}","received_events_url":"https://api.github.com/users/gem/received_events","type":"Organization","site_admin":false},"repo":{"id":61041555,"name":"oq-platform-taxtweb","full_name":"gem/oq-platform-taxtweb","owner":{"login":"gem","id":316546,"avatar_url":"https://avatars1.githubusercontent.com/u/316546?v=4","gravatar_id":"","url":"https://api.github.com/users/gem","html_url":"https://github.com/gem","followers_url":"https://api.github.com/users/gem/followers","following_url":"https://api.github.com/users/gem/following{/other_user}","gists_url":"https://api.github.com/users/gem/gists{/gist_id}","starred_url":"https://api.github.com/users/gem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gem/subscriptions","organizations_url":"https://api.github.com/users/gem/orgs","repos_url":"https://api.github.com/users/gem/repos","events_url":"https://api.github.com/users/gem/events{/privacy}","received_events_url":"https://api.github.com/users/gem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gem/oq-platform-taxtweb","description":"OpenQuake Platform - Taxtweb","fork":false,"url":"https://api.github.com/repos/gem/oq-platform-taxtweb","forks_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/forks","keys_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/teams","hooks_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/hooks","issue_events_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/issues/events{/number}","events_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/events","assignees_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/assignees{/user}","branches_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/branches{/branch}","tags_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/tags","blobs_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/statuses/{sha}","languages_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/languages","stargazers_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/stargazers","contributors_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/contributors","subscribers_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/subscribers","subscription_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/subscription","commits_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/contents/{+path}","compare_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/merges","archive_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/downloads","issues_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/issues{/number}","pulls_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/pulls{/number}","milestones_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/milestones{/number}","notifications_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/labels{/name}","releases_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/releases{/id}","deployments_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/deployments","created_at":"2016-06-13T14:09:19Z","updated_at":"2016-06-13T14:11:44Z","pushed_at":"2017-12-20T15:23:05Z","git_url":"git://github.com/gem/oq-platform-taxtweb.git","ssh_url":"git@github.com:gem/oq-platform-taxtweb.git","clone_url":"https://github.com/gem/oq-platform-taxtweb.git","svn_url":"https://github.com/gem/oq-platform-taxtweb","homepage":null,"size":602,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"gem:master","ref":"master","sha":"d57fdfdbfe5703efbac04614cda1aaff4ec6fed7","user":{"login":"gem","id":316546,"avatar_url":"https://avatars1.githubusercontent.com/u/316546?v=4","gravatar_id":"","url":"https://api.github.com/users/gem","html_url":"https://github.com/gem","followers_url":"https://api.github.com/users/gem/followers","following_url":"https://api.github.com/users/gem/following{/other_user}","gists_url":"https://api.github.com/users/gem/gists{/gist_id}","starred_url":"https://api.github.com/users/gem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gem/subscriptions","organizations_url":"https://api.github.com/users/gem/orgs","repos_url":"https://api.github.com/users/gem/repos","events_url":"https://api.github.com/users/gem/events{/privacy}","received_events_url":"https://api.github.com/users/gem/received_events","type":"Organization","site_admin":false},"repo":{"id":61041555,"name":"oq-platform-taxtweb","full_name":"gem/oq-platform-taxtweb","owner":{"login":"gem","id":316546,"avatar_url":"https://avatars1.githubusercontent.com/u/316546?v=4","gravatar_id":"","url":"https://api.github.com/users/gem","html_url":"https://github.com/gem","followers_url":"https://api.github.com/users/gem/followers","following_url":"https://api.github.com/users/gem/following{/other_user}","gists_url":"https://api.github.com/users/gem/gists{/gist_id}","starred_url":"https://api.github.com/users/gem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gem/subscriptions","organizations_url":"https://api.github.com/users/gem/orgs","repos_url":"https://api.github.com/users/gem/repos","events_url":"https://api.github.com/users/gem/events{/privacy}","received_events_url":"https://api.github.com/users/gem/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gem/oq-platform-taxtweb","description":"OpenQuake Platform - Taxtweb","fork":false,"url":"https://api.github.com/repos/gem/oq-platform-taxtweb","forks_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/forks","keys_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/teams","hooks_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/hooks","issue_events_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/issues/events{/number}","events_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/events","assignees_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/assignees{/user}","branches_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/branches{/branch}","tags_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/tags","blobs_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/git/refs{/sha}","trees_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/statuses/{sha}","languages_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/languages","stargazers_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/stargazers","contributors_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/contributors","subscribers_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/subscribers","subscription_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/subscription","commits_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/commits{/sha}","git_commits_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/git/commits{/sha}","comments_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/comments{/number}","issue_comment_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/issues/comments{/number}","contents_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/contents/{+path}","compare_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/merges","archive_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/downloads","issues_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/issues{/number}","pulls_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/pulls{/number}","milestones_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/milestones{/number}","notifications_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/labels{/name}","releases_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/releases{/id}","deployments_url":"https://api.github.com/repos/gem/oq-platform-taxtweb/deployments","created_at":"2016-06-13T14:09:19Z","updated_at":"2016-06-13T14:11:44Z","pushed_at":"2017-12-20T15:23:05Z","git_url":"git://github.com/gem/oq-platform-taxtweb.git","ssh_url":"git@github.com:gem/oq-platform-taxtweb.git","clone_url":"https://github.com/gem/oq-platform-taxtweb.git","svn_url":"https://github.com/gem/oq-platform-taxtweb","homepage":null,"size":602,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"license":null,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gem/oq-platform-taxtweb/pulls/22"},"html":{"href":"https://github.com/gem/oq-platform-taxtweb/pull/22"},"issue":{"href":"https://api.github.com/repos/gem/oq-platform-taxtweb/issues/22"},"comments":{"href":"https://api.github.com/repos/gem/oq-platform-taxtweb/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/gem/oq-platform-taxtweb/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/gem/oq-platform-taxtweb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gem/oq-platform-taxtweb/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/gem/oq-platform-taxtweb/statuses/401b3c8121727f915fa1d5f16c71e080c99fc85e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"hascar"}}