adds a spec for lock module until a given date
mattf,panda,1 Test Plan: -Pass Jenkins -Verify ID -Check for syntax errors Change-Id: I76e386f0834e7996bc68b27a4c605634239ad232 Reviewed-on: https://gerrit.instructure.com/60343 Reviewed-by: Derek Hansen <dhansen@instructure.com> Tested-by: Jenkins Product-Review: Matt Fairbourn <mfairbourn@instructure.com> QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
This commit is contained in:
parent
03703541e0
commit
a2a07adceb
|
@ -204,6 +204,12 @@ describe "context modules" do
|
|||
expect(driver.current_url).to match %r{/courses/#{@course.id}/assignments/#{@assignment_2.id}}
|
||||
end
|
||||
|
||||
it "should lock module until a given date", priority: "1", test_id: 126741 do
|
||||
mod_lock = @course.context_modules.create! name: 'a_locked_mod', unlock_at: 1.day.from_now
|
||||
go_to_modules
|
||||
expect(fj("#context_module_content_#{mod_lock.id} .unlock_details").text).to include_text 'Will unlock'
|
||||
end
|
||||
|
||||
it "should allow a student view student to progress through module content" do
|
||||
course_with_teacher_logged_in(:course => @course, :active_all => true)
|
||||
@fake_student = @course.student_view_student
|
||||
|
|
Loading…
Reference in New Issue