Commit Graph

75 Commits

Author SHA1 Message Date
Caleb Guanzon 6b6c8e0c9e remove lor external tools
fixes RD-4912

- removes lor_for_account logic

video: https://cl.ly/8150e0363891

test plan:
- make sure that installing commons, quizzes next, dig
or any app that has a global nav launch still completes successfully
without the need of having lor_for_account aka lor external tools
feature flag turned on

- make sure that the Lor External Tools feature
flag no longer exist in Account Settings Feature Options list

- make sure you can still launch an LTI app with a global nav launch
from the global nav

Change-Id: I0869fa359ca4ef92d69dd9fa6ce8be47c18dacc3
Reviewed-on: https://gerrit.instructure.com/206146
Tested-by: Jenkins
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
Reviewed-by: Daniel Lee <dlee@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2019-08-23 18:23:52 +00:00
James Williams c43b3fd5d8 split content migration job stranding by type
let blueprint course syncs, manual imports, and api initiated
imports run in independent queues and not block each other

closes #CORE-3237

Change-Id: Ib37cde3d317069748ad1a3fe91f41c82b8b95cd5
Reviewed-on: https://gerrit.instructure.com/204529
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
2019-08-09 17:16:18 +00:00
James Williams c01b465670 don't count manageable courses for account admins
probably will be too many courses anyway and can time
out for root admins especially

refs #ADMIN-2790

Change-Id: I2b0e1f7888e7269238de47f28a8a83777bce7a14
Reviewed-on: https://gerrit.instructure.com/202812
Tested-by: Jenkins
Reviewed-by: Mysti Lilla <mysti@instructure.com>
QA-Review: Mysti Lilla <mysti@instructure.com>
Product-Review: James Williams <jamesw@instructure.com>
2019-07-29 19:32:12 +00:00
Jeremy Stanley 95b1116a57 course copy: make "include concluded" the default
test plan:
 - in a course, go to "import course content" and select
   "copy a canvas course" as the source
 - the "include concluded courses" checkbox should be
   checked by default
 - unchecking it should remove concluded courses from
   the list as expected

closes ADMIN-2734

Change-Id: I2eb4aa31736ac162f1688698356f6a2421f99dd9
Reviewed-on: https://gerrit.instructure.com/199634
Tested-by: Jenkins
Reviewed-by: Carl Kibler <ckibler@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Carl Kibler <ckibler@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2019-07-11 17:10:22 +00:00
Cody Cutrer 6d82a64c24 moar preloads
refs CORE-1541

Change-Id: I51967c0eebcd4dc6f9282dd9e8b3934dafb62aca
Reviewed-on: https://gerrit.instructure.com/160315
Reviewed-by: Rob Orton <rob@instructure.com>
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
2018-08-10 17:28:38 +00:00
Robert Lamb 5f637c9653 spec: fix content migration spec for Chrome v65
use in_frame instead of driver.switch_to

Change-Id: Ia00d5dc8520873d97dfdaf8971f7eb612d8eb341
Reviewed-on: https://gerrit.instructure.com/150180
Tested-by: Jenkins
Reviewed-by: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
2018-05-14 20:46:21 +00:00
James Williams 77491f8801 fix various i18n calls
test plan:
* use lolcalize to test:

- the "created" string on the page /courses/X/users/Y

- the import status for imports on
 /courses/X/content_migrations
- also the error message when selecting
 "unzip .zip file" type and not picking a folder

closes #CORE-576

Change-Id: I89ce6af2eaa31891f561aceda47f4022fd03b98d
Reviewed-on: https://gerrit.instructure.com/131507
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2017-11-02 23:40:14 +00:00
Cody Cutrer 4990da6779 prep for mocha removal
* ENV['NO_MOCHA']=1 to disable mocha
 * switch several core mocks to rspec-mocks
 * fix Great Expectations to allow mock expectations
   in before blocks

Change-Id: Icee8dee7f01234d2dd4e26ac13562fe9fc93665a
Reviewed-on: https://gerrit.instructure.com/119984
Tested-by: Jenkins
Product-Review: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Reviewed-by: Simon Williams <simon@instructure.com>
2017-07-25 17:37:13 +00:00
Landon Wilkins c12f8666df da licença part 62
add consistent license headers to all source files

Change-Id: Ia3107f34470b6e8687df2baed79fed58a728f240
Reviewed-on: https://gerrit.instructure.com/110313
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2017-05-01 21:24:33 +00:00
Simon Williams 57497719a7 spec: rename the `course` helper to `course_factory`
closes CNVS-34046

test plan: specs should pass

Change-Id: I8684d30e5af7be04566b2d3903db2b7f4b14b24b
Reviewed-on: https://gerrit.instructure.com/98439
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2016-12-27 20:25:29 +00:00
Jon Jensen 271a650a82 spec: fix brittle spec
wait for the migration to be queued/running, otherwise we sometimes leave
the page before the ajax/upload/ajax dance finishes, making the spec fail

test plan:
./spec/selenium/content_migrations_spec.rb:115 should always pass now

Change-Id: I689127b351566ef86cfea024a97ad938a92dbd7f
Reviewed-on: https://gerrit.instructure.com/89393
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2016-09-01 02:56:49 +00:00
Deepeeca Soundarrajan 44ce629261 spec: add test ids to content migration spec
Test Plan:
 - Passes Jenkins

Change-Id: Ibd526144de488ab367cf3be849c2d80b90f0df29
Reviewed-on: https://gerrit.instructure.com/88289
Tested-by: Jenkins
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2016-08-23 15:53:49 +00:00
cguanzon 9a8b0d4ae6 spec: add discussion allow liking copy test
TEST PLAN:
- code review is enough

Change-Id: I87d096b9d2712ba6b8dccbc89b4d56b1ea016c0f
Reviewed-on: https://gerrit.instructure.com/88375
Tested-by: Jenkins
Reviewed-by: Heath Hales <hhales@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
2016-08-22 16:44:30 +00:00
Jon Jensen f7ac8380f3 spec: dead spec cleanup
delete most skipped specs... basically any that were skipped over a year
ago and have no ticket (or the ticket is wontfixed)

for specs that have testrail ids or new tickets, remove the body but leave
the `it` as a TODO

also delete a couple specs that didn't actually exercise any UI, and
were redundant w/ model specs

Change-Id: I9d16299f13b451d3b4baef0895fd1b414036163d
Reviewed-on: https://gerrit.instructure.com/80077
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2016-05-25 23:01:23 +00:00
Jon Jensen 404694e855 spec: prevent nested waiting, misc spec enhancements
fixes SD-1147

now if you nest any waiting matchers/helpers in a keep_trying_until,
you'll get an error. the eventual goal is to remove keep_trying_until
and wait_for_ajaximations entirely

misc enhancements:
* make `be_displayed` wait
* add `have_size` matcher for ff and friends that will automatically
  wait (and reload)
* remove not_found because it was slow
* make in_frame a little smarter
* add various helpers, e.g.
  * dismiss_flash_messages
  * scroll_into_view
  * scroll_element

Change-Id: Ib5fc27ed72b14ca9453e3c3d57a37c8633843faa
Reviewed-on: https://gerrit.instructure.com/80257
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
Tested-by: Jenkins
2016-05-24 21:09:23 +00:00
Jon Jensen 717680037e spec: rework negative dom assertions
fixes SD-1063, speeds up :allthethings:

negative DOM assertions are 💩, but if we must have them, make them
more tolerable. the old way:

  expect(f(".something-that-should-be-gone")).to be_nil
  expect(fj("buhleeted:visible")).to be_nil
  expect(fln("Can't Click Here Anymore").to be_nil

the new way:

  expect(container).not_to contain_css(".something-that-should-be-gone")
  expect(container).not_to contain_jqcss("buhleeted:visible")
  expect(container).not_to contain_link("Can't Click Here Anymore")

(you can of course use these new matchers for positive assertions as well)

although it's a tad more verbose, the new way is better because:

1. it's smart enough to bail once the assertion is met (versus the old way
   which would take 10-20 seconds to not find the thing and *then* run the
   assertion)
2. it requires them to be scoped, to reduce the likelihood of false
   positives (e.g. if the page is totally broken, then of course the
   assertion would pass)

also reworked the various flash message assertions... see the new
expect_flash_message and expect_no_flash_message

this should remove over an hour of linear time off the build (10 sec per
old assertion, except fj ones which took 20 sec)... so like a minute of
actual time, cuz parallelization :P

a consequence of this change is that f/fj/ff/ffj now raise if nothing is
found, so you really have to go out of your way to do it the bad way. so
don't :)

Change-Id: I0fe6e8500947c27d748b70bb2cda585edf71e427
Reviewed-on: https://gerrit.instructure.com/78420
Tested-by: Jenkins
Reviewed-by: Landon Wilkins <lwilkins@instructure.com>
Product-Review: Landon Wilkins <lwilkins@instructure.com>
QA-Review: Landon Wilkins <lwilkins@instructure.com>
2016-05-03 20:05:46 +00:00
Deepeeca Soundarrajan 250121967b spec: Add specs for content migration
Change-Id: I1a77573d938bfda4472e4ea48c95bb2de54c058e
Reviewed-on: https://gerrit.instructure.com/77610
Reviewed-by: Michael Hargiss <mhargiss@instructure.com>
Tested-by: Jenkins
Product-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
QA-Review: Deepeeca Soundarrajan <dsoundarrajan@instructure.com>
2016-04-21 21:37:21 +00:00
Jeremy Stanley f2125b37f2 update selenium-webdriver to 2.53.0
for compatibility with firefox 44

!

main problem is that labels for checkboxes are blocking
 them from being clicked on

Change-Id: I85d3572d47ed95249f7216e5e102b4d398168251
Reviewed-on: https://gerrit.instructure.com/73207
Tested-by: Jenkins
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Reviewed-by: Jon Jensen <jon@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2016-04-20 11:16:18 +00:00
MFairbourn 533d68dd7f spec: fix radio_btn select issue in content_migrations_spec
Test Plan:
-Specs should pass
-Code review

Change-Id: Ia915a74402259811dd7f3d1ad80c130e2e4efd33
Reviewed-on: https://gerrit.instructure.com/74483
Tested-by: Jenkins
Reviewed-by: Pedro Fajardo <pfajardo@instructure.com>
Product-Review: Matt Fairbourn <mfairbourn@instructure.com>
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
2016-03-15 13:01:40 +00:00
Jon Jensen 8dc7dc31a5 spec: make sure we reset each shard before specs (if we have shards)
but make sure we have default roles everywhere. this will allow us to use
schema snapshots (w/ no data) for all the shards in CI-land

refs SD-857

Change-Id: I7f1ca2253af86f71a9bef243b6bb51f94a927aef
Reviewed-on: https://gerrit.instructure.com/73143
Tested-by: Jenkins
Reviewed-by: Cody Cutrer <cody@instructure.com>
Product-Review: Jon Jensen <jon@instructure.com>
QA-Review: Jon Jensen <jon@instructure.com>
2016-02-26 18:48:40 +00:00
James Williams 7bed7e2871 allow common cartridge sub-modules to be imported separately
previously, we imported nested modules together within
 one module, (using nesting to distinguish between submodules)
 possibly leading to very large modules

now, submodules can be broken up on import using the
"Select Content" dialog

test plan:
* import the Common Cartridge package referenced in the ticket
 using the "Select specific content" option
* use the dialog to navigate the module tree and select
 specific sub-modules
* if all sub-modules of a given module are selected, a
 radio toggle should appear to choose whether to import
 the module as one or to split them up

closes #CNVS-26696

Change-Id: Ia542cd7ec847e810a01d92c675c6cc92d1247345
Reviewed-on: https://gerrit.instructure.com/71099
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Tested-by: Jenkins
QA-Review: Jahnavi Yetukuri <jyetukuri@instructure.com>
Product-Review: Matt Goodwin <mattg@instructure.com>
2016-02-02 15:48:03 +00:00
James Williams 448fcb0f31 spec: change a bunch of before(:all)s to before(:once)
Change-Id: If5437f5e0125c544936f526e7ab4880c62b1e7b3
Reviewed-on: https://gerrit.instructure.com/65757
Reviewed-by: Simon Williams <simon@instructure.com>
Tested-by: Jenkins
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2015-10-23 19:52:30 +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
MFairbourn af1ca06699 added test_ids to course copy test cases
test plan:
-Pass Jenkins
-Check for syntax errors

Change-Id: I94612a5f54ec06a721961fef1692f57ef0319187
Reviewed-on: https://gerrit.instructure.com/58294
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-07-13 20:17:07 +00:00
James Williams d482607695 show warning when attempting to copy course into self
test plan:
* visit the "Import Content" page for a course
* select the "Copy a Canvas Course" type from the
drop-down
* should receive a warning icon with a popover explanation
 when trying to copy the current course into itself

closes #CNVS-14642

Change-Id: Ieb50e156146af03365f4b283b7d6d2bbe183ef9d
Reviewed-on: https://gerrit.instructure.com/48533
Tested-by: Jenkins
QA-Review: Clare Strong <clare@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2015-02-12 19:45:00 +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
Cody Cutrer d86e09fee1 rspec 3-ify spec/selenium
refs CNVS-16239

Change-Id: I483dd42326d14a2a2645103600cfa242ca7f1fa8
2014-10-15 19:27:10 -06:00
Ethan Vizitei 66d4f898d2 don't record recent activity for unauthorized actions
fixes #CNVS-12934

When attempting to view a course that is
unpublished, or is published but with course start
and end override dates in the future, 
it gives an unauthorized page, 
but the "Last Activity" field in the course 
roster registers your access.  Teachers are 
reading it as students are accessing courses 
when they shouldn't be able to, and 
contacting support.

Also refactors out "recent activity" from
the enrollment model into a class of it's own

this ALSO solves a recurring problem present
on master with the "content_migrations_spec"
which causes a spec group to fail only
when run with other specs, but not when
you run it in isolation, due to the
caching of Account.default.

TEST PLAN:
 - Create a course and edit the start and end 
      dates on it to be in the future and check 
      the box "Users can only participate in the 
      course between these dates"
 - Add a user to the course that already exists 
      on the institution as a student
 - Masquerade as this user and go to the courses 
      homepage URL manually
 - Stop masquerading after you receive the 
      un-authorized page and check the course roster
 - The student you invited should still be pending, 
      and SHOULD NOT have a "Latest Activity" time.

Change-Id: Ifc03e79b2eb2d4933dffb11d167d20734facd490
Reviewed-on: https://gerrit.instructure.com/40855
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: Ethan Vizitei <evizitei@instructure.com>
2014-09-23 14:34:00 +00:00
Shawn Meredith 0f1f7c045a spec: fragile content_migration spec pending
Change-Id: Ibd6070411e10d00e278c79449e06a8aae717f4d7
Reviewed-on: https://gerrit.instructure.com/40100
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>
2014-09-09 22:43:07 +00:00
Shawn Meredith bca445f726 spec: intermittent specs
Change-Id: Iec58ddcb978165c5adf99619dd5c6144f00a0e03
Reviewed-on: https://gerrit.instructure.com/39568
Reviewed-by: Bryan Madsen <bryan@instructure.com>
Product-Review: Bryan Madsen <bryan@instructure.com>
QA-Review: Bryan Madsen <bryan@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
2014-08-24 17:49:02 +00:00
Shawn Meredith 987da0a895 spec: fragile specs pending
Change-Id: I05abd2bd5ad962566ec7c3cf7d8f01d9e1155c6e
Reviewed-on: https://gerrit.instructure.com/39305
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>
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Adam Ard <aard@instructure.com>
2014-08-14 20:51:34 +00: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
Jeremy Stanley 0af9e0b59c add UI option to remove dates in content migration
also remove some code that accomplishes nothing but confusion

test plan: perform content migrations into a course via the web UI
  1. without adjusting dates
  2. shifting dates
  3. removing dates
and verify that the correct operation is performed for each migration.

test all of these workflows:
  1. Course Settings / Copy this Course
  2. Import Content / Copy a Canvas Course
  3. Import Content / course export package

fixes CNVS-14183

Change-Id: I965a8ba6e6b0971cd0b5561627716989191a9680
2014-08-07 19:55:51 -06:00
Shawn Meredith 701e69989a spec: intermittent selenium spec fixes
Change-Id: I22f9bac01be93563421df21a8c837a059696f5bc
Reviewed-on: https://gerrit.instructure.com/37806
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>
2014-07-30 18:37:46 +00:00
James Williams 1989365140 spec: fix content_migrations_spec for draft state
closes #CNVS-14302

Change-Id: Ie9850318290620da22a37b44fe151b3f36079b8f
Reviewed-on: https://gerrit.instructure.com/38264
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2014-07-28 19:12:46 +00:00
James Williams ffbff81c33 spec: fix content_migrations_spec rails 3 stability
Change-Id: Idfdde185ead6c615867582ad45aa44b7aa9c87cc
Reviewed-on: https://gerrit.instructure.com/36630
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Shawn Meredith <shawn@instructure.com>
Reviewed-by: Bryan Madsen <bryan@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
2014-06-19 15:46:22 +00:00
Nick Cloward 5d4dda1c68 add option for course state changes (log auditing)
fixes: CNVS-347

Adds state change logging activity for courses.  This change also adds an event
source field to all the course activity events.  The options for this is api,
manual, and sis.

Note: This also adds a fix for the event stream record object to force request_id to
be a string.  Event stream will try to insert an integer into a text column which
Cassandra will complain about and throw an error.

Test Plan:
  - Test for each type of Event:
    * Concluded
    * Unconcluded
    * Published
    * Deleted
    * Restored
    * Updated
    * Created
    * Copied To
    * Copied From

  - Test each type of event and each source.  Note that some events can only
    have certain sources.  Also make sure SIS migrations show that the source
    is type SIS.

Change-Id: Ic2308e1d10e6fc1cc6437221d7842eaf1a596f46
Reviewed-on: https://gerrit.instructure.com/30343
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: James Williams  <jamesw@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Reviewed-by: Jacob Fugal <jacob@instructure.com>
Product-Review: Nick Cloward <ncloward@instructure.com>
2014-05-09 16:09:20 +00:00
Cody Cutrer b29ae78e3d Merge pull request #421 from sfu/feature-course_autocomplete
Add enrollment term to course autocomplete
2014-04-30 12:50:25 -06:00
Jon Willesen 5804d857d9 add migration external tool extension ui
An external tool configured for the migration extension will
show up on a course's content import page and allow you to
select a file to migrate from the LTI launch.

fixes LOR-20

Test Plan:
 * Configure an external tool that has the migration_selection
   extension
 * The new tool should show in the dropdown on the content
   import page.
 * Run some migrations through the external tool.

Change-Id: Iea16a7e32145e6799c551816e6f70a73f2a8c3d0
Reviewed-on: https://gerrit.instructure.com/21443
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jake Trent <jaketrent@instructure.com>
Reviewed-by: Brad Humphrey <brad@instructure.com>
QA-Review: Amber Taniuchi <amber@instructure.com>
Product-Review: Jon Willesen <jonw@instructure.com>
2014-04-23 17:03:15 +00:00
Shawn Meredith 2bdf2c09da spec: rspec2 --tags for parallel_excluded specs
Change-Id: I20bf507acb2d0c26d34220d8e52fdf02cbde3e12
Reviewed-on: https://gerrit.instructure.com/32627
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>
2014-04-03 08:04:52 +00:00
Andrew Leung ee2787127f Improve course autocomplete customization (Part 2)
Update content migrations Selenium spec to test for enrollment term
subtitle in autocomplete.
2014-03-20 15:10:38 -07:00
Shawn Meredith 52e4cda38f spec: selenium fragile specs
Change-Id: I7c9e21919a6e34cd90359eee44d4534b075f942b
Reviewed-on: https://gerrit.instructure.com/31855
Reviewed-by: Bryan Madsen <bryan@instructure.com>
Product-Review: Bryan Madsen <bryan@instructure.com>
QA-Review: Bryan Madsen <bryan@instructure.com>
Tested-by: Bryan Madsen <bryan@instructure.com>
2014-03-14 18:15:25 +00:00
Sterling Cobb d0d3f3178e convert seletive content checkbox to radio buttons
fixes CNVS-9885

When you import or copy a course you are given the option to select the
content you want to import. The option to select this was a checkbox
but has now been changed to a radio button. This should help people who
are confused by the process or forget to check the selective content
button. Default should be selecting all content

Test Plan
1. copy a course by going to 'import content into this course' for the
course settings.
2. select the radio button 'select migration content'
3. it should still allow you to select migration content
4. select all content should be the default
5. Next..
6. Go to course settings and click on 'copy this course'
7. There should be two radio buttons now that say 'All content' and
select specific content.
8 The default should be 'All content'

Change-Id: I62c7161c621e6872048b04a5a2c0fe696adf316f
Reviewed-on: https://gerrit.instructure.com/31112
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: Jeff Fox
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
2014-03-11 22:02:42 +00:00
James Williams e7f5ad8427 fix content_migrations_spec for rails 3
Change-Id: I27f4334f96ced8b850a9e7b9705c74d08a09311b
Reviewed-on: https://gerrit.instructure.com/31533
Reviewed-by: Cody Cutrer <cody@instructure.com>
Tested-by: Jenkins <jenkins@instructure.com>
Product-Review: James Williams  <jamesw@instructure.com>
QA-Review: James Williams  <jamesw@instructure.com>
2014-03-10 13:09:57 +00:00
James Williams a7de28ef3f spec: fix selenium/content_migrations_spec for rails 3
Change-Id: I4f73aada8038dc5f882d2a49f631461e23f7c771
Reviewed-on: https://gerrit.instructure.com/30416
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-02-20 21:39:05 +00:00
Jeremy Stanley a28e58ea62 translate sis source_course_ids in migration api
test plan:
 - use the API to copy a course referred by sis_source_id

fixes CNVS-10959

Change-Id: I2297e86969dbc630f75a6ce856a3603b919fd62b
Reviewed-on: https://gerrit.instructure.com/29795
Tested-by: Jenkins <jenkins@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Reviewed-by: Mark Severson <markse@instructure.com>
Product-Review: Jeremy Stanley <jeremy@instructure.com>
2014-02-12 17:08:02 +00:00
Sterling Cobb 9f289fbc77 implement new content checkbox selection for content migrations
fixes CNVS-10400
fixes CNVS-10399

Test Plan
1. Copy a course, any course (with content). Make sure to copy a course
and check the 'select content' option.
2. When asked to "select content" by pressing the blue button when
migrating a course, observe the follow:
  a) Checkboxes should now look like the new design kyle made. This
includes removing the old "Select All" buttons and checkbox groups now
have a nice border around them.
  b) There is now a arrow next to checkboxes that represent if a
checkbox group has been expanded or not. Clicking top level checkbox
arrows should load it's sub checkboxes. This only happens once to
imporve performance.
  c) Checking a toplelve checkbox and then expanding should also check
all of this child checkboxes.
  d) There is now what's called an 'indeterminate' state for checkboxes.
If you have a child checkbox inside of a folder and you only select one,
the parent checkboxes will be given a line through them that represents
an 'indeterminate' state.
  e) Migrating a course should work as normal.
  f) Pressing the 'cancel' button should close the dialog window
  g) The 'Select content' button should be disabled unless you have
selected at least one item via click a checkbox.

Change-Id: I3c57d16ab7d09ab4b4e61167160ab47da0a34018
Reviewed-on: https://gerrit.instructure.com/29418
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Nathan Rogowski <nathan@instructure.com>
Product-Review: Bracken Mosbacker <bracken@instructure.com>
2014-02-05 16:55:49 +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
Shawn Meredith 49cb5834c1 spec: reruns with ruby sel driver
Change-Id: I798cefc743170bd7bdf8a21771983f1e85faf855
Reviewed-on: https://gerrit.instructure.com/26554
Tested-by: Jenkins <jenkins@instructure.com>
Reviewed-by: Bryan Madsen <bryan@instructure.com>
QA-Review: Bryan Madsen <bryan@instructure.com>
Product-Review: Bryan Madsen <bryan@instructure.com>
2013-11-22 19:33:04 +00:00
Shawn Meredith a5b3180eda Revert "spec: reruns with ruby sel driver"
This reverts commit b0face8c19.

Change-Id: Icdfe88033aa9ba9339a7f7a0349d24b32907c840
Reviewed-on: https://gerrit.instructure.com/26494
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-11-20 12:23:11 +00:00