ProFormA: Hide 'delayed' files by default

This commit is contained in:
Sebastian Serth
2022-12-08 10:57:36 +01:00
parent a957b203c2
commit 838019343e
2 changed files with 5 additions and 5 deletions

View File

@ -472,7 +472,7 @@ describe ProformaService::ConvertTaskToExercise do
content: 'ms-content',
filename: 'filename.txt',
used_by_grader: 'used_by_grader',
visible: 'yes',
visible: 'delayed',
usage_by_lms: 'display',
binary: false,
internal_description: 'reference_implementation'
@ -483,9 +483,9 @@ describe ProformaService::ConvertTaskToExercise do
expect(convert_to_exercise_service).to have_attributes(
id: exercise.id,
files: have(3).items
.and(include(have_attributes(content: 'ms-content', role: 'reference_implementation')))
.and(include(have_attributes(content: 'content', role: 'regular_file')))
.and(include(have_attributes(content: 'testfile-content', role: 'teacher_defined_test')))
.and(include(have_attributes(content: 'ms-content', role: 'reference_implementation', hidden: true)))
.and(include(have_attributes(content: 'content', role: 'regular_file', hidden: false)))
.and(include(have_attributes(content: 'testfile-content', role: 'teacher_defined_test', hidden: true)))
)
end
end