#350 new
jim

Want to imitate closing and opening browser

Reported by jim | February 1st, 2010 @ 01:50 AM

I'm trying to test "remember me" functionality and to test it manually I would login and tick 'remeber me', then close the browser, reopen the browser and return to the site which would treat me as logged in.

Ideally I'd be able to do something like:

Scenario Outline: Checking 'Remember Me' should persist login across browser sessions.
Given I am on the home page
  And a user exists with username "<username>" and password "<username>" and email "<email>"
  And the user "<username>" has been activated
When I fill in "authentication_email" with "<email>"
  And I fill in "authentication_password" with "<password>"
  And I check "authentication[remember_me]"
  And I press "Login"
  And I restart the browser
  And I visit the home page
Then I should see "Welcome, <username>!"
  And I should see "You are logged in."

  Examples:
    | username | password | email                      |
    | george   | george   | george-test123@example.com |

This was raised in ticket #80 but it seems that since the ticket was already marked wontfix the followup examples of where this feature would be valid were not seen or responded to.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Ruby Acceptance Testing for Web applications.

Shared Ticket Bins

People watching this ticket

Pages