spec: downgrade to priority 2 for the sake of test coverage
will refactor with timecop in a future sprint Test Plan: - pass Jenkins Change-Id: Ia98fd4ad50105a5d9552a34589829718bc9e2a94 Reviewed-on: https://gerrit.instructure.com/73560 Tested-by: Jenkins Reviewed-by: Gentry Beckmann <gbeckmann@instructure.com> Product-Review: Michael Hargiss <mhargiss@instructure.com> QA-Review: Michael Hargiss <mhargiss@instructure.com>
This commit is contained in:
parent
dc252f2eef
commit
4db36a0c59
|
@ -70,11 +70,10 @@ describe 'taking a quiz' do
|
|||
context 'when the quiz is nearly due' do
|
||||
let(:quiz_nearly_due) { quiz_create(course: @course, due_at: Time.zone.now + 2.seconds) }
|
||||
|
||||
it 'doesn\'t automatically submit once the due date passes', priority: "1", test_id: 551293 do
|
||||
skip('This spec takes too long to execute')
|
||||
|
||||
it 'doesn\'t automatically submit once the due date passes', priority: "2", test_id: 551293 do
|
||||
take_and_answer_quiz(submit: false, quiz: quiz_nearly_due)
|
||||
|
||||
# TODO: refactor with timecop
|
||||
# wait at least one minute for the due date to pass
|
||||
sleep(65)
|
||||
|
||||
|
@ -84,11 +83,10 @@ describe 'taking a quiz' do
|
|||
verify_quiz_submission_is_late
|
||||
end
|
||||
|
||||
it 'marks the quiz submission as "late"', priority: "1", test_id: 551785 do
|
||||
skip('This spec takes too long to execute')
|
||||
|
||||
it 'marks the quiz submission as "late"', priority: "2", test_id: 551785 do
|
||||
take_and_answer_quiz(submit: false, quiz: quiz_nearly_due)
|
||||
|
||||
# TODO: refactor with timecop
|
||||
# wait at least one minute for the due date to pass
|
||||
sleep(65)
|
||||
|
||||
|
|
Loading…
Reference in New Issue