{"action":"created","comment":{"url":"https://api.github.com/repos/joomla-extensions/weblinks/pulls/comments/40826736","id":40826736,"diff_hunk":"@@ -0,0 +1,136 @@\n+<?php\n+\n+/**\n+ * @package     Joomla.Administrator\n+ * @subpackage  com_weblinks\n+ *\n+ * @copyright   Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.\n+ * @license     GNU General Public License version 2 or later; see LICENSE.txt\n+ */\n+class AdministratorCategoriesCest\n+{\n+\tpublic function administratorCreateCategory(AcceptanceTester $I)\n+\t{\n+\t\t$I->am('Administrator');\n+\t\t$I->wantToTest('Category creation in /administrator/');\n+\n+\t\t$I->doAdministratorLogin();\n+\n+\t\t$I->amGoingTo('Navigate to Categories page in /administrator/');\n+\t\t$I->amOnPage('administrator/index.php?option=com_categories&extension=com_weblinks');\n+\t\t$I->waitForText('Weblinks: Categories', '30', ['css' => 'h1']);\n+\t\t$I->expectTo('see categories page');\n+\t\t$I->checkForPhpNoticesOrWarnings();\n+\n+\t\t$I->amGoingTo('try to save a category with a filled title');\n+\t\t$I->click(['xpath' => \"//button[@onclick=\\\"Joomla.submitbutton('category.add')\\\"]\"]);\n+\t\t$I->waitForText('Category Manager: Add A New Weblinks Category', '30', ['css' => 'h1']);\n+\t\t$I->fillField(['id' => 'jform_title'], 'automated testing' . rand(1, 100));\n+\t\t$I->click(['xpath' => \"//button[@onclick=\\\"Joomla.submitbutton('category.apply')\\\"]\"]);\n+\t\t$I->expectTo('see a success message after saving the category');\n+\t\t$I->see('Category successfully saved', ['id' => 'system-message-container']);\n+\t}\n+\n+\tpublic function administratorCreateCategoryWithoutTitleFails(AcceptanceTester $I)\n+\t{\n+\t\t$I->am('Administrator');\n+\t\t$I->wantToTest('Category creation in /administrator/ without title');\n+\n+\t\t$I->doAdministratorLogin();\n+\n+\t\t$I->amGoingTo('Navigate to Categories page in /administrator/');\n+\t\t$I->amOnPage('administrator/index.php?option=com_categories&extension=com_weblinks');\n+\t\t$I->waitForText('Weblinks: Categories', '30', ['css' => 'h1']);\n+\t\t$I->expectTo('see categories page');\n+\n+\t\t$I->amGoingTo('try to save a category with empty title and it should fail');\n+\t\t$I->click(['xpath' => \"//button[@onclick=\\\"Joomla.submitbutton('category.add')\\\"]\"]);\n+\t\t$I->waitForText('Category Manager: Add A New Weblinks Category', '30', ['css' => 'h1']);\n+\t\t$I->click(['xpath' => \"//button[@onclick=\\\"Joomla.submitbutton('category.apply')\\\"]\"]);\n+\t\t$I->expectTo('see an error when trying to save a category without title');\n+\t\t$I->see('Invalid field:  Title', ['id' => 'system-message-container']);\n+\t}\n+\n+\tpublic function administratorPublishCategory(AcceptanceTester $I)\n+\t{\n+\t\t$I->am('Administrator');\n+\t\t$I->wantToTest('Category publishing in /administrator/');\n+\n+\t\t$I->doAdministratorLogin();\n+\n+\t\t$I->amGoingTo('Navigate to Categories page in /administrator/');\n+\t\t$I->amOnPage('administrator/index.php?option=com_categories&extension=com_weblinks');\n+\t\t$I->waitForText('Weblinks: Categories', '30', ['css' => 'h1']);\n+\t\t$I->expectTo('see categories page');\n+\t\t$I->checkForPhpNoticesOrWarnings();\n+\n+\t\t$I->amGoingTo('try to save a category with a filled title');\n+\t\t$I->click(['xpath' => \"//button[@onclick=\\\"Joomla.submitbutton('category.add')\\\"]\"]);\n+\t\t$I->waitForText('Category Manager: Add A New Weblinks Category', '30', ['css' => 'h1']);\n+\t\t$I->fillField(['id' => 'jform_title'], 'automated testing pub' . rand(1, 100));\n+\t\t$I->click(['xpath' => \"//button[@onclick=\\\"Joomla.submitbutton('category.save')\\\"]\"]);\n+\n+\t\t$I->expectTo('see a success message after saving the category');\n+\t\t$I->see('Category successfully saved', ['id' => 'system-message-container']);\n+\n+\t\t$I->amGoingTo('Search for automated testing');\n+\t\t$I->fillField(['xpath' => \"//input[@id=\\\"filter_search\\\"]\"], \"automated testing pub\" . \"\\n\");","path":"tests/acceptance/administrator/AdministratorCategoriesCest.php","position":77,"original_position":77,"commit_id":"a0d68ab93bf5f0785218f7fb464a8d5988969f25","original_commit_id":"a0d68ab93bf5f0785218f7fb464a8d5988969f25","user":{"login":"puneet0191","id":3048593,"avatar_url":"https://avatars.githubusercontent.com/u/3048593?v=3","gravatar_id":"","url":"https://api.github.com/users/puneet0191","html_url":"https://github.com/puneet0191","followers_url":"https://api.github.com/users/puneet0191/followers","following_url":"https://api.github.com/users/puneet0191/following{/other_user}","gists_url":"https://api.github.com/users/puneet0191/gists{/gist_id}","starred_url":"https://api.github.com/users/puneet0191/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puneet0191/subscriptions","organizations_url":"https://api.github.com/users/puneet0191/orgs","repos_url":"https://api.github.com/users/puneet0191/repos","events_url":"https://api.github.com/users/puneet0191/events{/privacy}","received_events_url":"https://api.github.com/users/puneet0191/received_events","type":"User","site_admin":false},"body":"I think we figured a way to deal with the search Field. I am not sure if \"\\n\" is the best approach. ","created_at":"2015-09-30T17:50:51Z","updated_at":"2015-09-30T17:50:51Z","html_url":"https://github.com/joomla-extensions/weblinks/pull/96#discussion_r40826736","pull_request_url":"https://api.github.com/repos/joomla-extensions/weblinks/pulls/96","_links":{"self":{"href":"https://api.github.com/repos/joomla-extensions/weblinks/pulls/comments/40826736"},"html":{"href":"https://github.com/joomla-extensions/weblinks/pull/96#discussion_r40826736"},"pull_request":{"href":"https://api.github.com/repos/joomla-extensions/weblinks/pulls/96"}}},"pull_request":{"url":"https://api.github.com/repos/joomla-extensions/weblinks/pulls/96","id":46431669,"html_url":"https://github.com/joomla-extensions/weblinks/pull/96","diff_url":"https://github.com/joomla-extensions/weblinks/pull/96.diff","patch_url":"https://github.com/joomla-extensions/weblinks/pull/96.patch","issue_url":"https://api.github.com/repos/joomla-extensions/weblinks/issues/96","number":96,"state":"open","locked":false,"title":"[tests] Added integration tests and moved to codeception 2.1","user":{"login":"javigomez","id":1375475,"avatar_url":"https://avatars.githubusercontent.com/u/1375475?v=3","gravatar_id":"","url":"https://api.github.com/users/javigomez","html_url":"https://github.com/javigomez","followers_url":"https://api.github.com/users/javigomez/followers","following_url":"https://api.github.com/users/javigomez/following{/other_user}","gists_url":"https://api.github.com/users/javigomez/gists{/gist_id}","starred_url":"https://api.github.com/users/javigomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javigomez/subscriptions","organizations_url":"https://api.github.com/users/javigomez/orgs","repos_url":"https://api.github.com/users/javigomez/repos","events_url":"https://api.github.com/users/javigomez/events{/privacy}","received_events_url":"https://api.github.com/users/javigomez/received_events","type":"User","site_admin":false},"body":"This is a clean version of pull #94 \r\n\r\ncloses #94 ","created_at":"2015-09-30T17:30:58Z","updated_at":"2015-09-30T17:50:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"893b1d48bfc6cbf08d6821e0fae3e77e19cb7689","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/joomla-extensions/weblinks/pulls/96/commits","review_comments_url":"https://api.github.com/repos/joomla-extensions/weblinks/pulls/96/comments","review_comment_url":"https://api.github.com/repos/joomla-extensions/weblinks/pulls/comments{/number}","comments_url":"https://api.github.com/repos/joomla-extensions/weblinks/issues/96/comments","statuses_url":"https://api.github.com/repos/joomla-extensions/weblinks/statuses/a0d68ab93bf5f0785218f7fb464a8d5988969f25","head":{"label":"javigomez:frontendtests","ref":"frontendtests","sha":"a0d68ab93bf5f0785218f7fb464a8d5988969f25","user":{"login":"javigomez","id":1375475,"avatar_url":"https://avatars.githubusercontent.com/u/1375475?v=3","gravatar_id":"","url":"https://api.github.com/users/javigomez","html_url":"https://github.com/javigomez","followers_url":"https://api.github.com/users/javigomez/followers","following_url":"https://api.github.com/users/javigomez/following{/other_user}","gists_url":"https://api.github.com/users/javigomez/gists{/gist_id}","starred_url":"https://api.github.com/users/javigomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javigomez/subscriptions","organizations_url":"https://api.github.com/users/javigomez/orgs","repos_url":"https://api.github.com/users/javigomez/repos","events_url":"https://api.github.com/users/javigomez/events{/privacy}","received_events_url":"https://api.github.com/users/javigomez/received_events","type":"User","site_admin":false},"repo":{"id":25260903,"name":"weblinks","full_name":"javigomez/weblinks","owner":{"login":"javigomez","id":1375475,"avatar_url":"https://avatars.githubusercontent.com/u/1375475?v=3","gravatar_id":"","url":"https://api.github.com/users/javigomez","html_url":"https://github.com/javigomez","followers_url":"https://api.github.com/users/javigomez/followers","following_url":"https://api.github.com/users/javigomez/following{/other_user}","gists_url":"https://api.github.com/users/javigomez/gists{/gist_id}","starred_url":"https://api.github.com/users/javigomez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javigomez/subscriptions","organizations_url":"https://api.github.com/users/javigomez/orgs","repos_url":"https://api.github.com/users/javigomez/repos","events_url":"https://api.github.com/users/javigomez/events{/privacy}","received_events_url":"https://api.github.com/users/javigomez/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/javigomez/weblinks","description":"This is a prototype for isolating the Joomla CMS Weblinks suite of extensions and managing it as a standalone extension.","fork":true,"url":"https://api.github.com/repos/javigomez/weblinks","forks_url":"https://api.github.com/repos/javigomez/weblinks/forks","keys_url":"https://api.github.com/repos/javigomez/weblinks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/javigomez/weblinks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/javigomez/weblinks/teams","hooks_url":"https://api.github.com/repos/javigomez/weblinks/hooks","issue_events_url":"https://api.github.com/repos/javigomez/weblinks/issues/events{/number}","events_url":"https://api.github.com/repos/javigomez/weblinks/events","assignees_url":"https://api.github.com/repos/javigomez/weblinks/assignees{/user}","branches_url":"https://api.github.com/repos/javigomez/weblinks/branches{/branch}","tags_url":"https://api.github.com/repos/javigomez/weblinks/tags","blobs_url":"https://api.github.com/repos/javigomez/weblinks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/javigomez/weblinks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/javigomez/weblinks/git/refs{/sha}","trees_url":"https://api.github.com/repos/javigomez/weblinks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/javigomez/weblinks/statuses/{sha}","languages_url":"https://api.github.com/repos/javigomez/weblinks/languages","stargazers_url":"https://api.github.com/repos/javigomez/weblinks/stargazers","contributors_url":"https://api.github.com/repos/javigomez/weblinks/contributors","subscribers_url":"https://api.github.com/repos/javigomez/weblinks/subscribers","subscription_url":"https://api.github.com/repos/javigomez/weblinks/subscription","commits_url":"https://api.github.com/repos/javigomez/weblinks/commits{/sha}","git_commits_url":"https://api.github.com/repos/javigomez/weblinks/git/commits{/sha}","comments_url":"https://api.github.com/repos/javigomez/weblinks/comments{/number}","issue_comment_url":"https://api.github.com/repos/javigomez/weblinks/issues/comments{/number}","contents_url":"https://api.github.com/repos/javigomez/weblinks/contents/{+path}","compare_url":"https://api.github.com/repos/javigomez/weblinks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/javigomez/weblinks/merges","archive_url":"https://api.github.com/repos/javigomez/weblinks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/javigomez/weblinks/downloads","issues_url":"https://api.github.com/repos/javigomez/weblinks/issues{/number}","pulls_url":"https://api.github.com/repos/javigomez/weblinks/pulls{/number}","milestones_url":"https://api.github.com/repos/javigomez/weblinks/milestones{/number}","notifications_url":"https://api.github.com/repos/javigomez/weblinks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/javigomez/weblinks/labels{/name}","releases_url":"https://api.github.com/repos/javigomez/weblinks/releases{/id}","created_at":"2014-10-15T15:27:40Z","updated_at":"2015-06-11T14:54:00Z","pushed_at":"2015-09-30T17:30:29Z","git_url":"git://github.com/javigomez/weblinks.git","ssh_url":"git@github.com:javigomez/weblinks.git","clone_url":"https://github.com/javigomez/weblinks.git","svn_url":"https://github.com/javigomez/weblinks","homepage":null,"size":340,"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":"master"}},"base":{"label":"joomla-extensions:master","ref":"master","sha":"88d25172ca8175b6f90285ed4aab4bf63357fbf4","user":{"login":"joomla-extensions","id":6154991,"avatar_url":"https://avatars.githubusercontent.com/u/6154991?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla-extensions","html_url":"https://github.com/joomla-extensions","followers_url":"https://api.github.com/users/joomla-extensions/followers","following_url":"https://api.github.com/users/joomla-extensions/following{/other_user}","gists_url":"https://api.github.com/users/joomla-extensions/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla-extensions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla-extensions/subscriptions","organizations_url":"https://api.github.com/users/joomla-extensions/orgs","repos_url":"https://api.github.com/users/joomla-extensions/repos","events_url":"https://api.github.com/users/joomla-extensions/events{/privacy}","received_events_url":"https://api.github.com/users/joomla-extensions/received_events","type":"Organization","site_admin":false},"repo":{"id":16672606,"name":"weblinks","full_name":"joomla-extensions/weblinks","owner":{"login":"joomla-extensions","id":6154991,"avatar_url":"https://avatars.githubusercontent.com/u/6154991?v=3","gravatar_id":"","url":"https://api.github.com/users/joomla-extensions","html_url":"https://github.com/joomla-extensions","followers_url":"https://api.github.com/users/joomla-extensions/followers","following_url":"https://api.github.com/users/joomla-extensions/following{/other_user}","gists_url":"https://api.github.com/users/joomla-extensions/gists{/gist_id}","starred_url":"https://api.github.com/users/joomla-extensions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joomla-extensions/subscriptions","organizations_url":"https://api.github.com/users/joomla-extensions/orgs","repos_url":"https://api.github.com/users/joomla-extensions/repos","events_url":"https://api.github.com/users/joomla-extensions/events{/privacy}","received_events_url":"https://api.github.com/users/joomla-extensions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/joomla-extensions/weblinks","description":"This repo is meant to hold the decoupled com_weblinks component and related code.","fork":false,"url":"https://api.github.com/repos/joomla-extensions/weblinks","forks_url":"https://api.github.com/repos/joomla-extensions/weblinks/forks","keys_url":"https://api.github.com/repos/joomla-extensions/weblinks/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joomla-extensions/weblinks/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joomla-extensions/weblinks/teams","hooks_url":"https://api.github.com/repos/joomla-extensions/weblinks/hooks","issue_events_url":"https://api.github.com/repos/joomla-extensions/weblinks/issues/events{/number}","events_url":"https://api.github.com/repos/joomla-extensions/weblinks/events","assignees_url":"https://api.github.com/repos/joomla-extensions/weblinks/assignees{/user}","branches_url":"https://api.github.com/repos/joomla-extensions/weblinks/branches{/branch}","tags_url":"https://api.github.com/repos/joomla-extensions/weblinks/tags","blobs_url":"https://api.github.com/repos/joomla-extensions/weblinks/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joomla-extensions/weblinks/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joomla-extensions/weblinks/git/refs{/sha}","trees_url":"https://api.github.com/repos/joomla-extensions/weblinks/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joomla-extensions/weblinks/statuses/{sha}","languages_url":"https://api.github.com/repos/joomla-extensions/weblinks/languages","stargazers_url":"https://api.github.com/repos/joomla-extensions/weblinks/stargazers","contributors_url":"https://api.github.com/repos/joomla-extensions/weblinks/contributors","subscribers_url":"https://api.github.com/repos/joomla-extensions/weblinks/subscribers","subscription_url":"https://api.github.com/repos/joomla-extensions/weblinks/subscription","commits_url":"https://api.github.com/repos/joomla-extensions/weblinks/commits{/sha}","git_commits_url":"https://api.github.com/repos/joomla-extensions/weblinks/git/commits{/sha}","comments_url":"https://api.github.com/repos/joomla-extensions/weblinks/comments{/number}","issue_comment_url":"https://api.github.com/repos/joomla-extensions/weblinks/issues/comments{/number}","contents_url":"https://api.github.com/repos/joomla-extensions/weblinks/contents/{+path}","compare_url":"https://api.github.com/repos/joomla-extensions/weblinks/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joomla-extensions/weblinks/merges","archive_url":"https://api.github.com/repos/joomla-extensions/weblinks/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joomla-extensions/weblinks/downloads","issues_url":"https://api.github.com/repos/joomla-extensions/weblinks/issues{/number}","pulls_url":"https://api.github.com/repos/joomla-extensions/weblinks/pulls{/number}","milestones_url":"https://api.github.com/repos/joomla-extensions/weblinks/milestones{/number}","notifications_url":"https://api.github.com/repos/joomla-extensions/weblinks/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joomla-extensions/weblinks/labels{/name}","releases_url":"https://api.github.com/repos/joomla-extensions/weblinks/releases{/id}","created_at":"2014-02-09T18:40:10Z","updated_at":"2015-09-23T07:57:23Z","pushed_at":"2015-09-30T17:30:58Z","git_url":"git://github.com/joomla-extensions/weblinks.git","ssh_url":"git@github.com:joomla-extensions/weblinks.git","clone_url":"https://github.com/joomla-extensions/weblinks.git","svn_url":"https://github.com/joomla-extensions/weblinks","homepage":"","size":1150,"stargazers_count":13,"watchers_count":13,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":15,"forks":31,"open_issues":15,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/joomla-extensions/weblinks/pulls/96"},"html":{"href":"https://github.com/joomla-extensions/weblinks/pull/96"},"issue":{"href":"https://api.github.com/repos/joomla-extensions/weblinks/issues/96"},"comments":{"href":"https://api.github.com/repos/joomla-extensions/weblinks/issues/96/comments"},"review_comments":{"href":"https://api.github.com/repos/joomla-extensions/weblinks/pulls/96/comments"},"review_comment":{"href":"https://api.github.com/repos/joomla-extensions/weblinks/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/joomla-extensions/weblinks/pulls/96/commits"},"statuses":{"href":"https://api.github.com/repos/joomla-extensions/weblinks/statuses/a0d68ab93bf5f0785218f7fb464a8d5988969f25"}}}}