canvas-lms/spec/views
Ahmad Amireh 6b8d55a77b Controlling visibility of student quiz scores
Teachers can now control when, and for how long, students get to see the
correct answers to their quiz submissions.

The patchset introduces two new columns to Quiz and a CSS rework of the
quiz options form. See linked references for more info.

Quiz#show_correct_answers should no longer be directly accessed, use
Quiz#show_correct_answers? instead.

== Test plan

CAs stands for Correct Answers.

  - Create a quiz with 3 questions
  - Take the quiz as a student, and:
    - get 2/3 of the questions answered correctly
    - submit it

Case A - Showing CAs the moment the submission goes in:

  - Edit the quiz, and:
    - Tick the 'Let Students See Their Score Points' checkbox
    - Leave both date fields empty
    - Save quiz
  - Refresh student view
    - You should see the CAs

Case B - Showing CAs after some date:

  - Edit the quiz, and:
    - Tick the 'Let Students See Their Score Points' checkbox
    - Set the "Show Correct Answers At" to 3-days from now
  - Refresh student view:
    - You should not see the CAs
  - Edit the quiz, and:
    - Set the date to 3-days back
  - Refresh student view:
    - You should see the CAs

Case C - Hiding CAs after some date:

  - Edit the quiz, and:
    - Tick the 'Let Students See Their Score Points' checkbox
    - Set the "Hide Correct Answers At" to 3-days from now
  - Refresh student view:
    - You should see the CAs
    - You should see an alert that tells you the CAs will be hidden at
      the date you chose earlier
  - Edit the quiz, and:
    - Set the date to 3-days-back
  - Refresh student view:
    - You should no longer see the CAs
    - Alert should read that the answers stopped being visible as of the
      date you chose earlier

Case D - Creating a time-frame for showing CAs:

  - Edit the quiz, and:
    - Tick the 'Let Students See Their Score Points' checkbox
    - Set the "Show Correct Answers At" to yesterday
    - Set the "Hide Correct Answers At" to 3-days from now
  - Refresh student view:
    - You should see the CAs
    - You should see an alert that tells you the CAs will be visible
      between yesterday and 3 days from now
  - Edit the quiz, and:
    - Set the "Show At" date to tomorrow
  - Refresh student view:
    - You should no longer see the CAs
    - Alert should still tell you that the CAs will be visible starting
      tomorrow until 3 days from now

Case E - Choosing a bad range

  - Edit the quiz and:
    - Tick the 'Let Students See Their Score Points' checkbox
    - Set the "Show at" to tomorrow
    - Set the "Hide at" to today, or tomorrow
    - You should see an error-box

== Notes and really wild things

- http://docs.kodoware.com/canvas/cnvs-8103-take2
- http://docs.kodoware.com/canvas/cnvs-8103 (legacy changes)

refs CNVS-8103, CNVS-9386

Change-Id: Ib241ee5f143b87164105b7541aadac00f38f79ad
Reviewed-on: https://gerrit.instructure.com/25505
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
Reviewed-by: Derek DeVries <ddevries@instructure.com>
Product-Review: Derek DeVries <ddevries@instructure.com>
2013-11-20 22:08:21 +00:00
..
account_authorization_configs fix failing specs (caused by libxml2 upgrade) 2013-04-18 16:29:44 +00:00
accounts add account quotas tab 2013-05-11 02:56:32 +00:00
announcements new discussion topics/announcement index, edit and create 2012-08-17 09:26:04 -06:00
assignments updated the syllabus to better handle public courses 2013-04-26 17:57:37 +00:00
calendars fix calendar view specs that I broke 2012-06-22 12:06:56 -06:00
collaborations validate nullness in the db on a bunch of columns 2013-09-12 22:20:39 +00:00
communication_channels require terms by default, fixes CNVS-7330 2013-08-12 15:57:51 +00:00
conferences remove dimdim plugin 2013-10-07 21:56:10 +00:00
context_modules respect locks on external url items; fixes #9054 2012-09-26 16:47:40 -06:00
courses add :manage_storage_quotas permission 2013-03-29 18:27:39 +00:00
discussion_topics disable speedgrader in courses with large_roster flag. 2013-02-15 16:38:45 -07:00
enrollment_terms added fields for editing sis_source_ids and new sis permission 2011-05-31 17:53:46 -06:00
eportfolios account-level option to disable eportfolios, closes #5169 2011-08-24 17:38:06 -06:00
files i18n files part 2 2011-06-16 07:18:28 -06:00
gradebook2 disable uploading scores in large_roster courses 2013-02-13 22:20:14 -07:00
gradebooks plumb media comment types to grade summary page 2013-04-03 02:36:53 +00:00
groups new dashboard design 2012-11-11 21:56:16 -07:00
layouts sub-account branding; closes #9368 2012-07-18 13:57:52 -06:00
profile remove some unused views 2013-03-29 18:17:25 +00:00
pseudonym_sessions add ldap to login form 2012-10-24 15:12:04 -06:00
pseudonyms account-level password policy support, fixes CNVS-4211 2013-04-05 20:13:26 +00:00
quiz_submissions Controlling visibility of student quiz scores 2013-11-20 22:08:21 +00:00
quizzes fix grade by question for question banks 2013-11-07 22:35:59 +00:00
sections student view; closes #6995 2012-04-03 14:11:07 -06:00
shared set correct due_date for teachers on vdd assignments 2013-03-01 13:33:49 -07:00
submissions assignments with no preview should show 'No Preview Available' 2012-05-29 09:17:29 -06:00
terms allow deleting terms that contain only deleted courses fixes #4937 2011-06-24 10:23:55 -06:00
users remove some unused views 2013-03-29 18:17:25 +00:00
wiki_page_revisions allow any wiki page to be set as front page 2013-05-30 02:51:35 +00:00
wiki_pages allow any wiki page to be set as front page 2013-05-30 02:51:35 +00:00
views_helper.rb allow administrators to manually confirm communication channels 2011-09-15 15:07:44 -06:00