hyrax
hyrax copied to clipboard
Feature test: new form - share a valkyrie work resource with other users
Descriptive summary
Write a feature test that checks that a valkyrie resource work can be shared with other users through the new form.
Rationale
Users need to be able to share works. This is a core feature and should work with Valkyrie resources.
Expected behavior
In the new form, there is a tab where the work can be shared with another user. The form should allow a user to be selected and assigned a role.
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 with 3 users.
- Have user1 create a work for the monograph valkyrie work through the new form
- Go to the Sharing tab
- Assign user2 edit access.
- Assign user3 read access.
- Verify that the users were assigned access as expected.
Related work
Issue #4576 - Feature test: edit form - share a valkyrie work resource with other users
See non-valkyrie features/create_work_spec.rb test