canvas-lms/spec
Jeff Largent 91f4b7bc34 Allow selecting grading periods in K-5 Grades dashboard
This change adds the ability to select a specific grading period on
the Grades tab in the K-5 dashboard. The select drop-down defaults
to "Current Grading Period", which will show grades from the currently
active grading period for each course (if any). The other options in
the drop-down are all grading periods associated with all the courses
the user is enrolled in, and selecting one will filter out any courses
not associated with that grading period.

closes LS-1914
flag = canvas_for_elementary

Test plan:

Set up grading periods:
  - Go to /accounts/<account_id>/terms and set up at least 2 terms if
    you don't already have multiple terms set up
  - Go to /accounts/<account_id>/grading_standards and click
    "+ Set of Grading Periods" under the "Grading Periods" tab
  - Add 2 grading period groups, each with at least 2 grading periods.
  - Create or go to 2 existing courses, and make sure each is
    associated with a different term
  - Create or update assignments with points for both courses, making
    sure that some of the assignments are due in the date ranges of
    all 4 grading periods
  - Grade the assignments for a student enrolled in both courses

Verify grading periods selector:
  - Log in as the student with graded assignments in both courses
  - Go to the "Grades" tab on the dashboard
  - Expect to see grades from the latest grading period in both
    courses
  - Select a specific grading period
  - Expect to only see courses associated with that grading period
  - Expect courses that appear to have scores / grades for that
    grading period (or "Not graded" if none of their assignments have
    been submitted / grades for that grading period)

  - Update one grading period group so that none of its grading
    periods apply to the current date
  - As the student, go back to the grades tab on the K-5 dashboard
  - Expect the course associated with that grading period group to
    show "--" instead of "Not graded"

Change-Id: I7f73e8a4213ecd21e6138108aede9748b52ce569
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/259180
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Peyton Craighill <pcraighill@instructure.com>
Reviewed-by: Nate Armstrong <narmstrong@instructure.com>
QA-Review: Nate Armstrong <narmstrong@instructure.com>
2021-03-09 18:38:00 +00:00
..
apis Allow selecting grading periods in K-5 Grades dashboard 2021-03-09 18:38:00 +00:00
coffeescripts fix up wiki rights permissions to allow for delete pages 2021-03-04 15:11:19 +00:00
contracts pull canvas::security out into a gem 2021-03-02 20:58:55 +00:00
controllers spec: fix external tool controler flakey spec failing 2021-03-08 21:40:17 +00:00
factories Use versioned submission for tracking outcomes 2021-02-22 19:49:14 +00:00
factory_bot add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
fixtures provide lti resource links importer into course copy 2021-03-02 12:19:40 +00:00
formatters drop rails 5.2 2021-02-19 02:41:07 +00:00
gem_integration/canvas_connect add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
graphql spec: remove outdated course post policy spec 2021-03-08 21:15:26 +00:00
helpers set new math ENV.FEATURES flag based on root account, not site_admin 2021-02-26 20:51:48 +00:00
initializers drop rails 5.2 2021-02-19 02:41:07 +00:00
instfs/selenium add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
integration pull canvas::security out into a gem 2021-03-02 20:58:55 +00:00
javascripts all grading periods: ignore unposted anonymous assignments 2021-03-09 17:58:16 +00:00
lib pull canvas_errors out into a gem 2021-03-05 17:00:50 +00:00
manual_seeding add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
messages Remove link to reschedule if appointment group is not active 2021-03-08 22:08:41 +00:00
migrations add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
models spec: re-enabling previously flakey spec 2021-03-08 18:53:45 +00:00
observers update to inst-jobs 1.0 via shims 2020-10-28 13:46:49 +00:00
presenters Validate k5 based off flag and account setting 2021-03-08 20:08:13 +00:00
requests add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
schemas/lti add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
selenium Validate k5 based off flag and account setting 2021-03-08 20:08:13 +00:00
serializers part 3: change lookup_id and resource_link_id to UUID datatype 2021-02-11 18:02:20 +00:00
shared_examples Allow reassignment from SpeedGrader 2021-02-17 00:28:25 +00:00
support raise exception if custom_timeout greater than 60s 2021-02-03 22:15:25 +00:00
views hide NQ option in add content to module if NQ is disabled 2021-03-02 15:13:14 +00:00
.eslintrc spec: add global sandbox 2018-07-13 15:16:23 +00:00
.rspec_parallel use parallel_tests for more parallelization 2020-03-30 21:38:47 +00:00
ams_spec_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
axe_selenium_helper.rb Add abililty to run selenium tests with axe assertions 2021-03-05 16:19:26 +00:00
broadcast_integration.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
cassandra_spec_helper.rb move database_builder to canvas_cassandra 2021-02-25 15:19:20 +00:00
conditional_release_spec_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
coverage_tool.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
factories.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
factory_bot_spec_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
feature_flag_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
file_upload_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
force_failure_spec.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
import_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
jspec.sh
lti2_course_spec_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
lti2_spec_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
lti_1_3_spec_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
lti_1_3_tool_configuration_spec_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
lti_spec_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
plagiarism_platform_spec_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
quiz_spec_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
rcov.opts
rspec_mock_extensions.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
sharding_spec_helper.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
simple_cov_result_merger.rb add # frozen_string_literal: true for specs 2020-10-27 20:48:35 +00:00
spec.opts remove abort_on_consistent_badness_formatter 2020-10-13 18:10:04 +00:00
spec_helper.rb Add abililty to run selenium tests with axe assertions 2021-03-05 16:19:26 +00:00