hyrax icon indicating copy to clipboard operation
hyrax copied to clipboard

Feature test: new form - assign valkyrie work to non-default admin set

Open elrayle opened this issue 5 years ago • 0 comments

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

  1. Create a feature test
  2. Define an admin set resource using let (administrative_sets factory)
  3. In the test, create a new resource work using the new form (Monograph or Hyrax::Test::SimpleWork)
  4. Go to the Relationships tab
  5. Select the admin set created using let
  6. 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

elrayle avatar Nov 08 '20 14:11 elrayle