mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
28 lines
1.1 KiB
Gherkin
28 lines
1.1 KiB
Gherkin
@managing_users
|
|
Feature: Deleting the customer account
|
|
In order to delete customer account on demand
|
|
As an Administrator
|
|
I want to be able to remove customer account details from the system
|
|
|
|
Background:
|
|
Given the store has customer "customer@example.com"
|
|
And there is a user "theodore@example.com" identified by "pswd"
|
|
And I am logged in as an administrator
|
|
|
|
@api @no-ui
|
|
Scenario: Deleting account should not delete customer details
|
|
When I delete the account of "theodore@example.com" user
|
|
Then the user account should be deleted
|
|
But the customer with this email should still exist
|
|
|
|
@no-api @ui
|
|
Scenario: Deleting account should not delete customer details
|
|
When I delete the account of "theodore@example.com" user
|
|
Then I should be notified that it has been successfully deleted
|
|
And the customer should have no account
|
|
But the customer with this email should still exist
|
|
|
|
@api @ui
|
|
Scenario: A customer with no user cannot be deleted
|
|
Given the account of "theodore@example.com" was deleted
|
|
Then I should not be able to delete it again
|