Steps to reproduce (multiple expectations on various steps violated)
- Add a User account "Joe" through Control Panel / Users and Organizations.
- Note: You can't delete the user, must go through "deactivate"/"delete" operation in that order.
- Add an Organization "Company A"
- Choose "Assign Users" in Company A
- Assign Joe to Company A.
First violation of expectation:
- Look at the users assigned to Company A. Notice that you can't unassign Joe from this interface. If you check the checkbox, a trashcan appears on top, and an Action-(Kebap)-Menu with the only item "Delete". (note that both are exactly the same command, so one of them is superfluous. Opening the Action Menu covers the trashcan with the command)
Second/Third violation of expectation:
- Choosing "Delete" actually deletes the user, without deactivating in between (validated: You can now create a new user with the same email address as the deleted one)
- I assumed that, within the "Users of this Organization" screen I might have an "unassign", thus chose the "delete" operation, expecting that it's "delete relationship", not "delete user".
- The only way to unassociate a user with an Organization is through the individual user's Action/Kebap menu operation "remove"
- For "Company A", choose "Edit",
- observe that the UI changed to the company data in a Form. Great - just as expected.
- Click the Back button in the top menu ("<", on Liferay's UI, not on the browser). Observe that you're back on the list of organizations, including "Company A"
- For "Company A", choose "Add User"
- Observe that the UI changed to the "Add User" dialog, with a Form. Great - just as expected
Fourth violation of expectation
- Click the Back button in the top menu ("<", on Liferay's UI, not on the browser). Observe that you're back on the list of users, not on the list of organizations where you started. Not expected.