Skip to content

Commit

Permalink
Tests passing via selenium
Browse files Browse the repository at this point in the history
  • Loading branch information
adarsh committed Mar 27, 2012
1 parent 97b85f4 commit 0b3f1d3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/views/pages/homepage.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
});
</script>

<input type="text"/>
<button>Submit</button>
<input type="text" id="Search"/>
<button id="search_button">Submit</button>

<ul id="results">
<% if @tweets %>
Expand Down
1 change: 1 addition & 0 deletions features/find_tweets_by_hashtag.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion features/step_definitions/tweet_steps.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
end

Then /^I should see tweets with "([^"]*)"$/ do |hashtag|
Expand Down

0 comments on commit 0b3f1d3

Please sign in to comment.