Commit Graph

78 Commits

Author SHA1 Message Date
Chris Hart bb7a9cf8e8 Restyle global notifications
Fixes: CNVS-20428

Test Plan:
- This change affects both the legacy and new UI

- Go through the JIRA ticket and test each type
  of notification listed.

- Here is what the new notifications should look
  like in your browser:

  Course invitation:
  http://screencast.com/t/nH8lerGRzg0b

  Global account notifications (5 types, each
  with a different icon. Warning and error should
  be orange and red, respectively):
  http://screencast.com/t/vJ03xNjYf

  Scheduled web conferences:
  http://screencast.com/t/Ozts1TFQpp

  Welcome to Canvas!
  http://screencast.com/t/F9netv3X

  Configure communication preferences:
  http://screencast.com/t/gUSWOOyK

Change-Id: I68d78852d455125a26eb7e2f8fd01997ab3f65c4
Reviewed-on: https://gerrit.instructure.com/59601
Tested-by: Jenkins
Reviewed-by: Jennifer Stern <jstern@instructure.com>
Product-Review: Jennifer Stern <jstern@instructure.com>
QA-Review: Myller de Araujo <myller@instructure.com>
2015-08-12 16:17:39 +00:00
Brock Cooper 70e4fa0fd1 Make course checklist status accurate
Fixes CNVS-22241

Test Plan:
1) Create new course
2) Navigate to Course Setup Checklist on the Home view
3) Follow each item in the checklist and ensure each item
   is checked off correctly as you complete them

Change-Id: Ia65ab7817dcd330107701e6e6641941343d72d24
Reviewed-on: https://gerrit.instructure.com/59999
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Brock Cooper <bcooper@instructure.com>
2015-08-10 14:52:37 +00:00
cguanzon 35b9cae005 spec:selenium: in-process server selenium tests is now a context
- reasoning: this group contains set-up and teardown,
  it does not include 'it' blocks

Change-Id: I1803420a5c7f59246f3af211e42ced808a994c3f
Reviewed-on: https://gerrit.instructure.com/60329
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-07 23:24:00 +00:00
Brock Cooper 03c818abde Remove unnecessary broken link for unpublished course
Fixes CNVS-21785

Test Plan:
1. Navigate to Courses show page as a teacher for unpublished course
2. Ensure that the alert saying 'Only Teachers Can See This Course
   Until It Is Published' does not contain a link
3. Prior version only had a broken link leading nowhere. Removing to
   avoid confusion.

Change-Id: I7312a34e22d76b1035385887d141d138d944aada
Reviewed-on: https://gerrit.instructure.com/59185
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Dan Minkevitch <dan@instructure.com>
2015-07-28 23:46:57 +00:00
Cody Cutrer 946116045a refactor PseudonymSessionsController
fixes CNVS-20394

split it into appropriate concerns. main points are:

 * /login never renders a login form - it redirects forward to the
   default auth controller based on the first account
   authorization config (or discovery url on the account)
 * /login/canvas is the new home of the old login form. this form is
   never rendered in-situ anymore - other places that used to render
   it now redirect to /login (and then forward to here), reducing
   their knowledge of SSO
 * /login/ldap ends up at the same place (cause LDAP auth is handled
   transparently)
 * /login/cas and /login/saml redirect forward to the first SSO
   configuration of the appropriate type. /login/:auth_type/:id can
   be used to select a specific one
 * if an SSO fails, it redirects back to /login with flash[:error]
   set. this can forward to the discovery url appropriately, or
   render an error page appropriately (the old no_auto=1, but now
   it's not layered on top of the login partial that didn't show a
   login form)
 * ?canvas_login=1 is deprecated. just go directly to /login/canvas
 * /saml_consume, /saml_logout are deprecated. they are processed
   directly by /login/saml and /login/saml/logout
 * /login/:id is deprecated - it forwards to /login/:auth_type/:id
   as appropriate (presumably only saml, since that was the only
   one that previously should have been using these links)
 * OTP has been split into its own controller, and separated into
   multiple actions instead of one all-in-one action
 * /logout has been vastly simplified. the login controller should
   set session[:login_aac], and on logout it will check with that
   AAC for a url to redirect to after logout, instead of /login.
   SSO logout is handled by each controller if they support it

test plan:
 * regression test the following functionality -
   * login with canvas auth
   * login with LDAP auth
   * login with SAML auth - and multiple SAMLs
   * login with CAS auth
   * MFA (configure, using, auto-setup)
   * Canvas as OAuth Provider flow
   * redirects to the login page when you're not
     logged in
   * failure of SAML/CAS (i.e. can't find user)
     show a decent error page and allows retry
   * "sticky" site admin auth (site admin is CAS/SAML,
     going directly to another domain logs you in with
     site admin)

Change-Id: I1bb9d81a101939f812cbd5020e20749e883fdc0f
Reviewed-on: https://gerrit.instructure.com/53220
QA-Review: August Thornton <august@instructure.com>
Tested-by: Jenkins
Reviewed-by: Ethan Vizitei <evizitei@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2015-05-15 14:44:38 +00:00
James Williams dd941fc6a6 fix lock_all_announcements being reset on course publish
test plan:
* create a course
* save "Disable comments on announcements" on the settings
* publish the course
* the box in the settings should still be checked

closes #CNVS-14882

Change-Id: I009ee2f4dd521428219b88e579d7f1cb6269af54
Reviewed-on: https://gerrit.instructure.com/52107
Tested-by: Jenkins
QA-Review: Clare Strong <clare@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2015-04-15 13:16:54 +00:00
James Williams 141b505f03 don't allow editing gradebook when course is unpublished
(also allow it to be published if it got in that state earlier)

test plan:
* create an unpublished course
* enroll a student
* add and publish an assignment
* visit the gradebook
* should not be able to enter a grade before
 the course has begun

closes #CNVS-18454

Change-Id: I9a3f894ad6bf130d359de5c4717cba9bee6704b3
Reviewed-on: https://gerrit.instructure.com/49047
Tested-by: Jenkins
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
2015-02-19 20:02:18 +00:00
Clay Diffrient fbec7fa7b5 Makes the course wizard not popup automatically on initial course creation.
Test Plan:
	- Create a course
	- Go to said course, no wizard should appear
	- Click the course checklist button, a wizard should appear

Change-Id: Ie4672daa7068b518f1eb8dc0f1da29e3b1c1d8e4
Reviewed-on: https://gerrit.instructure.com/46979
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-01-14 16:04:37 +00:00
Clay Diffrient bdb7027cf6 Makes the new wizard remember to not auto open more than once
This commit also cleans up some unused code.

fixes CNVS-17854

Test Plan:
  - Create a new course
  - The wizard should show
  - Close it and refresh the page
  - The wizard should not show automatically after the refresh.

Change-Id: Ie374127fcfd6f297abe1468c8f60308fa7eac7a9
Reviewed-on: https://gerrit.instructure.com/46838
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-01-09 21:02:29 +00:00
Clay Diffrient 0e71c4ff61 Converts the Course Wizard to an accessible react component
closes CNVS-17335
closes CNVS-16938
closes CNVS-16941
closes CNVS-16944
closes CNVS-14308
closes CNVS-12791
closes CNVS-12792

Test Plan:
  - Check to make sure the wizard has normal wizard
    behavior (aka regression test)
  - Check all the accessibility concerns including:
     - Close with escape key
     - Focus management throughout
     - Screenreader behaviors

Sorry the test plan isn't super specific, but it would be
extremely long if I specified everything.

Change-Id: I10340246720c0d1db1e5911969a2b9a11499343f
Reviewed-on: https://gerrit.instructure.com/45868
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-01-09 17:46:40 +00:00
Eric Berry 44d4a9fa7f Rebuilt App Center in React
fixes PLAT-731
fixes PLAT-774
fixes PLAT-679

Test steps:
- Add, remove, navigate and show apps
- Ensure that when the App Center is disabled,
  you are only able to access the configurations

Patchset notes:
33: removed ability to destroy cache via api, removed reviews
37: rebased
37: fixed js map bug

Change-Id: I397aeab58ff50a5a930b39228571a7088e5784ce
Reviewed-on: https://gerrit.instructure.com/43818
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Reviewed-by: Dan Minkevitch <dan@instructure.com>
Reviewed-by: Brad Humphrey <brad@instructure.com>
Product-Review: Eric Berry <ericb@instructure.com>
2015-01-05 21:34:02 +00:00
Clay Diffrient 1d2094e35d Hides groups from courses that are unpublished
closes CNVS-17635
closes gh-97

Test Plan:
- Create a course that is unpublished
- Add a student to the class
- Add the student to a group
- Login as the student
- Go to the courses index page (/courses)
- The group should not be shown
- Publish the course
- The group should now be shown with a link to it

Change-Id: I3588cbd323cd065a33898c91021f475507101dee
Reviewed-on: https://gerrit.instructure.com/46266
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2014-12-30 23:13:37 +00:00
James Williams 2c69f3966b remove non-draft-state everything
test plan:
* basic regression test on assignments, discussion topics
 gradebook, and modules (mostly make sure the basic
 index/show/edit views aren't broken)

closes #CNVS-15563

Change-Id: I3411bfb7645b3c4bf8a4663e3e052b4402f899ba
Reviewed-on: https://gerrit.instructure.com/43609
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
2014-12-10 17:57:18 +00:00
Chris Hart 6bb5f25cab Hacktoberfest: Course Setup Checklist Makeover
Fixes: CNVS-16413

Updates the existing Course Setup Checklist pop-under
with nicer markup and styles.

Note: this change should NOT affect the other checklist
still in Canvas -- in the ePortfolios section. I left that
one alone because it works a little differently.

Test plan:
- Go to any course's main page in Canvas
- In the right-side list of links, click
  Course Setup Checklist.
- Make sure everything is working properly, just
  like it did in the old checklist.

Change-Id: I99dcb9ed6356e5b2ebf5905e4c6dd998e31a145b
Reviewed-on: https://gerrit.instructure.com/42874
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Colleen Palmer <colleen@instructure.com>
Product-Review: Colleen Palmer <colleen@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
2014-12-08 21:53:52 +00:00
Cody Cutrer e719d737f4 more no more dynamic finders
Change-Id: Ibd26ab5b324efff3b9b1af52ac225198f440d8a7
Reviewed-on: https://gerrit.instructure.com/43599
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2014-11-04 18:57:05 +00:00
James Williams 81d4adc319 new roles
refactor everything that used to use strings for roles
to use actual role_ids

the apis should be backwards compatible so we don't need
to update (most of) the UI's right away in this commit

test plan:
* regression tests for permissions, role overrides,
 alerts (for account roles), enrolling users,
 adding account admins, etc.

refs #CNVS-15481

Change-Id: Id57fd3104c5c518b6fbf180609950dcddcdd474d
Reviewed-on: https://gerrit.instructure.com/41208
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Steven Shepherd <sshepherd@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
2014-10-31 19:44:14 +00:00
James Williams ff129a694d make course settings form more accessible
change the course settings form so it's
always a form (similar to the account settings form)
so that way the labels always have referenced elements

test plan:
* using a screenreader, the labels should always reference
the proper input items (rather than labelling nothing
until the "edit" button is clicked)

closes #CNVS-16234

Change-Id: I66d64c5000c6e43291c34536452518ba1dee0945
Reviewed-on: https://gerrit.instructure.com/43091
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Cosme Salazar <cosme@instructure.com>
2014-10-24 19:51:47 +00:00
Cody Cutrer d86e09fee1 rspec 3-ify spec/selenium
refs CNVS-16239

Change-Id: I483dd42326d14a2a2645103600cfa242ca7f1fa8
2014-10-15 19:27:10 -06:00
James Williams bd906e75bc add feature flags for LOR external tools
test plan:
* add an external tool configured for the extensions
 going to be used by LOR (:course_settings_sub_navigation,
 :course_home_sub_navigation, :migration_selection)
* confirm that it is not shown to a user unless either
 the account-level feature flag is enabled or the
 user-level flag is enabled

closes #CNVS-14626

Change-Id: I06e189fc1f2d745613353ea1b3f98b4f4b2c87b6
Reviewed-on: https://gerrit.instructure.com/39111
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
2014-08-14 15:11:06 +00:00
James Williams ea2e97833b always show "Courses" instead of "Home" in global nav tab
test plan:
* confirm that all users have "Courses" in the top global
navigation (instead of "Home")

fixes #CNVS-9701

Change-Id: Idc9200e5a55d8010b3cc7df61592c23b78056389
Reviewed-on: https://gerrit.instructure.com/36730
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Hilary Scharton <hilary@instructure.com>
2014-07-01 18:31:57 +00:00
Jake Sorce 21d8f43f85 new publish and un-publish course buttons
closes PS-1602

test plan:
  1. enable draft state on a course
  2. go to the course
  3. you should see the new buttons
     in the top right
  4. play around with them
  5. you should not be able to see course
     status if there are graded submissions
     in the course
  6. go to course settings
  7. you should see the course status now
     in the top right (published or unpublished)
  8. if there are graded submissions you should
     be able to hover the course status and get
     a tooltip saying you cannot unpublish
Change-Id: Idb7c27503f84eb489e1970b2061eb903e452de09
Reviewed-on: https://gerrit.instructure.com/36041
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Jake Sorce <jake@instructure.com>
2014-06-16 21:56:14 +00:00
Jon Willesen 3c65211658 add course_home_sub_navigation extension to external tools
this puts lti app links on the right side bar of the course
home page.

fixes RAN-53, RAN-55

test plan:
 - modify an lti app's xml to include the
   course_home_sub_navigation extension
 - configure an lti app via modified xml
 - navigate to a course home page, where you should see a button
   for the configured tool on the right sidebar.
 - clicking on the button should launch the tool.
 - configure another tool the same way, but include a
   "visibility" property in new extension with a value of
   "admins"
 - view the course home page as a teacher. you should be able
   to tee the newly configured tool, in addition to the
   previously configured tool.
 - view the course home page as a student. you should only see
   the first tool you configured, and not see the tool with the
   limited visibility property.

Change-Id: Ibe50c649f6d5f6806a87f0c8e8402f1209b9ed40
Reviewed-on: https://gerrit.instructure.com/35161
Reviewed-by: Brad Humphrey <brad@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Jon Willesen <jonw@instructure.com>
2014-06-09 23:30:43 +00:00
James Williams 86384632e3 spec: selenium updates for rails 3
in particular, change "it_should_behave_like" to
"include_examples" (in rails 3, "it_should_behave_like"
does not extend the defined methods to nested examples)

Change-Id: I24c3d0a214e763cd61bbe73e055f610e021fddd0
Reviewed-on: https://gerrit.instructure.com/28157
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2014-01-09 12:07:34 +00:00
Kyle Rosenbaum db92dd2732 spec: fix intermittent should redirct to the gradebook
Change-Id: I9c6cc7bb78bf77d782f67ced5af29185301f921c
Reviewed-on: https://gerrit.instructure.com/27304
Tested-by: Hannah Bottalla <hannah@instructure.com>
Reviewed-by: Hannah Bottalla <hannah@instructure.com>
QA-Review: Hannah Bottalla <hannah@instructure.com>
Product-Review: Hannah Bottalla <hannah@instructure.com>
2013-12-11 21:38:47 +00:00
Hannah Bottalla 7f6856b291 spec: courses_spec gradebook redirect tweak
Change-Id: I106f0170357ccc2cc369f8423b79191ba6b2314e
Reviewed-on: https://gerrit.instructure.com/27029
Reviewed-by: Kyle Rosenbaum <kyler@instructure.com>
Product-Review: Kyle Rosenbaum <kyler@instructure.com>
QA-Review: Kyle Rosenbaum <kyler@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2013-12-09 21:02:47 +00:00
Hannah Bottalla 31a44b7246 spec: selenium ruby jenkins upgrade
Change-Id: I65ec3115175d2cb4a1740d7abc320527b8a41cc9
Reviewed-on: https://gerrit.instructure.com/26596
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bryan Madsen <bryan@instructure.com>
Product-Review: Bryan Madsen <bryan@instructure.com>
QA-Review: Bryan Madsen <bryan@instructure.com>
Reviewed-by: Shawn Meredith <shawn@instructure.com>
Product-Review: Shawn Meredith <shawn@instructure.com>
QA-Review: Shawn Meredith <shawn@instructure.com>
2013-11-26 22:39:45 +00:00
Hannah Bottalla 37720248a3 spec: spec refactor - div and link assertions
fixes:
  .div assertions
  driver.find_element(:link, 'some string') assertions

Change-Id: I669369fb4a4cd3eee1099b7899d4eb89d27ac0c3
Reviewed-on: https://gerrit.instructure.com/25520
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Shawn Meredith <shawn@instructure.com>
Product-Review: Shawn Meredith <shawn@instructure.com>
QA-Review: Shawn Meredith <shawn@instructure.com>
2013-10-31 19:53:37 +00:00
Hannah Bottalla f39e308277 spec: selenium refactor
fixes:
  displayed assertions
  eql assertions
  replace content assertions

Change-Id: I28f0f0b8b57a18474d226f3542e8fba1c71ee770
Reviewed-on: https://gerrit.instructure.com/25137
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Shawn Meredith <shawn@instructure.com>
Product-Review: Shawn Meredith <shawn@instructure.com>
QA-Review: Shawn Meredith <shawn@instructure.com>
Tested-by: Shawn Meredith <shawn@instructure.com>
2013-10-24 22:36:57 +00:00
Jake Sorce 9c6d811d83 course top nav link goes to /courses
also added groups to /courses page
if user has current groups

closes #7378
refs PS-703

test plan:
  1. login to canvas with enrollments
  2. click the Courses link at the top
  3. you should be taken to /courses and see all of
     your enrollments and not back to the dashboard
  4. add the user to a group or a few groups
  5. log back in with that user and click on the same
     link but it should now say Users & Groups
  6. you should see My Groups with links to your
     active groups just like the enrollments

Change-Id: I1e5058b0a9693f7d7050279934bf8ebca1a6495a
Reviewed-on: https://gerrit.instructure.com/25120
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brandon Broschinsky <brandonbr@instructure.com>
QA-Review: Adam Phillipps <adam@instructure.com>
Product-Review: Jake Sorce <jake@instructure.com>
2013-10-15 19:08:07 +00:00
Mark Severson 290ca75300 change styling for flash messages (includes a new info style)
test plan:
 * Jenkins passes
 * spot test flash notifications
   (messages that appear at the top of a page)

Change-Id: Icdbf2199499987ac253291b14189385d2202b659
Reviewed-on: https://gerrit.instructure.com/24895
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Reviewed-by: Ryan Florence <ryanf@instructure.com>
Product-Review: Mark Severson <markse@instructure.com>
2013-10-04 21:44:19 +00:00
Shawn Meredith ee54a3c71c spec: sel\ff upgrade spec fixes
Change-Id: If43f47cc5f44e2e163ea4b479d252ecbf6aa9493
Reviewed-on: https://gerrit.instructure.com/24393
Reviewed-by: Bryan Madsen <bryan@instructure.com>
Product-Review: Bryan Madsen <bryan@instructure.com>
QA-Review: Bryan Madsen <bryan@instructure.com>
Tested-by: Shawn Meredith <shawn@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2013-09-25 01:57:36 +00:00
Kyle Rosenbaum ea776c2ac6 spec: selenium upgrade spec fix
Change-Id: I9df27d2abdf4222d0be79cf146ba5111c8f8360a
Reviewed-on: https://gerrit.instructure.com/24095
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Shawn Meredith <shawn@instructure.com>
Product-Review: Shawn Meredith <shawn@instructure.com>
QA-Review: Shawn Meredith <shawn@instructure.com>
2013-09-12 06:44:10 +00:00
James Williams 9c0e883a7f add warning popover for 'crowdsourced' locales
test plan:
* there are no crowdsourced locales currently, so
 before starting the server,
 add one by manually editing config/locales/locales.yml
 and adding "crowdsourced: true" under a language, e.g.:

>en:
>  locales:
>    en: English
>  crowdsourced: true

* for each area where a language is selectable:
 * use the select box to select a crowdsourced language
 * and confirm that an icon appears, and that hovering over it
reveals a popover warning box about selecting a crowdsourced
language

* areas to test:
 * current user's profile settings
  (visit '/profile/settings' -> click "Edit Settings")
 * account settings
 * course settings

closes #CNVS-4967 #CNVS-4278

Change-Id: I2e83df950b815fb01e5f0a2aa324020415198e5a
Reviewed-on: https://gerrit.instructure.com/21019
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Clare Strong <clare@instructure.com>
Product-Review: Matt Goodwin <mattg@instructure.com>
2013-05-31 18:44:30 +00:00
Ryan Florence 85b4a76ed1 first iteration of new course/users page
test plan:
1. visit /courses/:id/people
   - users should populate the page
2. scroll down
   - should lazy load next pages
3. enter a search term
   - should render results
4. scroll down
   - should lazy load large result sets

Change-Id: I20b2aa2ec5dab74053b78340ac9d2920b0521e8b
Reviewed-on: https://gerrit.instructure.com/18447
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Joe Tanner <joe@instructure.com>
QA-Review: Ryan Florence <ryanf@instructure.com>
2013-03-13 12:56:10 -06:00
James Williams 065e9d7929 update course people page for course role engine
include separate sections in each column for
custom student, teacher, and ta roles

test plan:
 * create custom roles
 * enroll users in a course using the new roles
 (note: this will be difficult until the ui for
 enrolling custom roles is ready)
 * confirm that the "People" page shows correctly
 (including sections)

closes #CNVS-1167 ( also #CNVS-2244 )

Change-Id: I73fcf82e407c6af00f6f8f7a8c30141adb704227
Reviewed-on: https://gerrit.instructure.com/16058
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Adam Phillipps <adam@instructure.com>
2012-12-20 14:05:12 -07:00
Shawn Meredith d1d720a449 selenium xvfb parallelized pass\fail 1.9.3
Change-Id: I6b4bdae86dc2731cfeb3c8054a9727106a22088c
Reviewed-on: https://gerrit.instructure.com/16105
Reviewed-by: Jake Sorce <jake@instructure.com>
QA-Review: Jake Sorce <jake@instructure.com>
Tested-by: Jake Sorce <jake@instructure.com>
2012-12-14 16:03:19 -07:00
Cody Cutrer bd50b1eddd make invitation previews a setting closes #11985
test plan:
 * follow a link to an invitation in the default account
 * you should be able to look around the course before accepting
 * follow a link to an invitation in a non-default account
 * it should immediately accept the invitation or send you through
   the registration process if you are not logged in
 * enable invitation previews in the settings for the non-default
   account
 * follow a link to an invitation in that account again
 * it should now allow you to preview the course before accepting

Change-Id: I92bde85e0cae9dc4167f5ebd2e32cbbc06aa4242
Reviewed-on: https://gerrit.instructure.com/15636
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Brian Palmer <brianp@instructure.com>
2012-12-05 09:45:34 -07:00
Simon Williams dd62ef5805 new dashboard design
the new dashboard design categorizes recent activity into buckets that can be
expanded/collapsed, and inidividual messages can be dismissed.  the categories
are announcements, conversations, discussions and assignments.  this redesign
applies to the homepage dashboard, the group home page, and the course homepage
when "recent activity dashboard" is selected as the course home page type.o

the motiviation is that the dashboard should capture and present in one place
important information happening in all the user's courses or groups, and allow
for jumping into this information to see more details:

- announcements/discussions should show on the dashboard when they are created,
  or when there are root replies to recent announcements
- conversations should show on the dashboard when there is new activity
- assignments should show on the dashboard when they are created, or when
  changes are made at least a couple hours after being created

the presence of a dashboard item means there is activity for that item that may
be of interest to the user.  additionally, the dashboard items will show
read/unread state (excluding assignments) for items which the user has not yet
viewed.

additionally, global messages such as course inivitations, account level
announcements, and new user messages have been restyled, but will keep their
place above the recent activity widget on the dashboard.

test plan:
- visit many exising user's dashboards and make sure they are functional in the
  new style.
- visit canvas as a brand new user (no enrollments), a new user enrolled in
  a new course and make sure the dashboard is restyled and the messaging makes
  sense.
- make an account level announcement and make sure it shows up on user's
  dashboards.
- create all different types of conversations: single, group, bulk private,
  from submission comment, add user to convo, etc. and make sure the
  appropriate dashboard items appear and make sense
- create discussions and announcements, reply to them at the root level and at
  the sub entry level (sub entries will not make new dashboard items), test
  from both a read and unread user's perspective, making sure dashboard items are
  correct. (note that read/unread state will not be correct for existing items
  before this code is applied, but should be correct for future items moving
  forward)
- dismiss dashboard items and account announcements, make sure they stay
  dismissed.
- test creating assignments, waiting > 2 hours, and updating due dates or other
  assignment details. make sure items appear. note that unread state will not
  exist for assignment notifications.

closes #10783
refs #11038
refs #11039

Change-Id: I276a8cb1fae4c8a46425d0a368455e15a0c470c5
Reviewed-on: https://gerrit.instructure.com/14540
Reviewed-by: Jon Jensen <jon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2012-11-11 21:56:16 -07:00
Shawn Meredith 5d798ac81e spec: refactor role based contexting and naming
test:
    1. removed some skip_if_ie method usages
    2. refactor most .clear .send_keys
       to replace_content
    3. refactored some wait_for_ajax* usages

Change-Id: I893362a5685adf75e70b1530809f7838ff039e5f
Reviewed-on: https://gerrit.instructure.com/13851
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
2012-09-20 16:24:02 -06:00
Shawn Meredith 07853d4516 spec: refactor selenium specs
test:
  1. removed skip_if_ie usages
  2. changed single line blocks to {} and
     multi-line blocks to do end
  3. replaces .displayed? and !displayed with
     .should .should_not be_displayed
  4. removed some extra selectors
  5. refactored helpers\basics\specs

Change-Id: I35bdc50594ee97774da35703d97a6bbab05654a4
Reviewed-on: https://gerrit.instructure.com/13532
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Sorce <jake@instructure.com>
2012-09-10 15:53:06 -06:00
Ryan Shaw 2b1fffdecc use a simple dialog for creating new courses
this gets rid of the "getting started" workflow (with the 4
steps: name, assignments, students, save) and just uses a
simple dialog for creating new courses.  It is part of the new
user experience stuff.

refs: #9898

test plan:
click "create a new course" on dashboard, make sure
it works.

Change-Id: If1b28f3dd58fa40e3a0c0195dc5db97292566e7e
Reviewed-on: https://gerrit.instructure.com/13003
Reviewed-by: Jon Jensen <jon@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2012-08-27 13:29:42 -06:00
Zach Pendleton 35b3fd355a paginate course people page w/ ajax. fixes #9678
return students and teachers/TAs 50 users at a time, and
display them in an infinitely scrolling div. also update
the styling of the scrolling divs to better reflect that they
are scrollable to users w/o permanent scrollbars (e.g. OS X).

test plan:
  * create a course with over 50 student or teacher/ta
    enrollments;
  * view the course people page and verify that student
    and teacher enrollments load as expected;
  * scroll the field with the most enrollments and verify
    that when the bottom is reached more enrollments load;
  * verify that when all enrollments have loaded, the div
    no longer attempts to load new enrollments;
  * create a new course section and add enrollments to it;
  * as a user with permissions limited to section, verify
    that only enrollments in the allowed section are
    displayed.

Change-Id: I2e6485a2edf950acf58f5ccbc75c2965297aed04
Reviewed-on: https://gerrit.instructure.com/12680
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Zach Pendleton <zachp@instructure.com>
2012-08-13 14:50:29 -06:00
Joe Tanner d16318c1e0 add multiple students to an observer in the UI, closes #7768
other changes:
- makes it possible to add a student to multiple sections in the course
- pagination of the user lists
- converted user tab js to coffee and backbone

test plan:
- as a teacher go to /courses/*/settings#tab-users
- verify that multiple students can be linked/unlinked to an observer
- verify that users can be added to and removed from multiple sections
- verify that 'Resend Invitation' and 'Remove from course' work

Change-Id: I0f64f72f1937348817990b6f13b6310185b68a73
Reviewed-on: https://gerrit.instructure.com/10865
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Joe Tanner <joe@instructure.com>
2012-07-16 15:48:27 -06:00
Brian Whitmer 34de454957 don't show courses dropdown on grades page for linked observers
The grades page for a student has a dropdown to let them quickly
jump between grades pages for different courses. The dropdown was
also appearing for linked observers, who don't necessarily have
access to grades for the student's other courses. This dropdown
should now only appear for the student.

fixes #6388

test plan:
- create a student in more than one course
- masquerade as that student
- make sure the dropdown appears on the course grades page
- link an observer to the student and masquerade as the observer
- make sure the dropdown does not appear
- stop masquerading and view the grades page for the student
- make sure the dropdown does not appear

Change-Id: I99f2b4361df964663f72b16084604740d6b9f17f
Reviewed-on: https://gerrit.instructure.com/7119
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
2012-06-28 15:40:27 -06:00
Jake Sorce f50cb2f6d5 spec: refactor spec files to use submit_form
Change-Id: Iaa59aea0781d471eaa2f2d7488cc9ff1b4331ab0
Reviewed-on: https://gerrit.instructure.com/11279
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bryan Madsen <bryan@instructure.com>
2012-06-06 18:01:43 -06:00
Ryan Shaw eca553456b use userSettings instead of $.store.userGet
Change-Id: I81f2f18c6b0e2c619b95ed55a88318248451fc56
Reviewed-on: https://gerrit.instructure.com/10309
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Joe Tanner <joe@instructure.com>
2012-05-09 10:02:08 -06:00
Jake Sorce 0d36b31f7e spec: clean up / add to course copy specs
also added selectors to html elements to make
them more selenium friendly

Change-Id: Ide6b724f39b02b39ba02a21e4fc103fbe03d99ac
Reviewed-on: https://gerrit.instructure.com/10561
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bryan Madsen <bryan@instructure.com>
2012-05-07 18:00:15 -06:00
Bracken Mosbacker ba048b5b87 auto-fill course dates on course copy content page
The start/end dates of the source course are now filled in
for the user automatically for happiness

Test Plan:
 * Set the start/end dates for a course
 * Go to copy the course
 * In the "Adjust events and due dates" section, the dates for the original course should already be filled in

closes #8415

Change-Id: Ic00c9d8f438a8291421690ce814263dd102d4c26
Reviewed-on: https://gerrit.instructure.com/10562
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
2012-05-07 09:36:13 -06:00
Bracken Mosbacker 9ab9082874 don't copy course setting if not selected
Test Plan:
 * Set the syllabus body, navigation settings and default view for a course
 * copy the course without selecting the course settings option
 * those items should not be copied into the new course

closes #8391

Change-Id: Idd0efe85273d23881a3f3bfd0e04eb226d505a08
Reviewed-on: https://gerrit.instructure.com/10433
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
2012-05-02 09:31:00 -06:00
Bracken Mosbacker 27645ca0e3 uncheck all individual items by default on course copy
Test Plan:
 * Go to copy a course
 * Uncheck "Copy Everything from #{course_name}"
 * All the individual items should be unchecked

closes #8297

Change-Id: I12f6cfe5e4feca1eb60783a47dc2d07c2c06a683
Reviewed-on: https://gerrit.instructure.com/10386
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
2012-04-30 08:25:54 -06:00