Commit fd4c68695a5f0f5b1c34014e63a98ce2585d930c
1 parent
58de1651
Exists in
master
and in
23 other branches
Fixing acceptance tests
(ActionItem1606)
Showing
2 changed files
with
9 additions
and
9 deletions
Show diff stats
db/schema.rb
| ... | ... | @@ -223,8 +223,8 @@ ActiveRecord::Schema.define(:version => 20100730141134) do |
| 223 | 223 | end |
| 224 | 224 | |
| 225 | 225 | create_table "inputs", :force => true do |t| |
| 226 | - t.integer "product_category_id", :null => false | |
| 227 | 226 | t.integer "product_id", :null => false |
| 227 | + t.integer "product_category_id", :null => false | |
| 228 | 228 | t.datetime "created_at" |
| 229 | 229 | t.datetime "updated_at" |
| 230 | 230 | end | ... | ... |
features/publish_article.feature
| ... | ... | @@ -24,7 +24,7 @@ Feature: publish article |
| 24 | 24 | And I follow "Manage Content" |
| 25 | 25 | And I follow "Spread" |
| 26 | 26 | And I check "Sample Community" |
| 27 | - And I press "Publish" | |
| 27 | + And I press "Spread this" | |
| 28 | 28 | And I am on Sample Community's homepage |
| 29 | 29 | And I follow "View profile" |
| 30 | 30 | And I go to Sample Community's sitemap |
| ... | ... | @@ -39,7 +39,7 @@ Feature: publish article |
| 39 | 39 | And I follow "Manage Content" |
| 40 | 40 | And I follow "Spread" |
| 41 | 41 | And I check "Sample Community" |
| 42 | - And I press "Publish" | |
| 42 | + And I press "Spread this" | |
| 43 | 43 | And I am not logged in |
| 44 | 44 | And I am logged in as "mariasilva" |
| 45 | 45 | And "Maria Silva" is a member of "Sample Community" |
| ... | ... | @@ -53,7 +53,7 @@ Feature: publish article |
| 53 | 53 | And I press "Save" |
| 54 | 54 | And I follow "Spread" |
| 55 | 55 | And I check "Sample Community" |
| 56 | - When I press "Publish" | |
| 56 | + When I press "Spread this" | |
| 57 | 57 | Then I should see "The title (article name) is already being used by another article, please use another title." |
| 58 | 58 | |
| 59 | 59 | Scenario: publishing an article in many communities and listing the communities that couldn't publish the article again, |
| ... | ... | @@ -70,7 +70,7 @@ Feature: publish article |
| 70 | 70 | And I follow "Manage Content" |
| 71 | 71 | And I follow "Spread" |
| 72 | 72 | And I check "Sample Community" |
| 73 | - And I press "Publish" | |
| 73 | + And I press "Spread this" | |
| 74 | 74 | And I should not see "This article name is already in use in the following community(ies):" |
| 75 | 75 | And I am on Joao Silva's control panel |
| 76 | 76 | And I follow "Manage Content" |
| ... | ... | @@ -78,7 +78,7 @@ Feature: publish article |
| 78 | 78 | And I check "Sample Community" |
| 79 | 79 | And I check "Another Community1" |
| 80 | 80 | And I check "Another Community2" |
| 81 | - When I press "Publish" | |
| 81 | + When I press "Spread this" | |
| 82 | 82 | Then I should see "The title (article name) is already being used by another article, please use another title." |
| 83 | 83 | And I am on Another Community1's homepage |
| 84 | 84 | And I follow "View profile" |
| ... | ... | @@ -101,12 +101,12 @@ Feature: publish article |
| 101 | 101 | And I follow "Manage Content" |
| 102 | 102 | And I follow "Spread" |
| 103 | 103 | And I check "Sample Community" |
| 104 | - And I press "Publish" | |
| 104 | + And I press "Spread this" | |
| 105 | 105 | And I am on Joao Silva's control panel |
| 106 | 106 | And I follow "Manage Content" |
| 107 | 107 | And I follow "Spread" |
| 108 | 108 | And I check "Sample Community" |
| 109 | - And I press "Publish" | |
| 109 | + And I press "Spread this" | |
| 110 | 110 | And I am on Sample Community's control panel |
| 111 | 111 | And I follow "Tasks" |
| 112 | 112 | And I press "Ok!" |
| ... | ... | @@ -125,7 +125,7 @@ Feature: publish article |
| 125 | 125 | And I follow "Manage Content" |
| 126 | 126 | And I follow "Spread" |
| 127 | 127 | And I check "Sample Community" |
| 128 | - And I press "Publish" | |
| 128 | + And I press "Spread this" | |
| 129 | 129 | And "joaosilva" has no articles |
| 130 | 130 | And I am on Sample Community's control panel |
| 131 | 131 | When I follow "Tasks" | ... | ... |