uclibs / treatment_database

Application to track conservation workflow for Preservation Services
1 stars 2 forks source link

MERGE TO BRANCH - 214 branch in house repair checks - MERGE FIRST #495

Closed Janell-Huyck closed 4 months ago

Janell-Huyck commented 5 months ago

This PR does two things.

1) It rearranges the tests in spec/features/support/shared_examples so that they are within folders that relate to specific areas of the code, like "report_checks", "staff_code_checks", and "in_house_repair_checks". This is to acknowledge that creating an in-house repair

2) It adds tests for creating and deleting an in-house repair. Only the admin and standard user are given tests related to in-house repairs because the read-only users had this addressed in the shared example it_behaves_like 'can read but not edit conservation records' (renamed from displays conservation records for read-only users correctly).

3) It does NOT test in-house record editing because that functionality is not currently present in the code.