After doing some actions for user, the notification appears first, then user is redirected to the previously screen.
Steps to reproduce:
1. On the Add/Edit User view, change the username
2. Click "Update User" button
3. Loading modal appears
4. The notification appears.
5. User is redirected to the previously screen.
Both 4) and 5) points should be launched at the same time.
after doing some action for users, the notification should appear when user is redirected to the previously screen
Following on to my previous comment — we want to make the notificationService aware of the loading modal service
We don't want to have code that works like this:
Rather this should work like the following:
The reason for this type of change is to keep controller code thin and allow for notification behavior to be set generically in a single place. This will make the change DRY and more maintainable.
We've reviewed the video, but we do not really understand what is wrong. Is the problem that the notification stays open on the list page after updating? What's wrong with that?
Is this about the slight delay between success and the list loading?
To note what we decided in Sprint QA:
Make sure there is no gap in the loading modal between creating/updating a user and then showing the user list screen
I checked, and now everything works correctly. Now one is re-directed back to the user list immediately after closing the modal enabling one to set the new user's password, as well as after changing the user's username.
The root cause an error in the UI code:
Loading modal was closed too soon just after user update request finished, not after user list page was loaded.