hyrax
hyrax copied to clipboard
Feature test: new form - assign valkyrie work to non-default admin set
Descriptive summary
Write a feature test that checks that a valkyrie resource work can be added to an admin set that isn't the default through the new form.
Rationale
Users need to be able to add works in an admin set that isn't the default. This is a core feature and should work with Valkyrie resources.
Expected behavior
In the new form, there is a tab where relationships with the work can be specified. The form should allow the work to be added in an admin set other than the default admin set.
Actual behavior
If actual does not match expected, open an issue with details about what actual happened and what was expected.
Steps to reproduce the behavior
- Create a feature test
- Define an admin set resource using let (administrative_sets factory)
- In the test, create a new resource work using the new form (Monograph or Hyrax::Test::SimpleWork)
- Go to the Relationships tab
- Select the admin set created using let
- Save and verify that work was added to the admin set as expected
Related Work
Issue #4582 - Feature test: edit form - assign valkyrie work to non-default admin set
See non-valkyrie features/create_work_spec.rb test