Merging close_account.feature and closes_account.feature

This commit is contained in:
Sarah Mei 2011-02-02 14:22:07 -08:00
parent 286dcef0f0
commit b84836ed95
3 changed files with 6 additions and 29 deletions

View file

@ -1,17 +0,0 @@
@javascript
Feature: close_account
In order to remove my diaspora account
As a User
I want to close my account
Scenario: close my account
Given I am signed in
And I click on my name in the header
And I follow "account settings"
And I preemptively confirm the alert
And I follow "Close Account"
Then I should be on the home page

View file

@ -5,13 +5,7 @@ Feature: Close Account
I want to sign in, close my account and try to log in again
Scenario: user closes account
Given a user with username "ohai" and password "secret"
When I go to the new user session page
And I fill in "Username" with "ohai"
And I fill in "Password" with "secret"
And I press "Sign in"
Then I should be on the aspects page
Given I am signed in
When I click on my name in the header
And I follow "account settings"
And I click ok in the confirm dialog to appear next
@ -19,10 +13,7 @@ Feature: Close Account
Then I should be on the home page
When I go to the new user session page
And I fill in "Username" with "ohai"
And I fill in "Password" with "secret"
And I press "Sign in"
#Then I should not be on the aspects page
And I try to sign in
Then I should be on the new user session page
And I wait for the ajax to finish
When I wait for the ajax to finish
Then I should see "Invalid email or password."

View file

@ -9,6 +9,9 @@ Given /^I (?:am signed|sign) in as an? (\w+)$/ do |role|
Given 'I am signed in'
end
Given "I try to sign in" do
Given "I am signed in"
end
Given 'I am signed in' do
@me ||= Factory(:user_with_aspect, :getting_started => false)