Commit e8569682a346e594fdbcef4c494da1a00595ce7c
Committed by
Paulo Meireles
1 parent
5191583f
Exists in
master
and in
29 other branches
[Mezuro] Fixed project and reading group features.
Showing
2 changed files
with
16 additions
and
24 deletions
Show diff stats
plugins/mezuro/features/project.feature
| @@ -19,6 +19,7 @@ Feature: Project | @@ -19,6 +19,7 @@ Feature: Project | ||
| 19 | Then I should see "Title" | 19 | Then I should see "Title" |
| 20 | And I should see "Description" | 20 | And I should see "Description" |
| 21 | 21 | ||
| 22 | + @kalibro_restart | ||
| 22 | Scenario: I create a Mezuro project with valid attributes | 23 | Scenario: I create a Mezuro project with valid attributes |
| 23 | Given I am on mycommunity's control panel | 24 | Given I am on mycommunity's control panel |
| 24 | When I create a Mezuro project with the following data | 25 | When I create a Mezuro project with the following data |
| @@ -35,6 +36,7 @@ Feature: Project | @@ -35,6 +36,7 @@ Feature: Project | ||
| 35 | When I press "Save" | 36 | When I press "Save" |
| 36 | Then I should see "Title can't be blank" | 37 | Then I should see "Title can't be blank" |
| 37 | 38 | ||
| 39 | + @kalibro_restart | ||
| 38 | Scenario: I try to create a Mezuro project with title already in use | 40 | Scenario: I try to create a Mezuro project with title already in use |
| 39 | Given I have a Mezuro project with the following data | 41 | Given I have a Mezuro project with the following data |
| 40 | | name | Sample Project | | 42 | | name | Sample Project | |
| @@ -46,27 +48,25 @@ Feature: Project | @@ -46,27 +48,25 @@ Feature: Project | ||
| 46 | | Description | Sample Description | | 48 | | Description | Sample Description | |
| 47 | Then I should see "Slug The title (article name) is already being used by another article, please use another title." | 49 | Then I should see "Slug The title (article name) is already being used by another article, please use another title." |
| 48 | 50 | ||
| 49 | - @selenium | 51 | + @selenium @kalibro_restart |
| 50 | Scenario: I see a Mezuro project edit form | 52 | Scenario: I see a Mezuro project edit form |
| 51 | Given I have a Mezuro project with the following data | 53 | Given I have a Mezuro project with the following data |
| 52 | | name | Sample Project | | 54 | | name | Sample Project | |
| 53 | | description | Sample Description | | 55 | | description | Sample Description | |
| 54 | | community | mycommunity | | 56 | | community | mycommunity | |
| 55 | And I am on article "Sample Project" | 57 | And I am on article "Sample Project" |
| 56 | - And I should be on /mycommunity/sample-project | ||
| 57 | When I follow "Edit" | 58 | When I follow "Edit" |
| 58 | Then I should see "Sample Project" in the "article_name" input | 59 | Then I should see "Sample Project" in the "article_name" input |
| 59 | And I should see "Sample Description" in the "article_description" input | 60 | And I should see "Sample Description" in the "article_description" input |
| 60 | And I should see "Save" button | 61 | And I should see "Save" button |
| 61 | 62 | ||
| 62 | - @selenium | 63 | + @selenium @kalibro_restart |
| 63 | Scenario: I edit a Mezuro project with valid attributes | 64 | Scenario: I edit a Mezuro project with valid attributes |
| 64 | Given I have a Mezuro project with the following data | 65 | Given I have a Mezuro project with the following data |
| 65 | | name | Sample Project | | 66 | | name | Sample Project | |
| 66 | | description | Sample Description | | 67 | | description | Sample Description | |
| 67 | | community | mycommunity | | 68 | | community | mycommunity | |
| 68 | And I am on article "Sample Project" | 69 | And I am on article "Sample Project" |
| 69 | - And I should be on /mycommunity/sample-project | ||
| 70 | And I follow "Edit" | 70 | And I follow "Edit" |
| 71 | When I fill the fields with the new following data | 71 | When I fill the fields with the new following data |
| 72 | | article_name | Another Project | | 72 | | article_name | Another Project | |
| @@ -76,20 +76,19 @@ Feature: Project | @@ -76,20 +76,19 @@ Feature: Project | ||
| 76 | And I should see "Another Description" | 76 | And I should see "Another Description" |
| 77 | And I should see "Add Repository" | 77 | And I should see "Add Repository" |
| 78 | 78 | ||
| 79 | - @selenium | 79 | + @selenium @kalibro_restart |
| 80 | Scenario: I try to edit a Mezuro project leaving empty its title | 80 | Scenario: I try to edit a Mezuro project leaving empty its title |
| 81 | Given I have a Mezuro project with the following data | 81 | Given I have a Mezuro project with the following data |
| 82 | | name | Sample Project | | 82 | | name | Sample Project | |
| 83 | | description | Sample Description | | 83 | | description | Sample Description | |
| 84 | | community | mycommunity | | 84 | | community | mycommunity | |
| 85 | And I am on article "Sample Project" | 85 | And I am on article "Sample Project" |
| 86 | - And I should be on /mycommunity/sample-project | ||
| 87 | And I follow "Edit" | 86 | And I follow "Edit" |
| 88 | When I erase the "article_name" field | 87 | When I erase the "article_name" field |
| 89 | And I press "Save" | 88 | And I press "Save" |
| 90 | Then I should see "Title can't be blank" | 89 | Then I should see "Title can't be blank" |
| 91 | 90 | ||
| 92 | - @selenium | 91 | + @selenium @kalibro_restart |
| 93 | Scenario: I try to edit a Mezuro project with title of an existing Mezuro Project | 92 | Scenario: I try to edit a Mezuro project with title of an existing Mezuro Project |
| 94 | Given I have a Mezuro project with the following data | 93 | Given I have a Mezuro project with the following data |
| 95 | | name | Sample Project | | 94 | | name | Sample Project | |
| @@ -100,7 +99,6 @@ Feature: Project | @@ -100,7 +99,6 @@ Feature: Project | ||
| 100 | | description | Another Description | | 99 | | description | Another Description | |
| 101 | | community | mycommunity | | 100 | | community | mycommunity | |
| 102 | And I am on article "Sample Project" | 101 | And I am on article "Sample Project" |
| 103 | - And I should be on /mycommunity/sample-project | ||
| 104 | And I follow "Edit" | 102 | And I follow "Edit" |
| 105 | When I fill the fields with the new following data | 103 | When I fill the fields with the new following data |
| 106 | | article_name | Another Project | | 104 | | article_name | Another Project | |
| @@ -108,20 +106,19 @@ Feature: Project | @@ -108,20 +106,19 @@ Feature: Project | ||
| 108 | And I press "Save" | 106 | And I press "Save" |
| 109 | Then I should see "Slug The title (article name) is already being used by another article, please use another title." | 107 | Then I should see "Slug The title (article name) is already being used by another article, please use another title." |
| 110 | 108 | ||
| 111 | - @selenium | 109 | + @selenium @kalibro_restart |
| 112 | Scenario: I delete a Mezuro project that belongs to me | 110 | Scenario: I delete a Mezuro project that belongs to me |
| 113 | Given I have a Mezuro project with the following data | 111 | Given I have a Mezuro project with the following data |
| 114 | | name | Sample Project | | 112 | | name | Sample Project | |
| 115 | | description | Sample Description | | 113 | | description | Sample Description | |
| 116 | | community | mycommunity | | 114 | | community | mycommunity | |
| 117 | And I am on article "Sample Project" | 115 | And I am on article "Sample Project" |
| 118 | - And I should be on /mycommunity/sample-project | ||
| 119 | When I follow "Delete" | 116 | When I follow "Delete" |
| 120 | And I confirm the "Are you sure that you want to remove the item "Sample Project"?" dialog | 117 | And I confirm the "Are you sure that you want to remove the item "Sample Project"?" dialog |
| 121 | Then I go to /mycommunity/sample-project | 118 | Then I go to /mycommunity/sample-project |
| 122 | And I should see "There is no such page: /mycommunity/sample-project" | 119 | And I should see "There is no such page: /mycommunity/sample-project" |
| 123 | 120 | ||
| 124 | - @selenium | 121 | + @selenium @kalibro_restart |
| 125 | Scenario: I cannot edit or delete a Mezuro project that doesn't belong to me | 122 | Scenario: I cannot edit or delete a Mezuro project that doesn't belong to me |
| 126 | Given I have a Mezuro project with the following data | 123 | Given I have a Mezuro project with the following data |
| 127 | | name | Sample Project | | 124 | | name | Sample Project | |
| @@ -132,7 +129,6 @@ Feature: Project | @@ -132,7 +129,6 @@ Feature: Project | ||
| 132 | | user | User | | 129 | | user | User | |
| 133 | And I am logged in as "user" | 130 | And I am logged in as "user" |
| 134 | When I am on article "Sample Project" | 131 | When I am on article "Sample Project" |
| 135 | - And I should be on /mycommunity/sample-project | ||
| 136 | Then I should not see "Delete" | 132 | Then I should not see "Delete" |
| 137 | And I should not see "Edit" | 133 | And I should not see "Edit" |
| 138 | 134 |
plugins/mezuro/features/reading_group.feature
| @@ -15,6 +15,7 @@ Feature: Reading Group | @@ -15,6 +15,7 @@ Feature: Reading Group | ||
| 15 | Then I should see "Title" | 15 | Then I should see "Title" |
| 16 | And I should see "Description" | 16 | And I should see "Description" |
| 17 | 17 | ||
| 18 | + @kalibro_restart | ||
| 18 | Scenario: I create a Mezuro reading group with valid attributes | 19 | Scenario: I create a Mezuro reading group with valid attributes |
| 19 | Given I am on joaosilva's control panel | 20 | Given I am on joaosilva's control panel |
| 20 | When I create a Mezuro reading group with the following data | 21 | When I create a Mezuro reading group with the following data |
| @@ -32,6 +33,7 @@ Feature: Reading Group | @@ -32,6 +33,7 @@ Feature: Reading Group | ||
| 32 | When I press "Save" | 33 | When I press "Save" |
| 33 | Then I should see "Title can't be blank" | 34 | Then I should see "Title can't be blank" |
| 34 | 35 | ||
| 36 | + @kalibro_restart | ||
| 35 | Scenario: I try to create a Mezuro reading group with title already in use | 37 | Scenario: I try to create a Mezuro reading group with title already in use |
| 36 | Given I have a Mezuro reading group with the following data | 38 | Given I have a Mezuro reading group with the following data |
| 37 | | name | Sample Reading group | | 39 | | name | Sample Reading group | |
| @@ -43,27 +45,25 @@ Feature: Reading Group | @@ -43,27 +45,25 @@ Feature: Reading Group | ||
| 43 | | Description | Sample Description | | 45 | | Description | Sample Description | |
| 44 | Then I should see "Slug The title (article name) is already being used by another article, please use another title." | 46 | Then I should see "Slug The title (article name) is already being used by another article, please use another title." |
| 45 | 47 | ||
| 46 | -@selenium | 48 | + @selenium @kalibro_restart |
| 47 | Scenario: I see a Mezuro reading group edit form | 49 | Scenario: I see a Mezuro reading group edit form |
| 48 | Given I have a Mezuro reading group with the following data | 50 | Given I have a Mezuro reading group with the following data |
| 49 | | name | Sample Reading group | | 51 | | name | Sample Reading group | |
| 50 | | description | Sample Description | | 52 | | description | Sample Description | |
| 51 | | user | joaosilva | | 53 | | user | joaosilva | |
| 52 | And I am on article "Sample Reading group" | 54 | And I am on article "Sample Reading group" |
| 53 | - And I should be on /joaosilva/sample-reading-group | ||
| 54 | When I follow "Edit" | 55 | When I follow "Edit" |
| 55 | Then I should see "Sample Reading group" in the "article_name" input | 56 | Then I should see "Sample Reading group" in the "article_name" input |
| 56 | And I should see "Sample Description" in the "article_description" input | 57 | And I should see "Sample Description" in the "article_description" input |
| 57 | And I should see "Save" button | 58 | And I should see "Save" button |
| 58 | 59 | ||
| 59 | -@selenium | 60 | + @selenium @kalibro_restart |
| 60 | Scenario: I edit a Mezuro reading group with valid attributes | 61 | Scenario: I edit a Mezuro reading group with valid attributes |
| 61 | Given I have a Mezuro reading group with the following data | 62 | Given I have a Mezuro reading group with the following data |
| 62 | | name | Sample Reading group | | 63 | | name | Sample Reading group | |
| 63 | | description | Sample Description | | 64 | | description | Sample Description | |
| 64 | | user | joaosilva | | 65 | | user | joaosilva | |
| 65 | And I am on article "Sample Reading group" | 66 | And I am on article "Sample Reading group" |
| 66 | - And I should be on /joaosilva/sample-reading-group | ||
| 67 | And I follow "Edit" | 67 | And I follow "Edit" |
| 68 | When I fill the fields with the new following data | 68 | When I fill the fields with the new following data |
| 69 | | article_name | Another Reading group | | 69 | | article_name | Another Reading group | |
| @@ -73,20 +73,19 @@ Feature: Reading Group | @@ -73,20 +73,19 @@ Feature: Reading Group | ||
| 73 | And I should see "Another Description" | 73 | And I should see "Another Description" |
| 74 | And I should see "Add Reading" | 74 | And I should see "Add Reading" |
| 75 | 75 | ||
| 76 | -@selenium | 76 | + @selenium @kalibro_restart |
| 77 | Scenario: I try to edit a Mezuro reading group leaving empty its title | 77 | Scenario: I try to edit a Mezuro reading group leaving empty its title |
| 78 | Given I have a Mezuro reading group with the following data | 78 | Given I have a Mezuro reading group with the following data |
| 79 | | name | Sample Reading group | | 79 | | name | Sample Reading group | |
| 80 | | description | Sample Description | | 80 | | description | Sample Description | |
| 81 | | user | joaosilva | | 81 | | user | joaosilva | |
| 82 | And I am on article "Sample Reading group" | 82 | And I am on article "Sample Reading group" |
| 83 | - And I should be on /joaosilva/sample-reading-group | ||
| 84 | And I follow "Edit" | 83 | And I follow "Edit" |
| 85 | When I erase the "article_name" field | 84 | When I erase the "article_name" field |
| 86 | And I press "Save" | 85 | And I press "Save" |
| 87 | Then I should see "Title can't be blank" | 86 | Then I should see "Title can't be blank" |
| 88 | 87 | ||
| 89 | -@selenium | 88 | + @selenium @kalibro_restart |
| 90 | Scenario: I try to edit a Mezuro reading group with title of an existing Mezuro Reading group | 89 | Scenario: I try to edit a Mezuro reading group with title of an existing Mezuro Reading group |
| 91 | Given I have a Mezuro reading group with the following data | 90 | Given I have a Mezuro reading group with the following data |
| 92 | | name | Sample Reading group | | 91 | | name | Sample Reading group | |
| @@ -97,7 +96,6 @@ Feature: Reading Group | @@ -97,7 +96,6 @@ Feature: Reading Group | ||
| 97 | | description | Another Description | | 96 | | description | Another Description | |
| 98 | | user | joaosilva | | 97 | | user | joaosilva | |
| 99 | And I am on article "Sample Reading group" | 98 | And I am on article "Sample Reading group" |
| 100 | - And I should be on /joaosilva/sample-reading-group | ||
| 101 | And I follow "Edit" | 99 | And I follow "Edit" |
| 102 | When I fill the fields with the new following data | 100 | When I fill the fields with the new following data |
| 103 | | article_name | Another Reading group | | 101 | | article_name | Another Reading group | |
| @@ -105,20 +103,19 @@ Feature: Reading Group | @@ -105,20 +103,19 @@ Feature: Reading Group | ||
| 105 | And I press "Save" | 103 | And I press "Save" |
| 106 | Then I should see "Slug The title (article name) is already being used by another article, please use another title." | 104 | Then I should see "Slug The title (article name) is already being used by another article, please use another title." |
| 107 | 105 | ||
| 108 | -@selenium | 106 | + @selenium @kalibro_restart |
| 109 | Scenario: I delete a Mezuro reading group that belongs to me | 107 | Scenario: I delete a Mezuro reading group that belongs to me |
| 110 | Given I have a Mezuro reading group with the following data | 108 | Given I have a Mezuro reading group with the following data |
| 111 | | name | Sample Reading group | | 109 | | name | Sample Reading group | |
| 112 | | description | Sample Description | | 110 | | description | Sample Description | |
| 113 | | user | joaosilva | | 111 | | user | joaosilva | |
| 114 | And I am on article "Sample Reading group" | 112 | And I am on article "Sample Reading group" |
| 115 | - And I should be on /joaosilva/sample-reading-group | ||
| 116 | When I follow "Delete" | 113 | When I follow "Delete" |
| 117 | And I confirm the "Are you sure that you want to remove the item "Sample Reading group"?" dialog | 114 | And I confirm the "Are you sure that you want to remove the item "Sample Reading group"?" dialog |
| 118 | Then I go to /joaosilva/sample-reading-group | 115 | Then I go to /joaosilva/sample-reading-group |
| 119 | And I should see "There is no such page: /joaosilva/sample-reading-group" | 116 | And I should see "There is no such page: /joaosilva/sample-reading-group" |
| 120 | 117 | ||
| 121 | -@selenium | 118 | + @selenium @kalibro_restart |
| 122 | Scenario: I cannot edit or delete a Mezuro reading group that doesn't belong to me | 119 | Scenario: I cannot edit or delete a Mezuro reading group that doesn't belong to me |
| 123 | Given I have a Mezuro reading group with the following data | 120 | Given I have a Mezuro reading group with the following data |
| 124 | | name | Sample Reading group | | 121 | | name | Sample Reading group | |
| @@ -129,7 +126,6 @@ Feature: Reading Group | @@ -129,7 +126,6 @@ Feature: Reading Group | ||
| 129 | | adminuser | Admin | | 126 | | adminuser | Admin | |
| 130 | And I am logged in as "adminuser" | 127 | And I am logged in as "adminuser" |
| 131 | When I am on article "Sample Reading group" | 128 | When I am on article "Sample Reading group" |
| 132 | - And I should be on /joaosilva/sample-reading-group | ||
| 133 | Then I should not see "Delete" | 129 | Then I should not see "Delete" |
| 134 | And I should not see "Edit" | 130 | And I should not see "Edit" |
| 135 | 131 |