Permalink
Browse files

Fixed some search features

  • Loading branch information...
rafaelmessias committed May 25, 2012
1 parent 476f551 commit 096b293299a41d7ca5a60406d5cab83fa553f463
@@ -86,7 +86,7 @@ Feature: search contents
Given the following uploaded files
| owner | name | filename |
| joaosilva | Uploaded Executable | rails |
- | joaosilva | Uploaded Spreadsheet | rails |
+ | joaosilva | Uploaded Spreadsheet | shoes |
When I search contents for "Executable"
Then I should see "Uploaded Executable" within ".search-uploaded-file-item"
And I should not see "Uploaded Spreadsheet"
@@ -315,7 +315,7 @@ Feature: search contents
When I go to the search articles page
And I fill in "query" with "this is an article"
And I press "Search"
- Then show me the page
+ # Then show me the page
And I follow "Software Livre" within "#facets-menu"
Then I should see "noosfero and debian" within "#search-results"
And I should not see "facebook and 1984"
@@ -36,7 +36,7 @@ Feature: search enterprises
Scenario: link to enterprise homepage on search results
Given I search enterprises for "shoes"
When I follow "Shoes shop"
- Then I should be on "Shoes shop" homepage
+ Then I should be on Shoes shop's profile
Scenario: show clean enterprise description on search results
Given the following articles
@@ -110,7 +110,7 @@ Feature: search enterprises
| Rails | software-livre |
And the following enterprises
| identifier | name | category |
- | noosfero | Noosfero | Rails |
+ | noosfero | Noosfero | rails |
When I search enterprises for "Rails"
Then I should see "Software Livre" within ".search-enterprise-category"
And I should see "Rails" within ".search-enterprise-category"
@@ -247,7 +247,7 @@ def selenium_driver?
klass = kind.singularize.camelize.constantize
table.hashes.each do |row|
parent = row.delete("parent")
- if parent
+ if !parent.blank?
parent = Category.find_by_slug(parent.to_slug)
row.merge!({:parent_id => parent.id})
end

0 comments on commit 096b293

Please sign in to comment.