-
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
a8e930e
commit 3dca7e0
Showing
2 changed files
with
10 additions
and
2 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
10 changes: 9 additions & 1 deletion
10
staff_features/digital_objects/step_definitions/digital_object_event_create.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 |
---|---|---|
@@ -1,6 +1,14 @@ | ||
# frozen_string_literal: true | ||
|
||
Then 'the New Event page is displayed with the Accession linked' do | ||
Then 'the New Event page is displayed with the Digital Object linked' do | ||
expect(find('h2').text).to eq 'New Event Event' | ||
expect(find('#event_linked_records__0__ref__combobox')).to have_text @uuid | ||
end | ||
|
||
Given 'the New Event page is open for a Digital Object' do | ||
click_on 'Add Event' | ||
|
||
within '#form_add_event' do | ||
click_on 'Add Event' | ||
end | ||
end |