Skip to content

Commit

Permalink
Digital object event create
Browse files Browse the repository at this point in the history
  • Loading branch information
blacksmith-welder committed Jan 13, 2025
1 parent a8e930e commit 3dca7e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Digital Object Event Create
And the Digital Object is opened in edit mode
Scenario: Digital Object Event create page
When the user clicks on 'Add Event'
And the user clicks on 'Add Event' in the modal
And the user clicks on 'Add Event' in the dropdown menu
Then the New Event page is displayed with the Digital Object linked
Scenario: Digital Object Event is created
Given the New Event page is open for a Digital Object
Expand Down
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

0 comments on commit 3dca7e0

Please sign in to comment.