Skip to content

Commit

Permalink
Location delete
Browse files Browse the repository at this point in the history
  • Loading branch information
kdimopulu committed Mar 4, 2025
1 parent 3506790 commit 1663b3d
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions staff_features/locations/location_delete.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
Feature: Location Delete
Background:
Given an administrator user is logged in
And a Location has been created
Scenario: Location is deleted from the search results
When the user clicks on 'Browse'
And the user clicks on 'Locations'
And the user filters by text with the Location
And the user checks the checkbox of the Location
And the user clicks on 'Delete'
And the user clicks on 'Delete Records'
Then the 'Records' deleted message is displayed
And the Location is deleted
Scenario: Location is deleted from the view page
Given the user is on the Location view page
When the user clicks on 'Delete'
And the user clicks on 'Delete' in the modal
Then the Locations page is displayed
And the 'Location' deleted message is displayed
And the Location is deleted
Scenario: Cancel Location delete from the view page
Given the user is on the Location view page
When the user clicks on 'Delete'
And the user clicks on 'Cancel'
Then the user is still on the Location view page
Scenario: Location is not deleted when linked to a Top Container
Given the Location is linked to a Top Container
And the user is on the Locaiton view page
When the user clicks on 'Delete'
Then the user is still on the Location view page
And the following error message is displayed
|Unable to delete locations: |

0 comments on commit 1663b3d

Please sign in to comment.