As a user, I would like the ability to remove a job contact and any references to that job contact from my list without actually deleting them, to allow for restoration in the near future if required.
Given a user is visiting the list of job contacts OR a job contact detail view
When they select the Delete option
Then the should be prompted to confirm the deletion
Given a user wishes to confirm the delete
When they then select the option to confirm
Then the job contact should be 'soft-deleted' from the system (i.e. the 'deleted' column is populated with the timestamp of the soft-delete operation, it is otherwise NULL)
And the user the user should be redirected to the job contact list view
Given the user decides not to confirm the delete
When they select the option to reject confirmation
Then the job contact should NOT be soft-deleted
And the user should be redirected to the job contact detail view (or previous view if that makes more sense)
As a user, I would like the ability to remove a job contact and any references to that job contact from my list without actually deleting them, to allow for restoration in the near future if required.
Given a user is visiting the list of job contacts OR a job contact detail view When they select the
Delete
option Then the should be prompted to confirm the deletionGiven a user wishes to confirm the delete When they then select the option to confirm Then the job contact should be 'soft-deleted' from the system (i.e. the 'deleted' column is populated with the timestamp of the soft-delete operation, it is otherwise NULL) And the user the user should be redirected to the job contact list view
Given the user decides not to confirm the delete When they select the option to reject confirmation Then the job contact should NOT be soft-deleted And the user should be redirected to the job contact detail view (or previous view if that makes more sense)