-
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
1 parent
22f714b
commit bec99f2
Showing
5 changed files
with
111 additions
and
5 deletions.
There are no files selected for viewing
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
53 changes: 53 additions & 0 deletions
53
staff_features/resources/step_definitions/resource_shared.rb
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
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
21 changes: 21 additions & 0 deletions
21
staff_features/top_containers/step_definitions/step_definitions.rb
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,21 @@ | ||
# frozen_string_literal: true | ||
|
||
When 'the user fills in {string} with the Resource title' do |label| | ||
fill_in label, with: @uuid | ||
end | ||
|
||
When 'the user fills in {string} with the Accession title' do |label| | ||
fill_in label, with: @uuid | ||
end | ||
|
||
Then 'the Top Container associated with the Resource is in the search results' do | ||
results = all('#bulk_operation_results tbody tr') | ||
expect(results.length).to eq 1 | ||
expect(results[0].text).to include @uuid | ||
end | ||
|
||
Then 'the Top Container associated with the Accession is in the search results' do | ||
results = all('#bulk_operation_results tbody tr') | ||
expect(results.length).to eq 1 | ||
expect(results[0].text).to include @uuid | ||
end |
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