Lets try to avoid sprinkling wait statements in our feature tests.

@scytacki has suggested waiting for the page content to change before continuing
to the next step in our javascript tests. While making these changes we can dry up similar steps too:

  # features/step_definitons/admin_steps.rb:
  When /^I edit the project$/ do
      visit admin_projects_path
      click_link "edit project"
  end
  
  When /^I save the project$/ do
    click_button "Save"
    page.should have_no_button("Save")
  end 

  # Right here:
  @javascript
  Scenario: Admin edits the home page HTML
    Given the most basic default project
    And I login as an admin
    And I edit the project
    And I fill in "admin_project[home_page_content]" with "Creating Home Page"
    And I save the project
    And I log out
    And am on the my home page
    Then I should see "Creating Home Page"