Browse files

Tests passing via selenium

  • Loading branch information...
adarsh committed Mar 27, 2012
1 parent 97b85f4 commit 0b3f1d34f80a05f4f27b6bd4a60e39f653c37f5a
@@ -13,8 +13,8 @@
-<input type="text"/>
+<input type="text" id="Search"/>
+<button id="search_button">Submit</button>
<ul id="results">
<% if @tweets %>
@@ -3,6 +3,7 @@ Feature: Find tweets by hashtag
As a user
I should be able to search for a hashtag
+ @javascript
Scenario: Show the tweets for a given hashtag
When I go to the homepage
And I enter "rails" in the search field
@@ -4,7 +4,7 @@
When /^I enter "([^"]*)" in the search field$/ do |hashtag|
fill_in "Search", with: hashtag
- click_button "Search"
+ click_button "search_button"
Then /^I should see tweets with "([^"]*)"$/ do |hashtag|

0 comments on commit 0b3f1d3

Please sign in to comment.