-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
51 additions
and
0 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
staff_features/top_containers/top_containers_bulk_operations.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
Feature: Top Container bulk operations | ||
Background: | ||
Given an administrator user is logged in | ||
And a Resource with 2 Top Containers has been created | ||
And the user is on the Top Containers page | ||
And the user fills in 'Keyword' with the Resource title | ||
And the user clicks on 'Search' | ||
Scenario: Select all Top Containers | ||
When the user checks the checkbox in the header row | ||
Then all Top Containers are selected | ||
And the 'Bulk Operations' button is active | ||
Scenario: Unselect all Top Containers | ||
Given all Top Containers are selected | ||
When the user checks the checkbox in the header row | ||
Then all Top Containers are unselected | ||
And the 'Bulk Operations' button is not active | ||
Scenario: Select Top Container | ||
When the user checks the checkbox in the left-hand column of Top container | ||
Then the Top Container is selected | ||
And the 'Bulk Operations' button is active | ||
Scenario: Update ILS holdings IDs of a Top Container | ||
Given a Top Container is selected | ||
When the user clicks on 'Bulk Operations' | ||
And the user clicks on 'Update ILS holdings IDs' in the dropdown menu | ||
And the user fills in 'ILS Holding ID' with '123456789' | ||
And the user clicks on 'Update 1 records' button | ||
Then the 'Top Containers' updated message is displayed | ||
And the 'ILS Holding ID' has value '123456789' | ||
Scenario: Update Container Profile of a Top Container by browsing | ||
Given a Top Container is selected | ||
When the user clicks on 'Bulk Operations' | ||
And the user clicks on 'Update Container Profile' in the dropdown menu | ||
And the user clicks on 'Browse' in the dropdown menu | ||
And the user selects Container Profile in the modal | ||
And the user clicks on 'Link' in the modal | ||
And the user clicks on 'Update 1 records' button | ||
Then the 'Top Containers' updated message is displayed | ||
And the Top Container profile is linked to the selected Container Profile | ||
Scenario: Update Container Profile of a Top Container by creating Container Profile | ||
Given a Top Container is selected | ||
When the user clicks on 'Bulk Operations' | ||
And the user clicks on 'Update Container Profile' in the dropdown menu | ||
And the user clicks on 'Create' in the dropdown menu | ||
And the user fills in 'Name' with 'Test Container Profile' in the modal | ||
And the user fills in 'Depth' with '90' in the modal | ||
And the user fills in 'Height' with '90' in the modal | ||
And the user fills in 'Width' with '90' in the modal | ||
And the user clicks on 'Create and Link' in the modal | ||
And the user clicks on 'Update 1 records' button | ||
Then the 'Top Containers' updated message is displayed | ||
And the 'Top Container Profile' has Name 'Test Container Profile' |