-
Notifications
You must be signed in to change notification settings - Fork 92
Description
As part of the event overview UI rework on #10824 we removed the possibility to edit the declaration as part of the Validate and Register actions, when validating or registering a previously declared record.
Validate and register now happen as 'quick actions' with a simple modal.
This ticket is to add the action EDIT
it adds two new scopes:
- record.notified.edit (user can edit a record with the status Notified)
- record.declared.edit (user can edit a record with the status Notified)
ACs
GIVEN the record is at a NOTIFIED status
AND the user is assigned to the record
WHEN the user has the scope record.notified.edit
THEN show the action option Edit
GIVEN the record is at a DECLARED status
AND the user is assigned to the record
WHEN the user has the scope record.declared.edit
THEN show the action option Edit
GIVEN the user clicks Edit
THEN show the confirmation model
GIVEN the user clicks Confirm
THEN navigate to the user to the EDIT action view
GIVEN the user is on the EDIT action view
WHEN the use clicks Change
THEN navigate the user to the form
GIVEN the user is on the EDIT action view
WHEN the use clicks Cancel edits from the Action Menu
THEN navigate the user back to the VIEW view
Edit + Declare
GIVEN the user Redeclare with edits
THEN check if any record flags must be added
GIVEN the user clicks Redeclare with edits
THEN show the confirmation model
Edit + Register
GIVEN a user has the scope record.register
AND their edits don't trigger any flags stopping register!
THEN show and enable the 'Register with edits' option
Audit
GIVEN the user Declared with edits
THEN show the Edited
audit item (currently named Updated)
GIVEN the user Register with edits
THEN show the Edited
audit item (currently named Updated)
THEN show the Register audit item
NOTE! As part of this PR, 3 tests were partially skipped. They should be returned to use when this issue is implemented.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status