Matching test case ids for assignments
Change-Id: I87b35ab74c9b5443ac71a4d2c0e0c2be49902093 Reviewed-on: https://gerrit.instructure.com/58208 Reviewed-by: Michael Hargiss <mhargiss@instructure.com> Tested-by: Jenkins Product-Review: Derek Hansen <dhansen@instructure.com> QA-Review: Derek Hansen <dhansen@instructure.com>
This commit is contained in:
parent
fcd944d600
commit
a6950b077f
|
@ -17,7 +17,7 @@ describe "assignments menu tools" do
|
|||
@assignment = @course.assignments.create!(:name => "pls submit", :submission_types => ["online_text_entry"], :points_possible => 20)
|
||||
end
|
||||
|
||||
it "should show tool launch links in the gear for items on the index" do
|
||||
it "should show tool launch links in the gear for items on the index", priority: "2", test_id: 210087 do
|
||||
plain_assignment = @assignment
|
||||
|
||||
quiz_assignment = assignment_model(:submission_types => "online_quiz", :course => @course)
|
||||
|
@ -53,7 +53,7 @@ describe "assignments menu tools" do
|
|||
expect(link['href']).to eq course_external_tool_url(@course, @tool) + "?launch_type=quiz_menu&quizzes[]=#{quiz.id}"
|
||||
end
|
||||
|
||||
it "should show tool launch links in the gear for items on the show page" do
|
||||
it "should show tool launch links in the gear for items on the show page", priority: "2", test_id: 210088 do
|
||||
get "/courses/#{@course.id}/assignments/#{@assignment.id}"
|
||||
wait_for_ajaximations
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ describe "assignment groups" do
|
|||
course_with_teacher_logged_in
|
||||
end
|
||||
|
||||
it "should create an assignment with default dates" do
|
||||
it "should create an assignment with default dates", priority:"1", test_id: 216344 do
|
||||
visit_new_assignment_page
|
||||
fill_assignment_title 'vdd assignment'
|
||||
fill_assignment_overrides
|
||||
|
@ -27,7 +27,7 @@ describe "assignment groups" do
|
|||
compare_assignment_times(a)
|
||||
end
|
||||
|
||||
it "should load existing due data into the form" do
|
||||
it "should load existing due data into the form", priority: "2", test_id: 216345 do
|
||||
assignment = create_assignment!
|
||||
visit_assignment_edit_page(assignment)
|
||||
|
||||
|
@ -39,7 +39,7 @@ describe "assignment groups" do
|
|||
to match lock_at.strftime('%b %-d')
|
||||
end
|
||||
|
||||
it "should edit a due date" do
|
||||
it "should edit a due date", priority: "2", test_id: 216346 do
|
||||
assignment = create_assignment!
|
||||
visit_assignment_edit_page(assignment)
|
||||
|
||||
|
@ -52,7 +52,7 @@ describe "assignment groups" do
|
|||
to eq due_at.to_date.strftime('%b %-d, %y')
|
||||
end
|
||||
|
||||
it "should clear a due date" do
|
||||
it "should clear a due date", priority: "2", test_id: 216348 do
|
||||
assign = @course.assignments.create!(:title => "due tomorrow", :due_at => Time.zone.now + 2.days)
|
||||
get "/courses/#{@course.id}/assignments/#{assign.id}/edit"
|
||||
|
||||
|
@ -62,7 +62,7 @@ describe "assignment groups" do
|
|||
expect(assign.reload.due_at).to be_nil
|
||||
end
|
||||
|
||||
it "should allow setting overrides" do
|
||||
it "should allow setting overrides", priority: "1", test_id: 216349 do
|
||||
default_section = @course.course_sections.first
|
||||
other_section = @course.course_sections.create!(:name => "other section")
|
||||
default_section_due = Time.zone.now + 1.days
|
||||
|
@ -96,7 +96,7 @@ describe "assignment groups" do
|
|||
to eq other_section_due.to_date.strftime('%b %-d, %y')
|
||||
end
|
||||
|
||||
it "should validate override dates against proper section" do
|
||||
it "should validate override dates against proper section", priority: "1", test_id: 216350 do
|
||||
date = Time.zone.now
|
||||
date2 = Time.zone.now - 10.days
|
||||
due_date = Time.zone.now + 5.days
|
||||
|
@ -122,7 +122,7 @@ describe "assignment groups" do
|
|||
.to eq due_date.strftime('%b %-d, %y')
|
||||
end
|
||||
|
||||
it "properly validates identical calendar dates when saving and editing" do
|
||||
it "properly validates identical calendar dates when saving and editing", priority: "2", test_id: 216351 do
|
||||
shared_date = "October 12 2014"
|
||||
other_section = @course.course_sections.create!(:name => "Section 31", :restrict_enrollments_to_section_dates => true, :end_at => shared_date)
|
||||
visit_new_assignment_page
|
||||
|
@ -140,7 +140,7 @@ describe "assignment groups" do
|
|||
update_assignment!
|
||||
end
|
||||
|
||||
it "should show a vdd tooltip summary on the course assignments page" do
|
||||
it "should show a vdd tooltip summary on the course assignments page", priority: "2", test_id: 216352 do
|
||||
assignment = create_assignment!
|
||||
get "/courses/#{@course.id}/assignments"
|
||||
expect(f('.assignment .assignment-date-due')).not_to include_text "Multiple Dates"
|
||||
|
@ -167,7 +167,7 @@ describe "assignment groups" do
|
|||
course_with_student_logged_in(:active_all => true)
|
||||
end
|
||||
|
||||
it "should show the available date range when overrides are set" do
|
||||
it "should show the available date range when overrides are set", priority: "2", test_id: 216353 do
|
||||
assign = create_assignment!
|
||||
get "/courses/#{@course.id}/assignments/#{assign.id}"
|
||||
wait_for_ajaximations
|
||||
|
|
|
@ -5,7 +5,7 @@ describe "assignments" do
|
|||
|
||||
context "peer reviews" do
|
||||
|
||||
it "allows deleting a peer review" do
|
||||
it "allows deleting a peer review", priority: "2", test_id: 216382 do
|
||||
course_with_teacher_logged_in
|
||||
@student1 = student_in_course.user
|
||||
@student2 = student_in_course.user
|
||||
|
@ -29,7 +29,7 @@ describe "assignments" do
|
|||
expect(@assignment.submissions.map(&:assessment_requests).flatten.length).to eq 1
|
||||
end
|
||||
|
||||
it "allows an account admin who is also a student to submit a peer review" do
|
||||
it "allows an account admin who is also a student to submit a peer review", priority: "2", test_id: 216383 do
|
||||
course(active_course: true)
|
||||
admin_logged_in(account: @course.root_account)
|
||||
student_in_course(user: @admin)
|
||||
|
@ -110,17 +110,17 @@ describe "assignments" do
|
|||
context 'when reviewed is logged in' do
|
||||
before(:each) { user_logged_in(user: reviewed) }
|
||||
|
||||
it 'should block reviewer name on assignments page' do
|
||||
it 'should block reviewer name on assignments page', priority: "1", test_id: 216384 do
|
||||
get "/courses/#{review_course.id}/assignments/#{assignment.id}"
|
||||
expect(f("#comment-#{comment.id} .signature")).to include_text(t("Anonymous User"))
|
||||
end
|
||||
|
||||
it 'should hide comment reviewer name on submission page' do
|
||||
it 'should hide comment reviewer name on submission page', priority: "1", test_id: 216385 do
|
||||
get "/courses/#{review_course.id}/assignments/#{assignment.id}/submissions/#{reviewed.id}"
|
||||
expect(f("#submission_comment_#{comment.id} .author_name")).to include_text(t("Anonymous User"))
|
||||
end
|
||||
|
||||
it 'should hide comment reviewer name on rubric popup' do
|
||||
it 'should hide comment reviewer name on rubric popup', priority: "1", test_id: 216386 do
|
||||
get "/courses/#{review_course.id}/assignments/#{assignment.id}/submissions/#{reviewed.id}"
|
||||
f('.assess_submission_link').click
|
||||
wait_for_animations
|
||||
|
@ -131,12 +131,12 @@ describe "assignments" do
|
|||
context 'when reviewer is logged in' do
|
||||
before(:each) { user_logged_in(user: reviewer) }
|
||||
|
||||
it 'should show comment reviewer name on submission page' do
|
||||
it 'should show comment reviewer name on submission page', priority: "1", test_id: 216387 do
|
||||
get "/courses/#{review_course.id}/assignments/#{assignment.id}/submissions/#{reviewed.id}"
|
||||
expect(f("#submission_comment_#{comment.id} .author_name")).to include_text(comment.author_name)
|
||||
end
|
||||
|
||||
it 'should show comment reviewer name on rubric popup' do
|
||||
it 'should show comment reviewer name on rubric popup', priority: "1", test_id: 216388 do
|
||||
get "/courses/#{review_course.id}/assignments/#{assignment.id}/submissions/#{reviewed.id}"
|
||||
f('.assess_submission_link').click
|
||||
wait_for_animations
|
||||
|
@ -147,12 +147,12 @@ describe "assignments" do
|
|||
context 'when teacher is logged in' do
|
||||
before(:each) { user_logged_in(user: teacher) }
|
||||
|
||||
it 'should show comment reviewer name on submission page' do
|
||||
it 'should show comment reviewer name on submission page', priority: "1", test_id: 216389 do
|
||||
get "/courses/#{review_course.id}/assignments/#{assignment.id}/submissions/#{reviewed.id}"
|
||||
expect(f("#submission_comment_#{comment.id} .author_name")).to include_text(comment.author_name)
|
||||
end
|
||||
|
||||
it 'should show comment reviewer name on rubric popup' do
|
||||
it 'should show comment reviewer name on rubric popup', priority: "1", test_id: 216391 do
|
||||
get "/courses/#{review_course.id}/assignments/#{assignment.id}/submissions/#{reviewed.id}"
|
||||
f('.assess_submission_link').click
|
||||
wait_for_animations
|
||||
|
|
|
@ -10,7 +10,7 @@ describe "quizzes assignments" do
|
|||
end
|
||||
|
||||
context "created on the index page" do
|
||||
it "should redirect to the quiz" do
|
||||
it "should redirect to the quiz", priority: "2", test_id: 220306 do
|
||||
ag = @course.assignment_groups.create!(:name => "Quiz group")
|
||||
get "/courses/#{@course.id}/assignments"
|
||||
build_assignment_with_type("Quiz", :assignment_group_id => ag.id, :name => "New Quiz", :submit => true)
|
||||
|
@ -20,7 +20,7 @@ describe "quizzes assignments" do
|
|||
end
|
||||
|
||||
context "created with 'more options'" do
|
||||
it "should redirect to the quiz new page and maintain parameters" do
|
||||
it "should redirect to the quiz new page and maintain parameters", priority: "2", test_id: 220307 do
|
||||
ag = @course.assignment_groups.create!(:name => "Quiz group")
|
||||
get "/courses/#{@course.id}/assignments"
|
||||
expect_new_page_load { build_assignment_with_type("Quiz", :assignment_group_id => ag.id, :name => "Testy!", :more_options => true) }
|
||||
|
@ -29,7 +29,7 @@ describe "quizzes assignments" do
|
|||
end
|
||||
|
||||
context "edited from the index page" do
|
||||
it "should update quiz when updated" do
|
||||
it "should update quiz when updated", priority: "1", test_id: 220308 do
|
||||
assign = @course.assignments.create!(:name => "Testy!", :submission_types => "online_quiz")
|
||||
get "/courses/#{@course.id}/assignments"
|
||||
edit_assignment(assign.id, :name => "Retest!", :submit => true)
|
||||
|
@ -38,7 +38,7 @@ describe "quizzes assignments" do
|
|||
end
|
||||
|
||||
context "edited with 'more options'" do
|
||||
it "should redirect to the quiz edit page and maintain parameters" do
|
||||
it "should redirect to the quiz edit page and maintain parameters", priority: "2", test_id: 220309 do
|
||||
assign = @course.assignments.create!(:name => "Testy!", :submission_types => "online_quiz")
|
||||
get "/courses/#{@course.id}/assignments"
|
||||
expect_new_page_load { edit_assignment(assign.id, :name => "Retest!", :more_options => true)}
|
||||
|
|
|
@ -21,7 +21,7 @@ describe "assignment rubrics" do
|
|||
@assignment
|
||||
end
|
||||
|
||||
it "should add a new rubric to assignment and verify points" do
|
||||
it "should add a new rubric to assignment and verify points", priority: "1", test_id: 114341 do
|
||||
initial_points = 2.5
|
||||
rubric_name = 'new rubric'
|
||||
create_assignment_with_points(initial_points)
|
||||
|
@ -42,7 +42,7 @@ describe "assignment rubrics" do
|
|||
expect(f('#rubrics .rubric .rubric_title .displaying .title')).to include_text(rubric_name)
|
||||
end
|
||||
|
||||
it "should carry decimal values through rubric to grading" do
|
||||
it "should carry decimal values through rubric to grading", priority: "2", test_id: 220315 do
|
||||
student_in_course
|
||||
@assignment = create_assignment_with_points(2.5)
|
||||
rubric_model(:title => 'new rubric', :data =>
|
||||
|
@ -71,7 +71,7 @@ describe "assignment rubrics" do
|
|||
expect(f('#rubric_summary_container .rubric_total').text).to eq '2.5'
|
||||
end
|
||||
|
||||
it "should import rubric to assignment" do
|
||||
it "should import rubric to assignment", priority: "1", test_id: 220317 do
|
||||
create_assignment_with_points(2)
|
||||
|
||||
outcome_with_rubric
|
||||
|
@ -88,7 +88,7 @@ describe "assignment rubrics" do
|
|||
expect(f('#rubric_'+@rubric.id.to_s+' .rubric_title .title')).to include_text(@rubric.title)
|
||||
end
|
||||
|
||||
it "should not adjust assignment points possible for grading rubric" do
|
||||
it "should not adjust assignment points possible for grading rubric", priority: "1", test_id: 220324 do
|
||||
create_assignment_with_points(2)
|
||||
|
||||
get "/courses/#{@course.id}/assignments/#{@assignment.id}"
|
||||
|
@ -103,7 +103,7 @@ describe "assignment rubrics" do
|
|||
expect(f("#assignment_show .points_possible").text).to eq '2'
|
||||
end
|
||||
|
||||
it "should adjust assignment points possible for grading rubric" do
|
||||
it "should adjust assignment points possible for grading rubric", priority: "1", test_id: 220326 do
|
||||
create_assignment_with_points(2)
|
||||
|
||||
get "/courses/#{@course.id}/assignments/#{@assignment.id}"
|
||||
|
@ -119,7 +119,7 @@ describe "assignment rubrics" do
|
|||
expect(f("#assignment_show .points_possible").text).to eq '5'
|
||||
end
|
||||
|
||||
it "should not allow XSS attacks through rubric descriptions" do
|
||||
it "should not allow XSS attacks through rubric descriptions", priority: "2", test_id: 220327 do
|
||||
student = user_with_pseudonym :active_user => true,
|
||||
:username => "student@example.com",
|
||||
:password => "password"
|
||||
|
@ -169,7 +169,7 @@ describe "assignment rubrics" do
|
|||
text).to eq "<b>This text should not be bold</b>"
|
||||
end
|
||||
|
||||
it "should follow learning outcome ignore_for_scoring" do
|
||||
it "should follow learning outcome ignore_for_scoring", priority: "2", test_id: 220328 do
|
||||
student_in_course(:active_all => true)
|
||||
outcome_with_rubric
|
||||
@assignment = @course.assignments.create(:name => 'assignment with rubric')
|
||||
|
@ -199,7 +199,7 @@ describe "assignment rubrics" do
|
|||
wait_for_ajaximations
|
||||
end
|
||||
|
||||
it "should properly manage rubric focus on submission preview page" do
|
||||
it "should properly manage rubric focus on submission preview page", priority: "2", test_id: 220329 do
|
||||
student_in_course(:active_all => true)
|
||||
outcome_with_rubric
|
||||
@assignment = @course.assignments.create(:name => 'assignment with rubric')
|
||||
|
@ -222,7 +222,7 @@ describe "assignment rubrics" do
|
|||
check_element_has_focus(f(".assess_submission_link"))
|
||||
end
|
||||
|
||||
it "should allow multiple rubric associations for grading" do
|
||||
it "should allow multiple rubric associations for grading", priority: "1", test_id: 220330 do
|
||||
outcome_with_rubric
|
||||
@assignment1 = @course.assignments.create!(:name => "assign 1", :points_possible => @rubric.points_possible)
|
||||
@assignment2 = @course.assignments.create!(:name => "assign 2", :points_possible => @rubric.points_possible)
|
||||
|
@ -242,7 +242,7 @@ describe "assignment rubrics" do
|
|||
expect(@association2.rubric.id).to eq @rubric.id
|
||||
end
|
||||
|
||||
it "shows status of 'use_for_grading' properly" do
|
||||
it "shows status of 'use_for_grading' properly", priority: "1", test_id: 220331 do
|
||||
outcome_with_rubric
|
||||
@assignment1 = @course.assignments.create!(
|
||||
:name => "assign 1",
|
||||
|
@ -267,7 +267,7 @@ describe "assignment rubrics" do
|
|||
course_with_student_logged_in
|
||||
end
|
||||
|
||||
it "should properly show rubric criterion details for learning outcomes" do
|
||||
it "should properly show rubric criterion details for learning outcomes", priority: "2", test_id: 220332 do
|
||||
@assignment = @course.assignments.create(:name => 'assignment with rubric')
|
||||
outcome_with_rubric
|
||||
|
||||
|
@ -280,7 +280,7 @@ describe "assignment rubrics" do
|
|||
expect(f(".ui-dialog div.long_description").text).to eq "This is awesome."
|
||||
end
|
||||
|
||||
it "should show criterion comments" do
|
||||
it "should show criterion comments", priority: "2", test_id: 220333 do
|
||||
# given
|
||||
comment = 'a comment'
|
||||
teacher_in_course(:course => @course)
|
||||
|
@ -306,7 +306,7 @@ describe "assignment rubrics" do
|
|||
expect(ee.last).not_to be_displayed
|
||||
end
|
||||
|
||||
it "shouldn't show 'update description' button in long description dialog" do
|
||||
it "shouldn't show 'update description' button in long description dialog", priority: "2", test_id: 220334 do
|
||||
@assignment = @course.assignments.create(:name => 'assignment with rubric')
|
||||
rubric_for_course
|
||||
@rubric.associate_with(@assignment, @course, :purpose => 'grading')
|
||||
|
@ -323,7 +323,7 @@ describe "assignment rubrics" do
|
|||
course_with_designer_logged_in
|
||||
end
|
||||
|
||||
it "should allow a designer to create a course rubric" do
|
||||
it "should allow a designer to create a course rubric", priority: "2", test_id: 220335 do
|
||||
rubric_name = 'this is a new rubric'
|
||||
get "/courses/#{@course.id}/rubrics"
|
||||
|
||||
|
|
Loading…
Reference in New Issue