diff --git a/plugins/mezuro/features/project.feature b/plugins/mezuro/features/project.feature index 015681c..d9f8190 100644 --- a/plugins/mezuro/features/project.feature +++ b/plugins/mezuro/features/project.feature @@ -19,6 +19,7 @@ Feature: Project Then I should see "Title" And I should see "Description" + @kalibro_restart Scenario: I create a Mezuro project with valid attributes Given I am on mycommunity's control panel When I create a Mezuro project with the following data @@ -35,6 +36,7 @@ Feature: Project When I press "Save" Then I should see "Title can't be blank" + @kalibro_restart Scenario: I try to create a Mezuro project with title already in use Given I have a Mezuro project with the following data | name | Sample Project | @@ -46,27 +48,25 @@ Feature: Project | Description | Sample Description | Then I should see "Slug The title (article name) is already being used by another article, please use another title." - @selenium + @selenium @kalibro_restart Scenario: I see a Mezuro project edit form Given I have a Mezuro project with the following data | name | Sample Project | | description | Sample Description | | community | mycommunity | And I am on article "Sample Project" - And I should be on /mycommunity/sample-project When I follow "Edit" Then I should see "Sample Project" in the "article_name" input And I should see "Sample Description" in the "article_description" input And I should see "Save" button - @selenium + @selenium @kalibro_restart Scenario: I edit a Mezuro project with valid attributes Given I have a Mezuro project with the following data | name | Sample Project | | description | Sample Description | | community | mycommunity | And I am on article "Sample Project" - And I should be on /mycommunity/sample-project And I follow "Edit" When I fill the fields with the new following data | article_name | Another Project | @@ -76,20 +76,19 @@ Feature: Project And I should see "Another Description" And I should see "Add Repository" - @selenium + @selenium @kalibro_restart Scenario: I try to edit a Mezuro project leaving empty its title Given I have a Mezuro project with the following data | name | Sample Project | | description | Sample Description | | community | mycommunity | And I am on article "Sample Project" - And I should be on /mycommunity/sample-project And I follow "Edit" When I erase the "article_name" field And I press "Save" Then I should see "Title can't be blank" - @selenium + @selenium @kalibro_restart Scenario: I try to edit a Mezuro project with title of an existing Mezuro Project Given I have a Mezuro project with the following data | name | Sample Project | @@ -100,7 +99,6 @@ Feature: Project | description | Another Description | | community | mycommunity | And I am on article "Sample Project" - And I should be on /mycommunity/sample-project And I follow "Edit" When I fill the fields with the new following data | article_name | Another Project | @@ -108,20 +106,19 @@ Feature: Project And I press "Save" Then I should see "Slug The title (article name) is already being used by another article, please use another title." - @selenium + @selenium @kalibro_restart Scenario: I delete a Mezuro project that belongs to me Given I have a Mezuro project with the following data | name | Sample Project | | description | Sample Description | | community | mycommunity | And I am on article "Sample Project" - And I should be on /mycommunity/sample-project When I follow "Delete" And I confirm the "Are you sure that you want to remove the item "Sample Project"?" dialog Then I go to /mycommunity/sample-project And I should see "There is no such page: /mycommunity/sample-project" - @selenium + @selenium @kalibro_restart Scenario: I cannot edit or delete a Mezuro project that doesn't belong to me Given I have a Mezuro project with the following data | name | Sample Project | @@ -132,7 +129,6 @@ Feature: Project | user | User | And I am logged in as "user" When I am on article "Sample Project" - And I should be on /mycommunity/sample-project Then I should not see "Delete" And I should not see "Edit" diff --git a/plugins/mezuro/features/reading_group.feature b/plugins/mezuro/features/reading_group.feature index 81d3d53..c466a01 100644 --- a/plugins/mezuro/features/reading_group.feature +++ b/plugins/mezuro/features/reading_group.feature @@ -15,6 +15,7 @@ Feature: Reading Group Then I should see "Title" And I should see "Description" + @kalibro_restart Scenario: I create a Mezuro reading group with valid attributes Given I am on joaosilva's control panel When I create a Mezuro reading group with the following data @@ -32,6 +33,7 @@ Feature: Reading Group When I press "Save" Then I should see "Title can't be blank" + @kalibro_restart Scenario: I try to create a Mezuro reading group with title already in use Given I have a Mezuro reading group with the following data | name | Sample Reading group | @@ -43,27 +45,25 @@ Feature: Reading Group | Description | Sample Description | Then I should see "Slug The title (article name) is already being used by another article, please use another title." -@selenium + @selenium @kalibro_restart Scenario: I see a Mezuro reading group edit form Given I have a Mezuro reading group with the following data | name | Sample Reading group | | description | Sample Description | | user | joaosilva | And I am on article "Sample Reading group" - And I should be on /joaosilva/sample-reading-group When I follow "Edit" Then I should see "Sample Reading group" in the "article_name" input And I should see "Sample Description" in the "article_description" input And I should see "Save" button -@selenium + @selenium @kalibro_restart Scenario: I edit a Mezuro reading group with valid attributes Given I have a Mezuro reading group with the following data | name | Sample Reading group | | description | Sample Description | | user | joaosilva | And I am on article "Sample Reading group" - And I should be on /joaosilva/sample-reading-group And I follow "Edit" When I fill the fields with the new following data | article_name | Another Reading group | @@ -73,20 +73,19 @@ Feature: Reading Group And I should see "Another Description" And I should see "Add Reading" -@selenium + @selenium @kalibro_restart Scenario: I try to edit a Mezuro reading group leaving empty its title Given I have a Mezuro reading group with the following data | name | Sample Reading group | | description | Sample Description | | user | joaosilva | And I am on article "Sample Reading group" - And I should be on /joaosilva/sample-reading-group And I follow "Edit" When I erase the "article_name" field And I press "Save" Then I should see "Title can't be blank" -@selenium + @selenium @kalibro_restart Scenario: I try to edit a Mezuro reading group with title of an existing Mezuro Reading group Given I have a Mezuro reading group with the following data | name | Sample Reading group | @@ -97,7 +96,6 @@ Feature: Reading Group | description | Another Description | | user | joaosilva | And I am on article "Sample Reading group" - And I should be on /joaosilva/sample-reading-group And I follow "Edit" When I fill the fields with the new following data | article_name | Another Reading group | @@ -105,20 +103,19 @@ Feature: Reading Group And I press "Save" Then I should see "Slug The title (article name) is already being used by another article, please use another title." -@selenium + @selenium @kalibro_restart Scenario: I delete a Mezuro reading group that belongs to me Given I have a Mezuro reading group with the following data | name | Sample Reading group | | description | Sample Description | | user | joaosilva | And I am on article "Sample Reading group" - And I should be on /joaosilva/sample-reading-group When I follow "Delete" And I confirm the "Are you sure that you want to remove the item "Sample Reading group"?" dialog Then I go to /joaosilva/sample-reading-group And I should see "There is no such page: /joaosilva/sample-reading-group" -@selenium + @selenium @kalibro_restart Scenario: I cannot edit or delete a Mezuro reading group that doesn't belong to me Given I have a Mezuro reading group with the following data | name | Sample Reading group | @@ -129,7 +126,6 @@ Feature: Reading Group | adminuser | Admin | And I am logged in as "adminuser" When I am on article "Sample Reading group" - And I should be on /joaosilva/sample-reading-group Then I should not see "Delete" And I should not see "Edit" -- libgit2 0.21.2