-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathdelete_user.feature
More file actions
30 lines (28 loc) · 1.3 KB
/
delete_user.feature
File metadata and controls
30 lines (28 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Feature: Users should be able to delete their accounts
Background:
Given a developer named "seldon" exists without a bitcoin address
And I'm signed in as "seldon"
@vcr-ignore-params
Scenario: Users should be able to see delete account button in their profile
Given I visit the "seldon user" page
Then I should see "Delete Account"
When I click "Delete Account"
When I fill "E-mail" with: "seldon@example.com"
When I click "Delete this account!"
Then I should be on the "home" page
And I should see "Your account was deleted"
And a developer named "seldon" does not exist
And I should see "Sign in" in the "header" area
And I should not see "Sign out" in the "header" area
@vcr-ignore-params
Scenario: Users should confirm deleting account by entering correct email address
Given I visit the "seldon user" page
Then I should see "Delete Account"
When I click "Delete Account"
When I fill "E-mail" with: "invalid@example.com"
When I click "Delete this account!"
Then I should be on the "seldon user" page
And I should see "Invalid email"
And a developer named "seldon" exists
And I should see "Sign out" in the "header" area
And I should not see "Sign in" in the "header" area