{"action":"created","issue":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/6285","labels_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6285/labels{/name}","comments_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6285/comments","events_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6285/events","html_url":"https://github.com/joomla/joomla-cms/issues/6285","id":59684725,"number":6285,"title":"[tests] Find a solution for read System Messages from System Tests","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},"labels":[{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/No%20Code%20Attached%20Yet","name":"No Code Attached Yet","color":"ededed"},{"url":"https://api.github.com/repos/joomla/joomla-cms/labels/Unit/System%20Tests","name":"Unit/System Tests","color":"5319e7"}],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/joomla/joomla-cms/milestones/7","html_url":"https://github.com/joomla/joomla-cms/milestones/Joomla!%203.5.0","labels_url":"https://api.github.com/repos/joomla/joomla-cms/milestones/7/labels","id":944889,"number":7,"title":"Joomla! 3.5.0","description":"","creator":{"login":"rdeutz","id":467356,"avatar_url":"https://avatars.githubusercontent.com/u/467356?v=3","gravatar_id":"","url":"https://api.github.com/users/rdeutz","html_url":"https://github.com/rdeutz","followers_url":"https://api.github.com/users/rdeutz/followers","following_url":"https://api.github.com/users/rdeutz/following{/other_user}","gists_url":"https://api.github.com/users/rdeutz/gists{/gist_id}","starred_url":"https://api.github.com/users/rdeutz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rdeutz/subscriptions","organizations_url":"https://api.github.com/users/rdeutz/orgs","repos_url":"https://api.github.com/users/rdeutz/repos","events_url":"https://api.github.com/users/rdeutz/events{/privacy}","received_events_url":"https://api.github.com/users/rdeutz/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":1,"state":"open","created_at":"2015-01-21T08:12:44Z","updated_at":"2015-03-03T18:35:06Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2015-03-03T18:35:06Z","updated_at":"2015-03-04T00:32:40Z","closed_at":null,"body":"Currently the markup for messages in administrator looks like:\r\n\r\n```html\r\n<div class=\"alert alert-success\">\r\n\t<h4 class=\"alert-heading\">Message</h4>\r\n\t<p>Configuration successfully saved.</p>\r\n</div>\r\n```\r\n\r\n![screen shot 2015-03-03 at 19 34 44](https://cloud.githubusercontent.com/assets/1375475/6469328/c1d56e30-c1db-11e4-9649-c17cd91c9c46.png)\r\n\r\n\r\nThere is no easy way with Codeception and Selenium to place a locator for the message in the assertion:\r\n\r\n```php\r\n$I->see('Configuration successfully saved.' );\r\n// $I->waitForText('Configuration successfully saved.', 10, '.page-title');\r\n// $I->see('Configuration successfully saved.','h3');\r\n// $I->see('Configuration successfully saved.','#messages'); // with XPath\r\n// $I->see('Configuration successfully saved.','.message'); // with XPath\r\n```\r\n\r\nWe could probably add a css class to the messages because missing a xPath locator affects dramatically the performance of the test (see: https://docs.joomla.org/Testing_Joomla_Extensions_with_Codeception#Always_add_xPath_locators_to_your_tests) \r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/joomla/joomla-cms/issues/comments/77073353","html_url":"https://github.com/joomla/joomla-cms/issues/6285#issuecomment-77073353","issue_url":"https://api.github.com/repos/joomla/joomla-cms/issues/6285","id":77073353,"user":{"login":"pbwebdev","id":3688954,"avatar_url":"https://avatars.githubusercontent.com/u/3688954?v=3","gravatar_id":"","url":"https://api.github.com/users/pbwebdev","html_url":"https://github.com/pbwebdev","followers_url":"https://api.github.com/users/pbwebdev/followers","following_url":"https://api.github.com/users/pbwebdev/following{/other_user}","gists_url":"https://api.github.com/users/pbwebdev/gists{/gist_id}","starred_url":"https://api.github.com/users/pbwebdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pbwebdev/subscriptions","organizations_url":"https://api.github.com/users/pbwebdev/orgs","repos_url":"https://api.github.com/users/pbwebdev/repos","events_url":"https://api.github.com/users/pbwebdev/events{/privacy}","received_events_url":"https://api.github.com/users/pbwebdev/received_events","type":"User","site_admin":false},"created_at":"2015-03-04T00:32:40Z","updated_at":"2015-03-04T00:32:40Z","body":"Not 100% sure but it might be worth adding in an alert tag as well\r\nhttps://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_alert_role\r\n"}}