title: Cucumber Test not working - Devise
body: <p>Scenario:</p>
  
  <pre><code>Feature: Login Success
  
    Scenario: Login in  User
      Given I am on the sign_in page
      And I fill in "Email" with "test@gmail.com"
      And I fill in "Password" with "12345678"
      When I press "Sign in"
      Then page should have content "Update Projects"
  </code></pre>
  
  <p>I am using devise.</p>
  
  <p>Steps:</p>
  
  <pre><code>Given /^I am on the sign_in page$/ do
    visit ('/users/sign_in')
  end
  
  Given /^I fill in "(.*?)" with "(.*?)"$/ do |arg1, arg2|
    fill_in arg1, :with =&gt; arg2
  end
  
  When /^I press "(.*?)"$/ do |arg1|
    click_button arg1
  end
  
  Then /^page should have content "(.*?)"$/ do |arg1|
    expect(page).to have_content arg1
  end
  </code></pre>
  
  <p>Quite simple. I am using devise.</p>
  
  <p>Why does it fail:</p>
  
  <blockquote>
    <p>expected to find text "Update Projects" in...</p>
  </blockquote>
  
  <p>Why is cucumber not redirecting to the next page?</p>