docs: archive polish-e2e-followups
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EFUzfiCVCgCVJZq4NDEqZs
This commit is contained in:
1 parent
d9b6bb04c1
commit
ae756e554f
18 files changed
+113
-6
No files matched your search
@@ -8,7 +8,7 @@ Admins with the Roles module define roles and choose which back-office modules e
|
||||
|
||||
### Requirement: Role list and edit
|
||||
|
||||
The system SHALL let any admin with `BO_ROLES` list admin roles, and SHALL let only a super admin create and rename them, because roles are shared by every company. Role names SHALL be unique. The member role and `ROLE_ADMIN` SHALL NOT appear in the list (`ROLE_ADMIN` is attached to every admin automatically and grants no modules).
|
||||
The system SHALL let any admin with `BO_ROLES` list admin roles, and SHALL let only a super admin create, rename and delete them, because roles are shared by every company. Role names SHALL be unique, including against deleted roles. The member role and `ROLE_ADMIN` SHALL NOT appear in the list (`ROLE_ADMIN` is attached to every admin automatically and grants no modules).
|
||||
|
||||
#### Scenario: Create role
|
||||
|
||||
@@ -23,7 +23,7 @@ The system SHALL let any admin with `BO_ROLES` list admin roles, and SHALL let o
|
||||
|
||||
#### Scenario: Company user edits a role
|
||||
|
||||
- **WHEN** an INS user with `BO_ROLES` creates or renames a role
|
||||
- **WHEN** an INS user with `BO_ROLES` creates, renames or deletes a role
|
||||
- **THEN** the request is refused with 403 and nothing changes
|
||||
|
||||
### Requirement: Role permissions
|
||||
@@ -51,3 +51,26 @@ The system SHALL hold Co-Lite's back-office modules in the module table, with a
|
||||
|
||||
- **WHEN** the local stack starts from an empty database
|
||||
- **THEN** the super admin's sidebar shows Users and Roles and no Tastefully back-office entries
|
||||
|
||||
### Requirement: Role deletion
|
||||
|
||||
A super admin SHALL be able to delete a role after confirming. The delete SHALL be refused while any user, enabled or not, holds the role. Deleting SHALL be soft: a deleted role SHALL disappear from the role list and the user role picker.
|
||||
|
||||
#### Scenario: Delete an unused role
|
||||
|
||||
- **GIVEN** role `ROLE_TEMP` that no user holds
|
||||
- **WHEN** a super admin deletes it and confirms
|
||||
- **THEN** it is no longer in the role list or the user role picker
|
||||
|
||||
#### Scenario: Delete a role in use
|
||||
|
||||
- **GIVEN** role `ROLE_SALES` held by 3 users, one of them disabled
|
||||
- **WHEN** a super admin deletes it
|
||||
- **THEN** the delete is refused with a message that 3 users hold the role
|
||||
- **AND** the role is unchanged
|
||||
|
||||
#### Scenario: Name of a deleted role
|
||||
|
||||
- **GIVEN** `ROLE_TEMP` was deleted
|
||||
- **WHEN** a super admin creates a role named `ROLE_TEMP`
|
||||
- **THEN** the save is refused with a message that the name belongs to a deleted role
|
||||
Reference in new issue
Block a user