Commit Graph

17079 Commits

Author SHA1 Message Date
Jahnavi Yetukuri 2c3eb3809e People page specs
jyetukuri, panda, 2

Change-Id: Iaab8eb010ecb18c93a63da06abcf83d47b46838c
Reviewed-on: https://gerrit.instructure.com/60224
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Tested-by: Jenkins
2015-08-07 18:37:43 +00:00
MFairbourn 047c2349ef marking quizzes_validate_attempts_spec.rb specs fragile
test plan:
-Pass jenkins
-syntax check

Change-Id: I100287edeb7cb91a6e06295287b882b82a82f671
Reviewed-on: https://gerrit.instructure.com/60209
Reviewed-by: Pedro Fajardo <pfajardo@instructure.com>
Tested-by: Jenkins
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2015-08-07 18:09:00 +00:00
Michael Nomitch 950eaf370c tz.changeLocales works with moment
fixes CNVS-21574

test plan:
  - Do the following commands in a JS console
  tz = require('timezone');
  tz.changeLocale('fr_FR');
  tz.moment('mercredi 1 juillet 2015 15:00', 'LLLL');

  - it works and returns an object with a french locale

Change-Id: I73d14ef5ed6fb343e2a05eaf8178a4b4d8d8a840
Reviewed-on: https://gerrit.instructure.com/59987
Tested-by: Jenkins
Reviewed-by: Jacob Fugal <jacob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Jacob Fugal <jacob@instructure.com>
2015-08-07 17:31:32 +00:00
Derek Bender d6eaed579f create ProvisionalGrade table and model
- extracted some shared behavior between submissions and provisional grades
- improved organization in submissions

refs: CNVS-22006
Change-Id: I4207893362e4548d1d76d066322f3b333357807a
Reviewed-on: https://gerrit.instructure.com/59643
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Derek Bender <dbender@instructure.com>
2015-08-07 17:12:37 +00:00
Cody Cutrer 0f329d3960 bump byebug
Change-Id: I17abb6888fe12ed7a703732bc78a6bdedcf4b551
Reviewed-on: https://gerrit.instructure.com/59872
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2015-08-07 16:57:45 +00:00
Steven Shepherd 474e21114f Add tests for archiving, unarchiving, and flash messages from message list
sshepherd,panda,6

Test Plan:
 - Run specs

Change-Id: If934b92bc94e178d5d2a8975c735367e29d32e39
Reviewed-on: https://gerrit.instructure.com/60174
Reviewed-by: Taylor Wilson <twilson@instructure.com>
Tested-by: Jenkins
Product-Review: Steven Shepherd <sshepherd@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
2015-08-07 16:39:28 +00:00
Keith Garner 4d99c40afb assignment page indicates that all submission types have been excused
Assignment page now indicates for all submission types that the
assignment has been excused. Because of this, students will now
properly see that excused No Submission and On Paper assignments have been
excused.

fixes CNVS-22110

test plan:
- Create two assignments, one with No Submission and one On Paper
- Excuse the assignments and view the assignment pages as a student.
- Observe that the assignment says 'Excused!' in the submission details.

Change-Id: I31114e84566ea5a0121aed50760997d9284cc797
Reviewed-on: https://gerrit.instructure.com/60077
Reviewed-by: Cody Poll <cpoll@instructure.com>
Tested-by: Jenkins
QA-Review: Adrian Foong <afoong@instructure.com>
Product-Review: Josh Simpson <jsimpson@instructure.com>
2015-08-07 16:37:28 +00:00
Keith Garner 3260f7f1ae gradebook importer considers variations of 'EX' as equivalent
gradebook importer now handles all case variations of 'EX' as excused.  Because
of this, case variations are not considered changes to grades on import.

fixes CNVS-21909

test plan:
- Go to Gradebook.
- Excuse a few assignments
- Export Grades.
- Change an 'EX' grade to a different case, i.e. 'ex', 'eX', 'Ex', then import
  the same CSV file.
- Note that 'no changes made' page is displayed

Change-Id: I97bf28d2c9a333cd38f9890b10df1d41a6db322e
Reviewed-on: https://gerrit.instructure.com/59920
Tested-by: Jenkins
Reviewed-by: Cameron Matheson <cameron@instructure.com>
QA-Review: Jason Carter <jcarter@instructure.com>
Product-Review: Josh Simpson <jsimpson@instructure.com>
2015-08-07 16:37:13 +00:00
Andraia Allsop 59bf3714a7 Allows teacher to clone a group set.
Option 'Clone Group Set' added in the group set cog wheel.
When modifying group membership on a group that has submitted an
assignment, teacher is alerted and given option of cloning group set
or changing groups.

fixes CNVS-19746

test plan:
- as a teacher
  - navigate to a course
  - select 'People' and go to 'Groups'
  - create a new group set with groups and memberships
  - create a group assignment for that group set
- as a student who is a member of a group of that group set
  - submit the assignment for their group
- as a teacher
  - modify the memberships for that group set
    - for groups that have submissions
      - drag and drop a student
        - out of group into another group
        - out of group into 'Unassigned Students'
        - into group from another group
        - into group from 'Unassigned Students'
      - remove student using 'Remove' option in cog wheel
      - move student using 'Move To...' option in cog wheel
      - add student from 'Unassigned Students' using '+' option
      - when 'Clone Group Set' modal is displayed
        - select 'New Group Set'
          - memberships in original group set should not change
          - within cloned group set
            - should contain all groups, group leader, memberships,
              and membership limits from original group set
            - group membership modification should function as normal
        - selecting 'Change Groups'
          - group membership changes
  - delete assignment created for group set
    - group membership modification should function as normal
  - select 'Clone Group Set' option from group set cog wheel
    - should follow same expectations when 'New Group Set' is
      selected from alert
- significant UI changes were made and should be tested
- accessibility has been considered and should be tested
- regression test on group

Change-Id: I59276eca93f86d370f8658f5bdd0e9464f3fa061
Reviewed-on: https://gerrit.instructure.com/58753
Tested-by: Jenkins
Reviewed-by: Andrew Butterfield <abutterfield@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Andraia Allsop <aallsop@instructure.com>
2015-08-07 16:31:52 +00:00
August Thornton 4285adae21 spec to cover multiple ldap config radio buttons
august,panda,1

Change-Id: I96fe309ef45f27ca6acb9ebb201f0057126e7fb4
Reviewed-on: https://gerrit.instructure.com/60097
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: August Thornton <august@instructure.com>
QA-Review: August Thornton <august@instructure.com>
2015-08-07 16:30:13 +00:00
Derek Hansen 64d9d65164 Assignment - Quick Edit
dhansen,panda,3

Change-Id: I5379b318dc31a5c5d439671baebd171328f5d837
Reviewed-on: https://gerrit.instructure.com/60105
Tested-by: Jenkins
Reviewed-by: August Thornton <august@instructure.com>
Product-Review: Derek Hansen <dhansen@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-08-07 15:55:50 +00:00
Deepeeca Soundarrajan 0b073141aa Outcomes - match specs and remove duplicates
Change-Id: I0a3c8a4e07be16b8e0ee52a175213f2336ce7a00
Reviewed-on: https://gerrit.instructure.com/59940
Tested-by: Jenkins
Reviewed-by: Derek Hansen <dhansen@instructure.com>
Product-Review: Derek Hansen <dhansen@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-08-07 15:55:31 +00:00
Robert Lamb aca2ffe6da renamed grading period spec files
Change-Id: I06f08ffadc01143bb00b1e5f2b11135dddfb2b01
Reviewed-on: https://gerrit.instructure.com/60154
Reviewed-by: Derek Hansen <dhansen@instructure.com>
Tested-by: Jenkins
Product-Review: Derek Hansen <dhansen@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-08-07 15:50:05 +00:00
Transifreq 8c479a1d83 Updated sv translation
Change-Id: I1015206aebd27e2bf897b4bc9c448ca760e7cb60
2015-08-07 05:33:26 -06:00
Transifreq 48640e55b1 Updated nl translation
Change-Id: I00771258a715387651accc32f44d5593027b6c4c
2015-08-07 05:26:17 -06:00
Transifreq 10c0466b34 Updated nb translation
Change-Id: Ifed64fc8be01e349bc1cb83d53cda86dd87ea0f2
2015-08-07 05:24:41 -06:00
Transifreq c122affea1 Updated da translation
Change-Id: I09e1b830388ccd5a84bcc707cf5bfef9590a6a08
2015-08-07 05:12:05 -06:00
Derek Hansen f927024b1d More quiz stats specs
dhansen,panda,5

Change-Id: I90d04ab3dcc22cf8553b9524384c40eede819c76
Reviewed-on: https://gerrit.instructure.com/60213
Reviewed-by: Matt Fairbourn <mfairbourn@instructure.com>
Tested-by: Jenkins
Product-Review: Derek Hansen <dhansen@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-08-07 05:40:59 +00:00
James Williams ff7696789c rails4: fix delayed_job runner connection not established error
refs #CNVS-21596

Change-Id: If144ea4e42fd632ef80339b450cda9c20b3fb555
Reviewed-on: https://gerrit.instructure.com/60149
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2015-08-07 03:30:18 +00:00
Brock Cooper 85f20bb121 Add Warning Icon to Modules with submissions
Fixes CNVS-22366

Test Plan:
1) Add a module with the "must complete all" requirements option.
2) For one of the requirements, have an assignment with a "score at least"
3) As a student, submit the assignment
4) Ensure that the yellow warning sign is now showing in the module header

Change-Id: Idf7067ae7ee9f9361abb44a1d91bb554d164b462
Reviewed-on: https://gerrit.instructure.com/60043
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Tested-by: Jenkins
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Brock Cooper <bcooper@instructure.com>
2015-08-06 21:37:58 +00:00
Dan Minkevitch e5a6367d02 Throws 401 if user doesn't have permissions to change course settings
fixes CNVS-22168

Test Plan:
* Create a course and multiple grading schemes
* Attempt to change the course's grading scheme via API (course[grading_standard_id]) as an account user with "Edit Grades" permission disabled
* You should receive a HTTP 401 (Unauthorized) response
* If "Edit Grades" permissions is enabled, the grading scheme should change without issue.

Change-Id: I685166062636170b69906457c0c46a74ee6d9500
Reviewed-on: https://gerrit.instructure.com/59933
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Dan Minkevitch <dan@instructure.com>
2015-08-06 20:40:57 +00:00
MFairbourn 1528dc846e adding specs for wiki pages, and front page behavior
mattf,panda,3

Test plan:
-Pass Jenkins
-Syntax check
-Verify IDs

Change-Id: Ifa299ddddf96452ef5952427a181ece9e27b6d23
Reviewed-on: https://gerrit.instructure.com/60200
Reviewed-by: Derek Hansen <dhansen@instructure.com>
Tested-by: Jenkins
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2015-08-06 20:13:56 +00:00
John Corrigan 3dcaea5a18 update CC::WebResources#add_course_files to filter files by permission
fixes CNVS-21391

The content export tool is being updated so that it consders the
provided user's rights, so that the CC export can be used for the new
epub generation tool.

This PS updates CC::WebResources#add_course_files to pass a user
instance to the ContentZipper instance it uses to zip up a course's
files, so that the ContentZipper can determine if the user has the
correct permissions to see the files.

Also, we update ContentZipper so that a user can be provided via
attr_writter.

test plan:
- Regression test for content export tool files functionality.

Change-Id: Ic5edecef28d60d9517ce3a67bc8aef5c5dade9cc
Reviewed-on: https://gerrit.instructure.com/59440
Tested-by: Jenkins
Reviewed-by: Brian Finney <bfinney@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Cameron Sutter <csutter@instructure.com>
2015-08-06 19:01:09 +00:00
John Corrigan 9a3a560539 use DisucssionTopic::ScopedToUser in CC::TopicResources#add_topics
fixes CNVS-21394

The content export tool is being updated so that it consders the
provided user's rights, so that the CC export can be used for the new
epub generation tool.

This PS employs DiscussionTopic::ScopedToUser to make sure that the user
only gets the discussion topics that they have the right to view.

test plan:
- Regression test for content export tool discussion topic functionality.

Change-Id: Id67bf1ed69c4b2066ff9d81678a5d61d52702978
Reviewed-on: https://gerrit.instructure.com/59365
Tested-by: Jenkins
Reviewed-by: Brian Finney <bfinney@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
Product-Review: Cameron Sutter <csutter@instructure.com>
2015-08-06 19:00:54 +00:00
Jahnavi Yetukuri 8f329ed9a2 Match specs for admin for context modules
jyetukuri,panda,1

Change-Id: I2c102404ec4c712bfee834f9cfb2c94681ced07d
Reviewed-on: https://gerrit.instructure.com/60163
Reviewed-by: Taylor Wilson <twilson@instructure.com>
Tested-by: Jenkins
Product-Review: Pedro Fajardo <pfajardo@instructure.com>
QA-Review: Pedro Fajardo <pfajardo@instructure.com>
2015-08-06 18:18:00 +00:00
Weston Dransfield 33df928792 Add domain and tool instnace guid to lti registration request
Fixes PLAT-1181

Change-Id: I9e7d9004502f0166678f39e9fb02f1b2b8b1f969
Reviewed-on: https://gerrit.instructure.com/59875
Tested-by: Jenkins
Reviewed-by: Nathan Mills <nathanm@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Weston Dransfield <wdransfield@instructure.com>
2015-08-06 18:01:13 +00:00
MFairbourn bf463dbe08 adding wiki page specs for handling deleted pages
mattf,panda,2

Test Plan:
-Pass Jenkins
-check for syntax errors
-verfiy test_ids

Change-Id: I8929a504fbe8688f42b3fc05a8cdef7bbe3a8831
Reviewed-on: https://gerrit.instructure.com/60129
Reviewed-by: Derek Hansen <dhansen@instructure.com>
Tested-by: Jenkins
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2015-08-06 17:50:44 +00:00
August Thornton c542e7a522 make radio_button_tag id's unique per config
fixes CNVS-22165

test plan:
  * go to /accounts/self/authentication_providers
  * create at least two ldap configs
  * ensure the radio buttons work independently
    per ldap configuration
  * ensure radio button selections save properly
  * default ldap config should check
    "No TLS" by default

Change-Id: Ibb1702b0d732a91856191b054d33c389a5c0dbab
Reviewed-on: https://gerrit.instructure.com/60089
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: August Thornton <august@instructure.com>
2015-08-06 17:32:05 +00:00
cguanzon bbabaa9707 spec:selenium: removes tests for undesired behavior
- removes the Conferences and Collaborations tests
  about Public Courses

Change-Id: Ic70e6c0b072f53d24bebe9e13468c1a2b574446d
Reviewed-on: https://gerrit.instructure.com/60151
Tested-by: Jenkins
Reviewed-by: Heath Hales <hhales@instructure.com>
Reviewed-by: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Steven Shepherd <sshepherd@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
2015-08-06 17:24:37 +00:00
Erin Hallmark 45f29292cd removed mention of Scribd from Google Docs Previews help dialog
Change-Id: Id5c69429b9c159c6f6617beb7e69b1a0be6ddffe
Reviewed-on: https://gerrit.instructure.com/59590
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
2015-08-06 16:38:13 +00:00
Erin Hallmark 5cdb323d3d changed URL to point to new community
Change-Id: I626afed6c1db860cd28c891856188d3d73b39b5e
Reviewed-on: https://gerrit.instructure.com/59583
Tested-by: Jenkins
Reviewed-by: Strand McCutchen <smccutchen@instructure.com>
QA-Review: Adrian Foong <afoong@instructure.com>
Product-Review: Josh Simpson <jsimpson@instructure.com>
2015-08-06 16:30:52 +00:00
Derek Hansen e2ce62f6d0 Quiz stats specs
dhansen,panda,5

Change-Id: I0a76528670f8ed9482549220c3c546d0dffb7b9f
Reviewed-on: https://gerrit.instructure.com/60137
Tested-by: Jenkins
Reviewed-by: Matt Fairbourn <mfairbourn@instructure.com>
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2015-08-06 16:06:37 +00:00
Weston Dransfield 2b0b7d26b0 Move placements to capabilities in the tool proxy. Placements are still written to both message_handler and resource_handler.
fixes PLAT-957

Test Plan:
     - Make sure a 'message_handler_id' column is added to the 'lti_resource_placements' table after migration
     - Use the master branch of https://github.com/westonkd/lti_tool_provider_example and make sure
       placements work as expected in Lti2Launch
     - use the 'placements_to_message' branch of https://github.com/westonkd/lti_tool_provider_example and
       make sure placements work as expected in Lti2Launch

Change-Id: I2d681eb8efb2a1c25e0250a89c09bb5d0c8ad797
Reviewed-on: https://gerrit.instructure.com/58654
Tested-by: Jenkins
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Reviewed-by: Nathan Mills <nathanm@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Weston Dransfield <wdransfield@instructure.com>
2015-08-06 15:48:13 +00:00
Heath Hales 9270f7041d Adding spec for C94166: Group Limit - Group (part 1)
hhales,panda,2

Change-Id: I44bffd360336453297c2134218e71d5c27f9dc17
Reviewed-on: https://gerrit.instructure.com/60062
Tested-by: Jenkins
Reviewed-by: Ben Bolton <bbolton@instructure.com>
QA-Review: Ben Bolton <bbolton@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
2015-08-06 15:14:34 +00:00
cguanzon f6368797c6 func.tests: removes public_courses_spec in favor of a shared context
- public_courses_spec was a shared example that was only
  used within itself.

- since no team clearly owns public courses, each spec was sent
  to the page it was being tested in

- creates a shared_context for public courses instead

- the tests for collaborations and conferences were not
  given an id since these are testing broken behavior
  (these might have to be completely removed in
   the future)

Change-Id: Ibd6464e229402ba2aaa005a33c7f82badf007b1a
Reviewed-on: https://gerrit.instructure.com/60123
Tested-by: Jenkins
Reviewed-by: Ben Bolton <bbolton@instructure.com>
QA-Review: Ben Bolton <bbolton@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
2015-08-06 15:04:06 +00:00
James Williams 5c29c5039a fix test student reset with quiz submission events
test plan:
* as a test student, start a quiz
* reset the test student
* should not receive an error

closes #CNVS-22303

Change-Id: I8389a35349f3505614b8c08b4c57dc7d9ea89dd5
Reviewed-on: https://gerrit.instructure.com/59909
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2015-08-06 14:39:40 +00:00
Jacob Fugal dd3bfa9168 tz.moment parses w/moment() but honors profile tz
closes CNVS-21572

test-plan:
 - in javascript console:

   tz = require('timezone');
   tz.changeZone('America/Detroit');
   tz.moment('June 24 at 10:00pm', 'MMMM D h:mmA').toDate();
   // should return 10pm EDT equivalent in browser timezone
   tz.moment('Jun 24 at 10:00pm -04:00', 'MMMM D h:mmA Z').toDate();
   // should return 10pm EDT equivalent in browser timezone
   tz.moment('Jun 24 at 10:00pm -06:00', 'MMMM D h:mmA Z').toDate();
   // should return 10pm MDT equivalent in browser timezone

Change-Id: I9dfda9ec5590afebcd4201daedc9a92d83b7498b
Reviewed-on: https://gerrit.instructure.com/59608
Reviewed-by: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Jacob Fugal <jacob@instructure.com>
2015-08-06 14:21:23 +00:00
James Williams 0261037259 fix self-enrollment login errors
test plan:
* create a course with self-enrollment enabled
* in a new browser session visit the self-enrollment link
* errors during logging in (e.g. incorrect username/password)
 should be shown

closes #CNVS-22332

Change-Id: Id4aba305fefe2a2929223bbf3e6899b49aac3b44
Reviewed-on: https://gerrit.instructure.com/59907
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2015-08-06 14:20:11 +00:00
Cody Cutrer 00d63fecfd rails4/ruby2.2: explicitly require test-unit
Change-Id: Ia9be2e8063eb4ab088ca6b8afc949d3e375f5240
Reviewed-on: https://gerrit.instructure.com/59874
Tested-by: Jenkins
Reviewed-by: James Williams  <jamesw@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2015-08-06 14:15:17 +00:00
Chris Hart 1b0e7ee394 Theme editor scrolling and layout refactor
Fixes: CNVS-22122

- Suppress scrolling on the body and instead have
  the Preview iframe and the Theme Editor sidebar
  scroll independently
- Refactor flex layout so we don't need to use
  fixed positioning and no longer have hidden
  inputs as part of the flexed layout
- Some small, nitpicky CSS updates

Test plan:
- Make sure the Use New Styles feature flag is ON
- Go to the Theme Editor from your admin account
- Clear your browser cache
- The Theme editor preview and sidebar should now
  each have their own scrollbars:
  http://cl.ly/image/021P2X1v3t1T
- Theme editor should look and work exactly the
  same as before

Change-Id: I8e56cae95c5a2898cc05fc61281be8a3c9724bd6
Reviewed-on: https://gerrit.instructure.com/59147
Reviewed-by: Jennifer Stern <jstern@instructure.com>
Product-Review: Jennifer Stern <jstern@instructure.com>
Tested-by: Jenkins
QA-Review: Myller de Araujo <myller@instructure.com>
2015-08-06 13:15:09 +00:00
MFairbourn 6b1cd1b53e adding should alert a teacher when accessing a non-existant page
mattf,panda,1

Test Plan:
-Passes Jenkins
-Check for Syntax errors
-Verify Test_ID

Change-Id: I7e6695f74a628e7865f81654aa12932fbf53ae14
Reviewed-on: https://gerrit.instructure.com/60107
Reviewed-by: Derek Hansen <dhansen@instructure.com>
Tested-by: Jenkins
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2015-08-06 01:01:58 +00:00
cguanzon 9f4aa4d3f2 spec:selenium: mathes terms of use tests to testrail ids
Change-Id: If1428214ffcd6a61a4b62c529232acb22dd46d67
Reviewed-on: https://gerrit.instructure.com/60084
Reviewed-by: Jahnavi Yetukuri <jyetukuri@instructure.com>
Tested-by: Jenkins
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2015-08-06 00:01:39 +00:00
Strand McCutchen 5a2269ff8a GradebookImporter only allows editing current assignments
fixes CNVS-19924

When a teacher uploads a CSV with assignments in past
grading periods then they are not able to change grades.

Test plan

1. As an admin, create an account level grading period in
   the past.
2. Create assignments due during the past grading period.
3. Login as a teacher.
4. Navigate to the gradebook
5. Click export to download a CSV
6. Change the grade for the assignment in the past grading
   period.
7. Click the export button and use the wizard to upload
   your modified CSV.
8. You should receive a message telling you you are not
   allowed to edit the assignment in the past.

Change-Id: Ia8701c3504b03bd6ed35d0da1fe56cd8330ace79
Reviewed-on: https://gerrit.instructure.com/55297
Reviewed-by: Dylan Ross <dross@instructure.com>
Tested-by: Jenkins
QA-Review: Jason Carter <jcarter@instructure.com>
Product-Review: Strand McCutchen <smccutchen@instructure.com>
2015-08-05 23:30:54 +00:00
Weston Dransfield 284c502f6d Make membership.roles variable expansion available in the account context
Fixes PLAT-1184

Test Plan
 - Install the test tool at the account level with the account navigation and course navigation placements
 - Once installed edit the app and add the custom field 'role_test=$Canvas.membership.roles'
 - launch the app from the account navigation and make sure the variable was expanded
 - launch the app from the course navigation and make sure the variable was expanded

Change-Id: I840c537de5ec1fa8fc1f1f94d2b8beef1aed2abb
Reviewed-on: https://gerrit.instructure.com/59859
Tested-by: Jenkins
Reviewed-by: Nathan Mills <nathanm@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Weston Dransfield <wdransfield@instructure.com>
2015-08-05 23:07:32 +00:00
Brock Cooper c2fa9bc3e0 Add correct screenreader message for Locked Module in JAWS
Fixes CNVS-22351

Test Plan:
1. Create a module
2. Edit the module and lock until a date
3. login as student and hover over the lock
4. Ensure screenreader reads out the Unlock at certain date message

Change-Id: I684700f7ffe29a684fbdccf05483f31c525c2f45
Reviewed-on: https://gerrit.instructure.com/60019
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Dan Minkevitch <dan@instructure.com>
2015-08-05 23:03:01 +00:00
Ryan Shaw 27860d1b8f ThemeEditor: fix 404 to default preview images
fixes: CNVS-22258

test plan:
* open theme editor and open the "watermarks and 
  other images section. you should not see any
  404's in the browser console and you should
  see a default for each except for the 'watermark'

* in IE, make sure you don't see a "broken link"
  image for the watermark

Change-Id: Iea743e8efc5115e2f4dfae6b8d12f26d4f3f346f
Reviewed-on: https://gerrit.instructure.com/59793
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Jenkins
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2015-08-05 22:52:58 +00:00
Jahnavi Yetukuri d98ace2406 Match/add specs
jyetukuri,panda,2

Change-Id: Id13319adbd10f4108cf03e166a55b9a701ad11cd
Reviewed-on: https://gerrit.instructure.com/60074
Tested-by: Jenkins
Reviewed-by: Taylor Wilson <twilson@instructure.com>
Product-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
2015-08-05 22:38:51 +00:00
Addison Higham 665c7f2127 Add root_account.global_id and shard LTI expansions
For the Canvas Data product, we have an LTI app that we use to give customers access
to a flat file download or manage credentials for accessing a Redshift
database.

Since this is basically a huge amount of access, we want to be double
extra sure that we are properly linking up accounts with the canvas data
portal and only giving authorized users access.

For the LTI app, we are currently using per account oauth keys/secrets
and user whitelisting to ensure that only authorized users can access
the data. However, we currently have a gap where if a shard_id (which we
need for driving the ETL process) is not entered correctly, we would
process data for the wrong customer. With the shard_id being passed
by the LTI app, we can at least ensure that this data can't be accessed
by not allowing authentication if we are passed a shard_id we don't
expect.

This commit adds an expansion for the globalized account_id (which we
may use later) and the shard_id.

Test Plan:
  - Create an LTI app that expands $Canvas.root_account.global_id and $Canvas.shard
  - Ensure that the globalized root_account_id and shard_id are passed

Change-Id: I5315320c4920e258032a08f424b9a83a6f7a8744
Reviewed-on: https://gerrit.instructure.com/59895
Reviewed-by: Nathan Mills <nathanm@instructure.com>
Tested-by: Jenkins
QA-Review: August Thornton <august@instructure.com>
Product-Review: Addison Higham <ahigham@instructure.com>
2015-08-05 22:38:28 +00:00
MFairbourn 80e27832e6 cleans up wiki_pages, adds edit page title from pages index spec
mattf,panda,1

Test Plan:
-Passes Jenkins
-Check for Sytax errors
-Verify Test_ID

Change-Id: I5acc978dd8e858f1b8f4fb04648c7e8913eb5fe7
Reviewed-on: https://gerrit.instructure.com/60088
Reviewed-by: Derek Hansen <dhansen@instructure.com>
Tested-by: Jenkins
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2015-08-05 22:03:52 +00:00
Robert Lamb 7f9661ad22 updated test_id
fixed skipped tests

moved repeated code into nested contexts

Added MGP specs

there is a lot of repeated code in the inheritance tests, since
we are testing 3 roles on 3 pages
the way this works will change soon (MGP version 3), so it makes
more sense to wait for these
changes before refactoring these tests

Change-Id: I4ef36370e8b8987136617d56aa5adafe601cc995
Reviewed-on: https://gerrit.instructure.com/59767
Tested-by: Jenkins
Reviewed-by: Derek Hansen <dhansen@instructure.com>
Product-Review: Derek Hansen <dhansen@instructure.com>
QA-Review: Derek Hansen <dhansen@instructure.com>
2015-08-05 21:41:12 +00:00