Skip to content
This repository was archived by the owner on Mar 17, 2020. It is now read-only.

Conversation

javigomez
Copy link
Contributor

This pull is #26 with conflicts resolved.

@javigomez
Copy link
Contributor Author

Current log:

Acceptance Tests (5) ---------------------------------------------------------
Modules: JoomlaBrowser, AcceptanceHelper, Asserts
------------------------------------------------------------------------------
content: Create an Article
Signature: content:Create an Article
Test: tests/acceptance/content.feature:Create an Article
Scenario --
 In order to manage content article in the web
 As an owner
 I need to create modify trash publish and Unpublish content article
 Given joomla cms is installed 
 When login into joomla administrator with username "admin" and password "admin" 
   I am on page "administrator/"
  [GET] http://joomla.box/repos/gsoc16_browser-automated-tests/tests/joomla-cms3/administrator/
   I fill field {"css":"input[data-tests=\"username\"]"},"admin"
   I fill field {"css":"input[data-tests=\"password\"]"},"admin"
   I click {"css":"button[data-tests=\"log in\"]"}
 Then i see administrator dashboard 
   I wait for text "Control Panel",4,{"class":"page-title"}
 Given there is a add content link 
   I am on page "/administrator/index.php?option=com_content&view=articles"
  [GET] http://joomla.box/repos/gsoc16_browser-automated-tests/tests/joomla-cms3/administrator/index.php?option=com_content&view=articles
   I get suite configuration 
   I click {"xpath":"\/\/div[@id='toolbar-new']\/\/button"}
 When i create new content with field title as "my_article" and content as a "this is my first article" 
   I fill field {"id":"jform_title"},"My_Article"
   I click "Toggle editor"
   I fill field {"id":"jform_articletext"},"This is my first article"
 And i save an article 
   I get suite configuration 
   I click {"xpath":"\/\/div[@id='toolbar-apply']\/\/button"}
 Then i should see the "article successfully saved." message 
   I wait for text "Articles",60,{"class":"page-title"}
   I see "Article successfully saved.",{"id":"system-message-container"}
 PASSED 

content: Feature an Article
Signature: content:Feature an Article
Test: tests/acceptance/content.feature:Feature an Article
Scenario --
 In order to manage content article in the web
 As an owner
 I need to create modify trash publish and Unpublish content article
 Given joomla cms is installed 
 When login into joomla administrator with username "admin" and password "admin" 
   I am on page "administrator/"
  [GET] http://joomla.box/repos/gsoc16_browser-automated-tests/tests/joomla-cms3/administrator/
   I fill field {"css":"input[data-tests=\"username\"]"},"admin"
   I fill field {"css":"input[data-tests=\"password\"]"},"admin"
   I click {"css":"button[data-tests=\"log in\"]"}
 Then i see administrator dashboard 
   I wait for text "Control Panel",4,{"class":"page-title"}
 Given i search and select content article with title "my_article" 
   I am on page "/administrator/index.php?option=com_content&view=articles"
  [GET] http://joomla.box/repos/gsoc16_browser-automated-tests/tests/joomla-cms3/administrator/index.php?option=com_content&view=articles
   I fill field {"id":"filter_search"},"My_Article"
   I click {"class":"icon-search"}
   Selecting Checkall button
   I click {"xpath":"\/\/thead\/\/input[@name='checkall-toggle' or @name='...}
 When i featured the article 
   I get suite configuration 
   I click {"xpath":"\/\/div[@id='toolbar-featured']\/\/button"}
 Then i save and see the "1 article featured." message 
   I wait for text "Articles",60,{"class":"page-title"}
   I see "1 article featured.",{"id":"system-message-container"}
 PASSED 

content: Modify an article
Signature: content:Modify an article
Test: tests/acceptance/content.feature:Modify an article
Scenario --
 In order to manage content article in the web
 As an owner
 I need to create modify trash publish and Unpublish content article
 Given joomla cms is installed 
 When login into joomla administrator with username "admin" and password "admin" 
   I am on page "administrator/"
  [GET] http://joomla.box/repos/gsoc16_browser-automated-tests/tests/joomla-cms3/administrator/
   I fill field {"css":"input[data-tests=\"username\"]"},"admin"
   I fill field {"css":"input[data-tests=\"password\"]"},"admin"
   I click {"css":"button[data-tests=\"log in\"]"}
 Then i see administrator dashboard 
   I wait for text "Control Panel",4,{"class":"page-title"}
 Given i select the content article with title "my_article" 
   I am on page "/administrator/index.php?option=com_content&view=articles"
  [GET] http://joomla.box/repos/gsoc16_browser-automated-tests/tests/joomla-cms3/administrator/index.php?option=com_content&view=articles
   I fill field {"id":"filter_search"},"My_Article"
   I click {"class":"icon-search"}
   Selecting Checkall button
   I click {"xpath":"\/\/thead\/\/input[@name='checkall-toggle' or @name='...}
   I get suite configuration 
   I click {"xpath":"\/\/div[@id='toolbar-edit']\/\/button"}
 And i set access level as a "registered" 
   I open the jform_access_chzn chosen selector
   I click {"xpath":"\/\/div[@id='jform_access_chzn']\/a\/div\/b"}
   I select Registered
   I click {"xpath":"\/\/div[@id='jform_access_chzn']\/\/li[text()='Regist...}
   I wait 1
 When i save the article 
   I get suite configuration 
   I click {"xpath":"\/\/div[@id='toolbar-save']\/\/button"}
 Then i should see the "article successfully saved" message 
   I wait for text "Articles",60,{"class":"page-title"}
   I see "Article successfully saved",{"id":"system-message-container"}
 PASSED 

content: Unpublish an article
Signature: content:Unpublish an article
Test: tests/acceptance/content.feature:Unpublish an article
Scenario --
 In order to manage content article in the web
 As an owner
 I need to create modify trash publish and Unpublish content article
 Given joomla cms is installed 
 When login into joomla administrator with username "admin" and password "admin" 
   I am on page "administrator/"
  [GET] http://joomla.box/repos/gsoc16_browser-automated-tests/tests/joomla-cms3/administrator/
   I fill field {"css":"input[data-tests=\"username\"]"},"admin"
   I fill field {"css":"input[data-tests=\"password\"]"},"admin"
   I click {"css":"button[data-tests=\"log in\"]"}
 Then i see administrator dashboard 
   I wait for text "Control Panel",4,{"class":"page-title"}
 Given i have article with name "my_article" 
   I am on page "/administrator/index.php?option=com_content&view=articles"
  [GET] http://joomla.box/repos/gsoc16_browser-automated-tests/tests/joomla-cms3/administrator/index.php?option=com_content&view=articles
   I fill field {"id":"filter_search"},"My_Article"
   I click {"class":"icon-search"}
   Selecting Checkall button
   I click {"xpath":"\/\/thead\/\/input[@name='checkall-toggle' or @name='...}
 When i unpublish the article 
   I get suite configuration 
   I click {"xpath":"\/\/div[@id='toolbar-unpublish']\/\/button"}
 Then i see article unpublish message "1 article unpublished." 
   I wait for text "Articles",60,{"class":"page-title"}
   I see "1 article unpublished.",{"id":"system-message-container"}
 PASSED 

content: Trash an article
Signature: content:Trash an article
Test: tests/acceptance/content.feature:Trash an article
Scenario --
 In order to manage content article in the web
 As an owner
 I need to create modify trash publish and Unpublish content article
 Given joomla cms is installed 
 When login into joomla administrator with username "admin" and password "admin" 
   I am on page "administrator/"
  [GET] http://joomla.box/repos/gsoc16_browser-automated-tests/tests/joomla-cms3/administrator/
   I fill field {"css":"input[data-tests=\"username\"]"},"admin"
   I fill field {"css":"input[data-tests=\"password\"]"},"admin"
   I click {"css":"button[data-tests=\"log in\"]"}
 Then i see administrator dashboard 
   I wait for text "Control Panel",4,{"class":"page-title"}
 Given i have "my_article" content article which needs to be trash 
   I am on page "/administrator/index.php?option=com_content&view=articles"
  [GET] http://joomla.box/repos/gsoc16_browser-automated-tests/tests/joomla-cms3/administrator/index.php?option=com_content&view=articles
   I fill field {"id":"filter_search"},"My_Article"
   I click {"class":"icon-search"}
   Selecting Checkall button
   I click {"xpath":"\/\/thead\/\/input[@name='checkall-toggle' or @name='...}
 When i trash the article 
   I get suite configuration 
   I click {"xpath":"\/\/div[@id='toolbar-trash']\/\/button"}
 Then i see article trash message "1 article trashed." 
   I wait for text "Articles",60,{"class":"page-title"}
   I see "1 article trashed.",{"id":"system-message-container"}
 PASSED 

------------------------------------------------------------------------------


Time: 27.8 seconds, Memory: 15.75MB

OK (5 tests, 5 assertions)

@javigomez javigomez merged commit 537b559 into joomla-projects:staging Jun 23, 2016
yvesh pushed a commit that referenced this pull request Jun 17, 2017
* codestyle

* code style

* codestyle

* codestyle

* codestyle

* thanks @wojsmol

* corrections - thanks @Quy

* corrections - thanks @Quy

* oops

* make @Quy happy

* Update article.xml

* Remove space

* Update config.xml (#14)

* Update filter.xml (#15)

* Update config.xml (#16)

* Update profile.xml (#17)

* Update application.xml (#18)

* Update article.xml (#19)

* Update filter_articles.xml (#20)

* Update config.xml (#24)

* Update config.xml (#23)

* Update filter_fields.xml (#22)

* Update filter_featured.xml (#21)

* Update override.xml (#25)

* Update config.xml

* Update config.xml (#26)

* Update itemadmin_alias.xml (#30)

* Update itemadmin.xml (#29)

* Update item.xml (#27)

* Update item_alias.xml (#28)

* Update itemadmin_url.xml (#31)

* Update module.xml (#32)

* Update plugin.xml (#33)

* Update config.xml (#34)

* Update link.xml (#35)

* Update config.xml (#36)

* Update style.xml (#38)

* Update config.xml (#37)

* Update note.xml (#42)

* Update group.xml (#41)

* Update filter_debuggroup.xml (#40)

* Update config.xml (#39)

* corrections for @andrepereiradasilva

* gotya
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants