diaspora/features/mobile/closes_account.feature
Benjamin Neff be47c6bcd0 remove redirect hack for devise
only expose routes from devise that we actually use
2016-08-11 01:58:47 +02:00

19 lines
743 B
Gherkin
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@javascript @mobile
Feature: Close account
In order to close an existing account
As a user
I want to sign in, close my account and try to log in again
Scenario: user closes account
Given I am signed in on the mobile website
When I go to the edit user page
And I click on selector "#close_account"
Then I should see a modal
And I should see "Hey, please dont go!" within "#closeAccountModal"
When I put in my password in the close account modal
And I confirm the alert after I press "Close account" in the modal
Then I should be on the mobile new user session page
When I try to sign in manually
Then I should be on the new user session page
And I should see a flash message with a warning