{"action":"created","comment":{"url":"https://api.github.com/repos/sulu/sulu/pulls/comments/58055598","id":58055598,"diff_hunk":"@@ -305,6 +305,30 @@ public function iClickTheToolbarButton($itemTitle)\n     }\n \n     /**\n+     * @When I click the tab item :tabTitle\n+     */\n+    public function iClickTheTabItem($tabTitle)\n+    {\n+        $this->clickByTitle('.column-navigation .item-text', $tabTitle);\n+\n+        $tabItems = $this->getSession()->getPage()->findAll('css', '.tabs-container ul li');\n+\n+        /* @var NodeElement $tabItem */\n+        foreach ($tabItems as $tabItem) {\n+            $element = $tabItem->find('named', array('content', $tabTitle));\n+            if ($element && $element->isVisible()) {\n+                // Click and wait for the ajax request.\n+                $element->click();\n+                $this->waitForAjax(self::MEDIUM_WAIT_TIME);\n+\n+                return;\n+            }\n+        }\n+\n+        throw new ElementNotFoundException($this->getSession(), null, 'css', '.tabs-container ul li');","path":"src/Sulu/Bundle/AdminBundle/Behat/AdminContext.php","position":24,"original_position":24,"commit_id":"ee26c17d1aa368892dbd6864100225638fdbd7a0","original_commit_id":"ee26c17d1aa368892dbd6864100225638fdbd7a0","user":{"login":"dantleech","id":530801,"avatar_url":"https://avatars.githubusercontent.com/u/530801?v=3","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"body":"I would make `.tabs-container ul li` a variable, otherwise the selector may change in the future but the error message may not.","created_at":"2016-03-31T13:47:41Z","updated_at":"2016-03-31T13:47:41Z","html_url":"https://github.com/sulu/sulu/pull/2215#discussion_r58055598","pull_request_url":"https://api.github.com/repos/sulu/sulu/pulls/2215","_links":{"self":{"href":"https://api.github.com/repos/sulu/sulu/pulls/comments/58055598"},"html":{"href":"https://github.com/sulu/sulu/pull/2215#discussion_r58055598"},"pull_request":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2215"}}},"pull_request":{"url":"https://api.github.com/repos/sulu/sulu/pulls/2215","id":64783397,"html_url":"https://github.com/sulu/sulu/pull/2215","diff_url":"https://github.com/sulu/sulu/pull/2215.diff","patch_url":"https://github.com/sulu/sulu/pull/2215.patch","issue_url":"https://api.github.com/repos/sulu/sulu/issues/2215","number":2215,"state":"open","locked":false,"title":"Added new behat step: Click tab item","user":{"login":"trickreich","id":16644200,"avatar_url":"https://avatars.githubusercontent.com/u/16644200?v=3","gravatar_id":"","url":"https://api.github.com/users/trickreich","html_url":"https://github.com/trickreich","followers_url":"https://api.github.com/users/trickreich/followers","following_url":"https://api.github.com/users/trickreich/following{/other_user}","gists_url":"https://api.github.com/users/trickreich/gists{/gist_id}","starred_url":"https://api.github.com/users/trickreich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trickreich/subscriptions","organizations_url":"https://api.github.com/users/trickreich/orgs","repos_url":"https://api.github.com/users/trickreich/repos","events_url":"https://api.github.com/users/trickreich/events{/privacy}","received_events_url":"https://api.github.com/users/trickreich/received_events","type":"User","site_admin":false},"body":"| Q | A\r\n| Bug fix? | no\r\n| New feature? | yes\r\n\r\n#### What's in this PR?\r\n\r\nNew behat test step for clicking tab.\r\n\r\n","created_at":"2016-03-31T12:42:27Z","updated_at":"2016-03-31T13:47:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dbcb62b626b1a717b2633ae84782cc801b1b5b49","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sulu/sulu/pulls/2215/commits","review_comments_url":"https://api.github.com/repos/sulu/sulu/pulls/2215/comments","review_comment_url":"https://api.github.com/repos/sulu/sulu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sulu/sulu/issues/2215/comments","statuses_url":"https://api.github.com/repos/sulu/sulu/statuses/ee26c17d1aa368892dbd6864100225638fdbd7a0","head":{"label":"massiveart:feature/behat-tabClick-step","ref":"feature/behat-tabClick-step","sha":"ee26c17d1aa368892dbd6864100225638fdbd7a0","user":{"login":"massiveart","id":854731,"avatar_url":"https://avatars.githubusercontent.com/u/854731?v=3","gravatar_id":"","url":"https://api.github.com/users/massiveart","html_url":"https://github.com/massiveart","followers_url":"https://api.github.com/users/massiveart/followers","following_url":"https://api.github.com/users/massiveart/following{/other_user}","gists_url":"https://api.github.com/users/massiveart/gists{/gist_id}","starred_url":"https://api.github.com/users/massiveart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massiveart/subscriptions","organizations_url":"https://api.github.com/users/massiveart/orgs","repos_url":"https://api.github.com/users/massiveart/repos","events_url":"https://api.github.com/users/massiveart/events{/privacy}","received_events_url":"https://api.github.com/users/massiveart/received_events","type":"Organization","site_admin":false},"repo":{"id":33129845,"name":"sulu","full_name":"massiveart/sulu","owner":{"login":"massiveart","id":854731,"avatar_url":"https://avatars.githubusercontent.com/u/854731?v=3","gravatar_id":"","url":"https://api.github.com/users/massiveart","html_url":"https://github.com/massiveart","followers_url":"https://api.github.com/users/massiveart/followers","following_url":"https://api.github.com/users/massiveart/following{/other_user}","gists_url":"https://api.github.com/users/massiveart/gists{/gist_id}","starred_url":"https://api.github.com/users/massiveart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massiveart/subscriptions","organizations_url":"https://api.github.com/users/massiveart/orgs","repos_url":"https://api.github.com/users/massiveart/repos","events_url":"https://api.github.com/users/massiveart/events{/privacy}","received_events_url":"https://api.github.com/users/massiveart/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/massiveart/sulu","description":"Sulu 2.0 core bundle & components","fork":true,"url":"https://api.github.com/repos/massiveart/sulu","forks_url":"https://api.github.com/repos/massiveart/sulu/forks","keys_url":"https://api.github.com/repos/massiveart/sulu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/massiveart/sulu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/massiveart/sulu/teams","hooks_url":"https://api.github.com/repos/massiveart/sulu/hooks","issue_events_url":"https://api.github.com/repos/massiveart/sulu/issues/events{/number}","events_url":"https://api.github.com/repos/massiveart/sulu/events","assignees_url":"https://api.github.com/repos/massiveart/sulu/assignees{/user}","branches_url":"https://api.github.com/repos/massiveart/sulu/branches{/branch}","tags_url":"https://api.github.com/repos/massiveart/sulu/tags","blobs_url":"https://api.github.com/repos/massiveart/sulu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/massiveart/sulu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/massiveart/sulu/git/refs{/sha}","trees_url":"https://api.github.com/repos/massiveart/sulu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/massiveart/sulu/statuses/{sha}","languages_url":"https://api.github.com/repos/massiveart/sulu/languages","stargazers_url":"https://api.github.com/repos/massiveart/sulu/stargazers","contributors_url":"https://api.github.com/repos/massiveart/sulu/contributors","subscribers_url":"https://api.github.com/repos/massiveart/sulu/subscribers","subscription_url":"https://api.github.com/repos/massiveart/sulu/subscription","commits_url":"https://api.github.com/repos/massiveart/sulu/commits{/sha}","git_commits_url":"https://api.github.com/repos/massiveart/sulu/git/commits{/sha}","comments_url":"https://api.github.com/repos/massiveart/sulu/comments{/number}","issue_comment_url":"https://api.github.com/repos/massiveart/sulu/issues/comments{/number}","contents_url":"https://api.github.com/repos/massiveart/sulu/contents/{+path}","compare_url":"https://api.github.com/repos/massiveart/sulu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/massiveart/sulu/merges","archive_url":"https://api.github.com/repos/massiveart/sulu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/massiveart/sulu/downloads","issues_url":"https://api.github.com/repos/massiveart/sulu/issues{/number}","pulls_url":"https://api.github.com/repos/massiveart/sulu/pulls{/number}","milestones_url":"https://api.github.com/repos/massiveart/sulu/milestones{/number}","notifications_url":"https://api.github.com/repos/massiveart/sulu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/massiveart/sulu/labels{/name}","releases_url":"https://api.github.com/repos/massiveart/sulu/releases{/id}","deployments_url":"https://api.github.com/repos/massiveart/sulu/deployments","created_at":"2015-03-30T15:00:41Z","updated_at":"2015-04-24T07:15:08Z","pushed_at":"2016-03-31T12:40:29Z","git_url":"git://github.com/massiveart/sulu.git","ssh_url":"git@github.com:massiveart/sulu.git","clone_url":"https://github.com/massiveart/sulu.git","svn_url":"https://github.com/massiveart/sulu","homepage":"www.sulu.io","size":63034,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"develop"}},"base":{"label":"sulu:master","ref":"master","sha":"5a5f21bf77771776e4d63c990494c2ffdd3def50","user":{"login":"sulu","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu","html_url":"https://github.com/sulu","followers_url":"https://api.github.com/users/sulu/followers","following_url":"https://api.github.com/users/sulu/following{/other_user}","gists_url":"https://api.github.com/users/sulu/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu/subscriptions","organizations_url":"https://api.github.com/users/sulu/orgs","repos_url":"https://api.github.com/users/sulu/repos","events_url":"https://api.github.com/users/sulu/events{/privacy}","received_events_url":"https://api.github.com/users/sulu/received_events","type":"Organization","site_admin":false},"repo":{"id":13678015,"name":"sulu","full_name":"sulu/sulu","owner":{"login":"sulu","id":5717006,"avatar_url":"https://avatars.githubusercontent.com/u/5717006?v=3","gravatar_id":"","url":"https://api.github.com/users/sulu","html_url":"https://github.com/sulu","followers_url":"https://api.github.com/users/sulu/followers","following_url":"https://api.github.com/users/sulu/following{/other_user}","gists_url":"https://api.github.com/users/sulu/gists{/gist_id}","starred_url":"https://api.github.com/users/sulu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sulu/subscriptions","organizations_url":"https://api.github.com/users/sulu/orgs","repos_url":"https://api.github.com/users/sulu/repos","events_url":"https://api.github.com/users/sulu/events{/privacy}","received_events_url":"https://api.github.com/users/sulu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sulu/sulu","description":"Sulu core bundles & components","fork":false,"url":"https://api.github.com/repos/sulu/sulu","forks_url":"https://api.github.com/repos/sulu/sulu/forks","keys_url":"https://api.github.com/repos/sulu/sulu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sulu/sulu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sulu/sulu/teams","hooks_url":"https://api.github.com/repos/sulu/sulu/hooks","issue_events_url":"https://api.github.com/repos/sulu/sulu/issues/events{/number}","events_url":"https://api.github.com/repos/sulu/sulu/events","assignees_url":"https://api.github.com/repos/sulu/sulu/assignees{/user}","branches_url":"https://api.github.com/repos/sulu/sulu/branches{/branch}","tags_url":"https://api.github.com/repos/sulu/sulu/tags","blobs_url":"https://api.github.com/repos/sulu/sulu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sulu/sulu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sulu/sulu/git/refs{/sha}","trees_url":"https://api.github.com/repos/sulu/sulu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sulu/sulu/statuses/{sha}","languages_url":"https://api.github.com/repos/sulu/sulu/languages","stargazers_url":"https://api.github.com/repos/sulu/sulu/stargazers","contributors_url":"https://api.github.com/repos/sulu/sulu/contributors","subscribers_url":"https://api.github.com/repos/sulu/sulu/subscribers","subscription_url":"https://api.github.com/repos/sulu/sulu/subscription","commits_url":"https://api.github.com/repos/sulu/sulu/commits{/sha}","git_commits_url":"https://api.github.com/repos/sulu/sulu/git/commits{/sha}","comments_url":"https://api.github.com/repos/sulu/sulu/comments{/number}","issue_comment_url":"https://api.github.com/repos/sulu/sulu/issues/comments{/number}","contents_url":"https://api.github.com/repos/sulu/sulu/contents/{+path}","compare_url":"https://api.github.com/repos/sulu/sulu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sulu/sulu/merges","archive_url":"https://api.github.com/repos/sulu/sulu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sulu/sulu/downloads","issues_url":"https://api.github.com/repos/sulu/sulu/issues{/number}","pulls_url":"https://api.github.com/repos/sulu/sulu/pulls{/number}","milestones_url":"https://api.github.com/repos/sulu/sulu/milestones{/number}","notifications_url":"https://api.github.com/repos/sulu/sulu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sulu/sulu/labels{/name}","releases_url":"https://api.github.com/repos/sulu/sulu/releases{/id}","deployments_url":"https://api.github.com/repos/sulu/sulu/deployments","created_at":"2013-10-18T12:57:02Z","updated_at":"2016-03-14T10:44:30Z","pushed_at":"2016-03-31T13:43:53Z","git_url":"git://github.com/sulu/sulu.git","ssh_url":"git@github.com:sulu/sulu.git","clone_url":"https://github.com/sulu/sulu.git","svn_url":"https://github.com/sulu/sulu","homepage":"sulu.io","size":72129,"stargazers_count":108,"watchers_count":108,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":361,"forks":29,"open_issues":361,"watchers":108,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2215"},"html":{"href":"https://github.com/sulu/sulu/pull/2215"},"issue":{"href":"https://api.github.com/repos/sulu/sulu/issues/2215"},"comments":{"href":"https://api.github.com/repos/sulu/sulu/issues/2215/comments"},"review_comments":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2215/comments"},"review_comment":{"href":"https://api.github.com/repos/sulu/sulu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sulu/sulu/pulls/2215/commits"},"statuses":{"href":"https://api.github.com/repos/sulu/sulu/statuses/ee26c17d1aa368892dbd6864100225638fdbd7a0"}}}}