As a user, I would like the ability to remove a note from a job that I have created in the event that I no longer find it relevant.
Given a user is visiting the job details view
When they select the Delete option on a note
Then they should be prompted to confirm the deletion
Given the user wishes to confirm the deletion
When they select the option to confirm
Then the note should be 'soft-deleted' from the database
And the user should be directed to the job details view
And that note should no longer be visible
Given the user decides not to confirm the deletion
When they select the option to reject confirmation
Then the note should NOT be deleted
And the user should be directed back to the job details view
As a user, I would like the ability to remove a note from a job that I have created in the event that I no longer find it relevant.
Given a user is visiting the job details view When they select the
Delete
option on a note Then they should be prompted to confirm the deletionGiven the user wishes to confirm the deletion When they select the option to confirm Then the note should be 'soft-deleted' from the database And the user should be directed to the job details view And that note should no longer be visible
Given the user decides not to confirm the deletion When they select the option to reject confirmation Then the note should NOT be deleted And the user should be directed back to the job details view