{"action":"created","comment":{"url":"https://api.github.com/repos/fidals/shopelectro/pulls/comments/75291177","id":75291177,"diff_hunk":"@@ -670,6 +676,52 @@ def test_sidebar_not_on_dashboard(self):\n \n         self.assertTrue(sidebar.is_displayed())\n \n+    def test_tree_get_data(self):\n+        \"\"\"Test for lazy load logic\"\"\"\n+        self.browser.find_element_by_xpath('//*[@id=\"24\"]/i').click()\n+        wait()\n+        self.browser.find_element_by_xpath('//*[@id=\"28\"]/i').click()\n+        wait()\n+\n+        children = (self.browser.find_element_by_xpath('//*[@id=\"28\"]/ul')\n+                    .find_elements_by_class_name('jstree-leaf'))\n+\n+        self.assertGreater(len(children), 10)\n+\n+    def test_tree_redirect_to_entity_admin_editor(self):\n+        current_url = 'http://localhost:8081/admin/shopelectro/category/24/change/'\n+\n+        self.browser.find_element_by_xpath('//*[@id=\"24_anchor\"]').click()\n+        wait()\n+\n+        self.assertEqual(self.browser.current_url, current_url)\n+\n+    def test_tree_redirect_to_entity_table_editor(self):\n+        item = self.browser.find_element_by_xpath('//*[@id=\"317_anchor\"]')\n+        url = 'http://localhost:8081/admin/editor/?category_id=28'\n+        search_value = 'Child #0 of #Root category #1'\n+\n+        context_click(self.browser, item)\n+        wait()\n+        self.browser.find_element_by_xpath('/html/body/ul/li[1]/a').click()\n+        wait()\n+        search_field_value = self.browser.find_element_by_id('search-field').get_attribute('value')\n+        wait()\n+\n+        self.assertEqual(self.browser.current_url, url)\n+        self.assertEqual(search_field_value, search_value)\n+\n+    def test_tree_redirect_to_entity_site_page(self):\n+        item = self.browser.find_element_by_xpath('//*[@id=\"317_anchor\"]')\n+        current_url = 'http://localhost:8081/catalog/products/317/'\n+\n+        context_click(self.browser, item)\n+        wait()\n+        self.browser.find_element_by_xpath('/html/body/ul/li[2]/a').click()","path":"shopelectro/tests/tests_selenium.py","position":82,"original_position":82,"commit_id":"15039188b0baf16a7ee7f2dc66a6a70f57c94de0","original_commit_id":"15039188b0baf16a7ee7f2dc66a6a70f57c94de0","user":{"login":"wrtds2","id":13870342,"avatar_url":"https://avatars.githubusercontent.com/u/13870342?v=3","gravatar_id":"","url":"https://api.github.com/users/wrtds2","html_url":"https://github.com/wrtds2","followers_url":"https://api.github.com/users/wrtds2/followers","following_url":"https://api.github.com/users/wrtds2/following{/other_user}","gists_url":"https://api.github.com/users/wrtds2/gists{/gist_id}","starred_url":"https://api.github.com/users/wrtds2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrtds2/subscriptions","organizations_url":"https://api.github.com/users/wrtds2/orgs","repos_url":"https://api.github.com/users/wrtds2/repos","events_url":"https://api.github.com/users/wrtds2/events{/privacy}","received_events_url":"https://api.github.com/users/wrtds2/received_events","type":"User","site_admin":false},"body":"Прикруть id не получиться, это контекстное меню","created_at":"2016-08-18T11:27:56Z","updated_at":"2016-08-18T11:27:56Z","html_url":"https://github.com/fidals/shopelectro/pull/56#discussion_r75291177","pull_request_url":"https://api.github.com/repos/fidals/shopelectro/pulls/56","_links":{"self":{"href":"https://api.github.com/repos/fidals/shopelectro/pulls/comments/75291177"},"html":{"href":"https://github.com/fidals/shopelectro/pull/56#discussion_r75291177"},"pull_request":{"href":"https://api.github.com/repos/fidals/shopelectro/pulls/56"}}},"pull_request":{"url":"https://api.github.com/repos/fidals/shopelectro/pulls/56","id":81654234,"html_url":"https://github.com/fidals/shopelectro/pull/56","diff_url":"https://github.com/fidals/shopelectro/pull/56.diff","patch_url":"https://github.com/fidals/shopelectro/pull/56.patch","issue_url":"https://api.github.com/repos/fidals/shopelectro/issues/56","number":56,"state":"open","locked":false,"title":"[ 773 ] RF admin tree","user":{"login":"wrtds2","id":13870342,"avatar_url":"https://avatars.githubusercontent.com/u/13870342?v=3","gravatar_id":"","url":"https://api.github.com/users/wrtds2","html_url":"https://github.com/wrtds2","followers_url":"https://api.github.com/users/wrtds2/followers","following_url":"https://api.github.com/users/wrtds2/following{/other_user}","gists_url":"https://api.github.com/users/wrtds2/gists{/gist_id}","starred_url":"https://api.github.com/users/wrtds2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wrtds2/subscriptions","organizations_url":"https://api.github.com/users/wrtds2/orgs","repos_url":"https://api.github.com/users/wrtds2/repos","events_url":"https://api.github.com/users/wrtds2/events{/privacy}","received_events_url":"https://api.github.com/users/wrtds2/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-08-17T14:35:01Z","updated_at":"2016-08-18T11:27:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ec71449fb144b9ca459a63d4287cdaad74992ee9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fidals/shopelectro/pulls/56/commits","review_comments_url":"https://api.github.com/repos/fidals/shopelectro/pulls/56/comments","review_comment_url":"https://api.github.com/repos/fidals/shopelectro/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fidals/shopelectro/issues/56/comments","statuses_url":"https://api.github.com/repos/fidals/shopelectro/statuses/15039188b0baf16a7ee7f2dc66a6a70f57c94de0","head":{"label":"fidals:f-773_RF_Admin_Tree","ref":"f-773_RF_Admin_Tree","sha":"15039188b0baf16a7ee7f2dc66a6a70f57c94de0","user":{"login":"fidals","id":16228604,"avatar_url":"https://avatars.githubusercontent.com/u/16228604?v=3","gravatar_id":"","url":"https://api.github.com/users/fidals","html_url":"https://github.com/fidals","followers_url":"https://api.github.com/users/fidals/followers","following_url":"https://api.github.com/users/fidals/following{/other_user}","gists_url":"https://api.github.com/users/fidals/gists{/gist_id}","starred_url":"https://api.github.com/users/fidals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fidals/subscriptions","organizations_url":"https://api.github.com/users/fidals/orgs","repos_url":"https://api.github.com/users/fidals/repos","events_url":"https://api.github.com/users/fidals/events{/privacy}","received_events_url":"https://api.github.com/users/fidals/received_events","type":"Organization","site_admin":false},"repo":{"id":57301144,"name":"shopelectro","full_name":"fidals/shopelectro","owner":{"login":"fidals","id":16228604,"avatar_url":"https://avatars.githubusercontent.com/u/16228604?v=3","gravatar_id":"","url":"https://api.github.com/users/fidals","html_url":"https://github.com/fidals","followers_url":"https://api.github.com/users/fidals/followers","following_url":"https://api.github.com/users/fidals/following{/other_user}","gists_url":"https://api.github.com/users/fidals/gists{/gist_id}","starred_url":"https://api.github.com/users/fidals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fidals/subscriptions","organizations_url":"https://api.github.com/users/fidals/orgs","repos_url":"https://api.github.com/users/fidals/repos","events_url":"https://api.github.com/users/fidals/events{/privacy}","received_events_url":"https://api.github.com/users/fidals/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fidals/shopelectro","description":"shopelectro.ru site's code","fork":false,"url":"https://api.github.com/repos/fidals/shopelectro","forks_url":"https://api.github.com/repos/fidals/shopelectro/forks","keys_url":"https://api.github.com/repos/fidals/shopelectro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fidals/shopelectro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fidals/shopelectro/teams","hooks_url":"https://api.github.com/repos/fidals/shopelectro/hooks","issue_events_url":"https://api.github.com/repos/fidals/shopelectro/issues/events{/number}","events_url":"https://api.github.com/repos/fidals/shopelectro/events","assignees_url":"https://api.github.com/repos/fidals/shopelectro/assignees{/user}","branches_url":"https://api.github.com/repos/fidals/shopelectro/branches{/branch}","tags_url":"https://api.github.com/repos/fidals/shopelectro/tags","blobs_url":"https://api.github.com/repos/fidals/shopelectro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fidals/shopelectro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fidals/shopelectro/git/refs{/sha}","trees_url":"https://api.github.com/repos/fidals/shopelectro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fidals/shopelectro/statuses/{sha}","languages_url":"https://api.github.com/repos/fidals/shopelectro/languages","stargazers_url":"https://api.github.com/repos/fidals/shopelectro/stargazers","contributors_url":"https://api.github.com/repos/fidals/shopelectro/contributors","subscribers_url":"https://api.github.com/repos/fidals/shopelectro/subscribers","subscription_url":"https://api.github.com/repos/fidals/shopelectro/subscription","commits_url":"https://api.github.com/repos/fidals/shopelectro/commits{/sha}","git_commits_url":"https://api.github.com/repos/fidals/shopelectro/git/commits{/sha}","comments_url":"https://api.github.com/repos/fidals/shopelectro/comments{/number}","issue_comment_url":"https://api.github.com/repos/fidals/shopelectro/issues/comments{/number}","contents_url":"https://api.github.com/repos/fidals/shopelectro/contents/{+path}","compare_url":"https://api.github.com/repos/fidals/shopelectro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fidals/shopelectro/merges","archive_url":"https://api.github.com/repos/fidals/shopelectro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fidals/shopelectro/downloads","issues_url":"https://api.github.com/repos/fidals/shopelectro/issues{/number}","pulls_url":"https://api.github.com/repos/fidals/shopelectro/pulls{/number}","milestones_url":"https://api.github.com/repos/fidals/shopelectro/milestones{/number}","notifications_url":"https://api.github.com/repos/fidals/shopelectro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fidals/shopelectro/labels{/name}","releases_url":"https://api.github.com/repos/fidals/shopelectro/releases{/id}","deployments_url":"https://api.github.com/repos/fidals/shopelectro/deployments","created_at":"2016-04-28T12:43:43Z","updated_at":"2016-07-11T12:16:15Z","pushed_at":"2016-08-17T16:17:32Z","git_url":"git://github.com/fidals/shopelectro.git","ssh_url":"git@github.com:fidals/shopelectro.git","clone_url":"https://github.com/fidals/shopelectro.git","svn_url":"https://github.com/fidals/shopelectro","homepage":null,"size":3705,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"fidals:master","ref":"master","sha":"7acb12517463c6eea93d9a1997db796c64461b2e","user":{"login":"fidals","id":16228604,"avatar_url":"https://avatars.githubusercontent.com/u/16228604?v=3","gravatar_id":"","url":"https://api.github.com/users/fidals","html_url":"https://github.com/fidals","followers_url":"https://api.github.com/users/fidals/followers","following_url":"https://api.github.com/users/fidals/following{/other_user}","gists_url":"https://api.github.com/users/fidals/gists{/gist_id}","starred_url":"https://api.github.com/users/fidals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fidals/subscriptions","organizations_url":"https://api.github.com/users/fidals/orgs","repos_url":"https://api.github.com/users/fidals/repos","events_url":"https://api.github.com/users/fidals/events{/privacy}","received_events_url":"https://api.github.com/users/fidals/received_events","type":"Organization","site_admin":false},"repo":{"id":57301144,"name":"shopelectro","full_name":"fidals/shopelectro","owner":{"login":"fidals","id":16228604,"avatar_url":"https://avatars.githubusercontent.com/u/16228604?v=3","gravatar_id":"","url":"https://api.github.com/users/fidals","html_url":"https://github.com/fidals","followers_url":"https://api.github.com/users/fidals/followers","following_url":"https://api.github.com/users/fidals/following{/other_user}","gists_url":"https://api.github.com/users/fidals/gists{/gist_id}","starred_url":"https://api.github.com/users/fidals/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fidals/subscriptions","organizations_url":"https://api.github.com/users/fidals/orgs","repos_url":"https://api.github.com/users/fidals/repos","events_url":"https://api.github.com/users/fidals/events{/privacy}","received_events_url":"https://api.github.com/users/fidals/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fidals/shopelectro","description":"shopelectro.ru site's code","fork":false,"url":"https://api.github.com/repos/fidals/shopelectro","forks_url":"https://api.github.com/repos/fidals/shopelectro/forks","keys_url":"https://api.github.com/repos/fidals/shopelectro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fidals/shopelectro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fidals/shopelectro/teams","hooks_url":"https://api.github.com/repos/fidals/shopelectro/hooks","issue_events_url":"https://api.github.com/repos/fidals/shopelectro/issues/events{/number}","events_url":"https://api.github.com/repos/fidals/shopelectro/events","assignees_url":"https://api.github.com/repos/fidals/shopelectro/assignees{/user}","branches_url":"https://api.github.com/repos/fidals/shopelectro/branches{/branch}","tags_url":"https://api.github.com/repos/fidals/shopelectro/tags","blobs_url":"https://api.github.com/repos/fidals/shopelectro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fidals/shopelectro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fidals/shopelectro/git/refs{/sha}","trees_url":"https://api.github.com/repos/fidals/shopelectro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fidals/shopelectro/statuses/{sha}","languages_url":"https://api.github.com/repos/fidals/shopelectro/languages","stargazers_url":"https://api.github.com/repos/fidals/shopelectro/stargazers","contributors_url":"https://api.github.com/repos/fidals/shopelectro/contributors","subscribers_url":"https://api.github.com/repos/fidals/shopelectro/subscribers","subscription_url":"https://api.github.com/repos/fidals/shopelectro/subscription","commits_url":"https://api.github.com/repos/fidals/shopelectro/commits{/sha}","git_commits_url":"https://api.github.com/repos/fidals/shopelectro/git/commits{/sha}","comments_url":"https://api.github.com/repos/fidals/shopelectro/comments{/number}","issue_comment_url":"https://api.github.com/repos/fidals/shopelectro/issues/comments{/number}","contents_url":"https://api.github.com/repos/fidals/shopelectro/contents/{+path}","compare_url":"https://api.github.com/repos/fidals/shopelectro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fidals/shopelectro/merges","archive_url":"https://api.github.com/repos/fidals/shopelectro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fidals/shopelectro/downloads","issues_url":"https://api.github.com/repos/fidals/shopelectro/issues{/number}","pulls_url":"https://api.github.com/repos/fidals/shopelectro/pulls{/number}","milestones_url":"https://api.github.com/repos/fidals/shopelectro/milestones{/number}","notifications_url":"https://api.github.com/repos/fidals/shopelectro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fidals/shopelectro/labels{/name}","releases_url":"https://api.github.com/repos/fidals/shopelectro/releases{/id}","deployments_url":"https://api.github.com/repos/fidals/shopelectro/deployments","created_at":"2016-04-28T12:43:43Z","updated_at":"2016-07-11T12:16:15Z","pushed_at":"2016-08-17T16:17:32Z","git_url":"git://github.com/fidals/shopelectro.git","ssh_url":"git@github.com:fidals/shopelectro.git","clone_url":"https://github.com/fidals/shopelectro.git","svn_url":"https://github.com/fidals/shopelectro","homepage":null,"size":3705,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fidals/shopelectro/pulls/56"},"html":{"href":"https://github.com/fidals/shopelectro/pull/56"},"issue":{"href":"https://api.github.com/repos/fidals/shopelectro/issues/56"},"comments":{"href":"https://api.github.com/repos/fidals/shopelectro/issues/56/comments"},"review_comments":{"href":"https://api.github.com/repos/fidals/shopelectro/pulls/56/comments"},"review_comment":{"href":"https://api.github.com/repos/fidals/shopelectro/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fidals/shopelectro/pulls/56/commits"},"statuses":{"href":"https://api.github.com/repos/fidals/shopelectro/statuses/15039188b0baf16a7ee7f2dc66a6a70f57c94de0"}}}}
{"actor":{"display_login":"wrtds2"}}