Commit Graph

176 Commits

Author SHA1 Message Date
James Butters e3417bc9e6 spec: skip flakey spec to be fixed in LA-844
flag = none

Change-Id: I85794568d47320333bc6114af4f556b3886fd991
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/230675
Reviewed-by: Brian Watson <bwatson@instructure.com>
Reviewed-by: Derek Bender <djbender@instructure.com>
Tested-by: James Butters <jbutters@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2020-03-20 16:15:01 +00:00
Ed Schiebel 417fc616a3 Restore <img> upload placeholder in the RCE
closes LA-698
flag=rce_enhancements

test plan:
  - edit something with the rce
  - add some text
  - using devtools, slow down your network (this will give you
    time later)
  - upload an image (or anything, really)
  > expect the grey placeholder box
  - refresh (before the image replaces the placeholder)
  > expect to be prompted to restore autosaved content
  - say yes
  > expect the RCE not to have the placeholder image

Change-Id: I79211fa8daa77d51ff15e73563dcce48103cbdb8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/228721
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2020-03-09 15:32:39 +00:00
Ed Schiebel 4e39b31711 Add a title to embedded media's dom element
which is typically an iframe

closes LA-628
flag=rce_enhancements

test plan:
  - in the rce, choose Media > Upload/Record Media, the the Embed
    tab, then paste in some html (you can get a real video from
    youtube, or just type any old valid html element code)
  - click submit
  - click save
  > expect the element you added to have a title="embedded content"
  - repeat, but when you enter the  embed code, give the embedded
    html an aria-label or title attribute
  - submit and save
  > expect the embedded element to have kept its original title
    or aria-label

Change-Id: I42a8ee26e8a95aa255705f09efcf581de69664d5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/228273
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Jeremy Stanley <jeremy@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2020-03-06 18:22:38 +00:00
James Butters 93551a4603 spec: add wait for animations after click
After clicking media button, we were grabbing aria-owns
attribute before the animations were done resulting in
null being returned. Add wait_for_animations before
grabbing attribute.

flag = none

Test Plan:
Jenkins selenium-chrome passes

Change-Id: Iadd9bff62feaa2c24f3782da3eabacbef9a41a4f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/228850
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rex Fleischer <rfleischer@instructure.com>
Reviewed-by: Jacob Powell <spowell@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2020-03-04 20:39:13 +00:00
Jeremy Neander ebba233185 spec: replace gradezilla with gradebook in selenium
refs TALLY-565

Change-Id: I2ef1e777b1ed2036396bace7f519dfebaf30b4b2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/227083
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Gary Mei <gmei@instructure.com>
QA-Review: Jeremy Neander <jneander@instructure.com>
Product-Review: Jeremy Neander <jneander@instructure.com>
2020-02-19 19:44:42 +00:00
sshepherd 4ed2eb2687 spec: Fix flaky specs in alerts_spec.rb
closes: LA-357

You guessed it. Another flaky spec that was
a byproduct of old jenkins and an alert issue.
Unskipped and it seems it all works out.

Change-Id: I26fc8abf97f45a69fc1e5166ce26ee4d677ca185
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/226889
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Steve Shepherd <sshepherd@instructure.com>
2020-02-15 00:14:56 +00:00
Jon Willesen 5b4fc26e4e fix RCE menus
Make the RCE menus execute the same commands as the toolbar instead of
Tiny's internal commands. Add menu items for things only currently found
in the toolbar.

closes LA-468, LA-403
flag=rce_enhancements

test plan:
- Play around with the RCE menus. They should generally do the same
  things as the corresponding toolbar options.
- Check the new "Horizontal line" menu item in the Insert menu

Change-Id: If9abce772496c89cd0a2ec64540aaaf86c77b418
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/226164
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Jon Willesen <jonw+gerrit@instructure.com>
2020-02-14 16:41:45 +00:00
Jeremy Neander e1a63f4712 remove old gradebook
Many folks—UX/UI Designers, Product Designers, Project Managers, QA
Engineers, Software Engineers—worked diligently over the span of nearly
four years to bring New Gradebook to the world. It was an effort beyond
the abilities of a few. It needed a team.

The committer would like to recognize the following folks who
contributed directly to the success of New Gradebook. Each person here
brought something unique and invaluable to the endeavor.

Christi Wruck
Danaan Clarke
Davis Phillips
Jon Fenton
Kendall Chadwick
Kyle Dubya Follett
Matt Goodwin
Pert Eilers
Sidharth Oberoi

Co-authored-by: Adrian Packel <apackel@instructure.com>
Co-authored-by: Amber Taniuchi <amber@instructure.com>
Co-authored-by: Anju Reddy <areddy@instructure.com>
Co-authored-by: Brian Park <brian@siimpl.io>
Co-authored-by: Cameron Matheson <cameron@instructure.com>
Co-authored-by: Derek Bender <djbender@instructure.com>
Co-authored-by: Gary Mei <gmei@instructure.com>
Co-authored-by: Indira Pai <ipai@instructure.com>
Co-authored-by: James Butters <jbutters@instructure.com>
Co-authored-by: KC Naegle <knaegle@instructure.com>
Co-authored-by: Keith Garner <kgarner@instructure.com>
Co-authored-by: Matt Taylor <mtaylor@instructure.com>
Co-authored-by: Neil Gupta <ngupta@instructure.com>
Co-authored-by: Nick Pitrak <npitrak@instructure.com>
Co-authored-by: Robin Kuss <rkuss@instructure.com>
Co-authored-by: Ryan Kuang <rkuang@instructure.com>
Co-authored-by: Shahbaz Javeed <sjaveed@instructure.com>
Co-authored-by: Sheldon Leibole <sheldon@siimpl.io>
Co-authored-by: Spencer Olson <solson@instructure.com>

Sincere appreciation to you all.

We will continue to find remnants of Old Gradebook, and clear those out
when we do. But this is the bulk of it.

closes TALLY-516

test plan:
 * Smoke test New Gradebook
 * Verify that the world is ready for this
 * Maybe get some sleep

Change-Id: I247b8cf93cd75ab7968e3ece615695cd00017ff0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/225211
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Keith Garner <kgarner@instructure.com>
Reviewed-by: Spencer Olson <solson@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
QA-Review: Gary Mei <gmei@instructure.com>
QA-Review: Jeremy Neander <jneander@instructure.com>
Product-Review: Keith Garner <kgarner@instructure.com>
2020-02-12 18:51:29 +00:00
Ed Schiebel 11f140adea Remove RCE's upload media menu item if kaltura not enabled
closes LA-560
flag=rce_enhancements

test plan:
  - from /plugins/kaltura
  - check "disable this plugin" and click Apply
  - edit something witn an RCE
  - click on Media toolbar button
  > expect the Upload/Record media menu item not to be there
  - return to /plugins/kaltura
  - uncheck "disable this plugin"
  - fill in the rest if not already and click Apply
  - edit something with an RCE
  - click on Media toolbar button
  > expect the Upload/Record media menu item to be first in the list

Change-Id: Iac680c9e8cb4af1cfae8b212c22e387f025f834a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/225195
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
2020-02-11 14:50:18 +00:00
Anju Reddy 43f8f46073 spec: unskip rce auto-save specs
flag=RCE Auto-Save

Change-Id: I5b71d4849615f0723e711b9b338eaa54257daa54
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/225829
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Anju Reddy <areddy@instructure.com>
2020-02-07 19:34:29 +00:00
Ed Schiebel 80b3bd0c7c Change rce's upload placeholder
The previous placeholder was an <img src="data:image/gif...">. When
autosave saved it, it got saved as an <img src="blob:...">, which
cannot be restored. By changing it to a <div>, the problem goes away.
The only side-effect is that if the upload fails and the user wants
to delete the placeholder, it used to take one click of the BS key.
Now they have to delete the "Loading..." text and the <div> will
eventually go with it.

closes LA-475
flag=rce_enhancements

test plan:
  - with notorious not running
  - in the RCE, upload media
  > expect the "Loading..." grey placeholder box
  - refresh the page
  > expect to be prompted with auto-saved content
  - say Yes
  > expect the grey box in the RCE
  - iwth notorious running
  - in the RCE, upload media
  > expect the "Loading..." grey box
  > expect the grey box to go away once the media appears

Change-Id: If16037b4b3310eb8bdc8212bc1ed1d8dc83b657d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/224433
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
Reviewed-by: Carl Kibler <ckibler@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2020-02-01 14:54:06 +00:00
Ed Schiebel 16a594b9d9 Cleanup rce autosave before prompting to restore
We originally looked for saved content to restore, and
prompted the user about it before cleaning up expired
autosaved content. This is backwards.

closes LA-518
flag=rce_enhancements,rce_auto_save

test plan:
  - edit something with an RCE then navigate to another page
    without saving
  - edit again, soon.
  > expect to be prompted to restore saved content
  - edit some more and navigate away without saving
  - edit again later, after the timeout period expires (this is
    1 hour, but you caould do
    Setting.set('rce_auto_save_max_age_ms', 10)
    in a console and change it to 10ms
  > expect not to be prompted to restore saved content

Change-Id: I35b17ccc744f3c0c6138980a5131404532aef3ba
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/224523
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Carl Kibler <ckibler@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2020-01-31 15:35:21 +00:00
Ed Schiebel da790f80c2 Remove media upload from rce per kaltura plugin setting
closes LA-536
flag=rce_enhancements

test plan:
  - open a page with the rce
  - click the Media toolbar button
  > expect "Upload/Record Media menu item to be available
  - go to /plugins, click on kaltura, check the
    "Hide the video icon in Rich Content Editor." checkbox
    and click Apply
  - return to a page with the rce
  - click the Media toolbar button
  > expect "Upload/Record Media menu item to be absent

Change-Id: I7c7d89c18115c8d2970da4db736614d252a3661a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/224823
Reviewed-by: Steven Burnett <sburnett@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2020-01-30 00:56:21 +00:00
Jeremy Putnam e3396ca546 spec: unskip RCS upload modal test
closes: LA-261
Change-Id: I9950921700b7efda301fe1329714d1ee6523336b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/223926
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
QA-Review: Jon Willesen <jonw+gerrit@instructure.com>
Product-Review: Jon Willesen <jonw+gerrit@instructure.com>
2020-01-28 22:05:37 +00:00
Ed Schiebel 05ada029a9 Autosave RCE content
Autosaves what you type into the RCE in local storage
keyed by "rceautosave:{your url here}:{textarea.id}"

Only enabled for pages where there is one RCE.

closes LA-219, LA-469
flag=rce_auto_save

rce_enhancements flag must also be on

test plan:
  - create a new announcement or assignment
  - type some stuff in the rce
  - refresh the page
  > expect to be prompted to restore saved content
  - save the thing
  - edit the thing and make some changes
  - cancel
  - re-edit
  > expect to be prompted to restore saved content
  - edit again, make changes, save, re-edit
  > expect not to be prompted
  - do more stuff like that

  test max-age timeout
  - in the rails console, run
    Setting.set('rce_auto_save_max_age_ms', 10000)
  - create a new announcement, put some text in and
    wait 10 seconds
  - create a new assignment
    (jump to /courses/:id/assignments/new)
  > expect local storage to include the entry for
    the announcement's url is gone (you can do this
    with devtools)

  test exceeding storage quota
  - this is more easily tested in firefox
  - in FF go to about:config and search for
    dom.storage.default_quota
  - change the value to 1 (k)
  - create a new announcement and past almost-a-k's
    worth of text. this works:

Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Duis rhoncus erat nunc, ut euismod odio tristique volutpat.
Vivamus porttitor, nulla vel convallis ultrices, leo leo bibendum
ligula, at egestas augue velit eget est. Vivamus tincidunt,
metus non consectetur vulputate, ex neque sagittis neque,
aliquet luctus ex felis sed neque. Nullam vel feugiat tellus,
in sagittis lorem. Nullam facilisis turpis vel justo sollicitudin gravida.
Sed volutpat vel velit a lobortis. Donec vel condimentum massa.
Maecenas feugiat cursus condimentum. Nam iaculis ex vitae nibh interdum
pretium. Duis tincidunt diam sit amet fringilla finibus. Aenean magna
velit, accumsan eget scelerisque ut, mattis in erat.

  - w/o saving, create create a new assignment,
    (/courses/:id/assignments/new)
    add ^that lorem ipsum, and refresh
  > expect localStorage to have deleted the announcement's auto-saved text
    and saved the assignment's text

Change-Id: Ia5f8161cc28213d2361054ddad1b189a3bad06d9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/222311
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
QA-Review: Anju Reddy <areddy@instructure.com>
Product-Review: Lauren Williams <lcwilliams@instructure.com>
2020-01-24 17:30:21 +00:00
Ed Schiebel 0c036549d2 close tinymce floating toolbar when the user does something
Converts all the actions taken by our plugins into
ExecCommand calls, and then we close the floating toolbar
on('ExecCommand'). This works, and I actually like the plugins
executing execCommand to do stuff.
We also close the floating toolbar on('blur'), so it closes if
the user moves focus away from the rce.

closes LA-167
flag=rce_enhancements

test plan:
  - enable "Assignment Enhancements - Student" in a course
  - create a Text Entry assignment in the course
  - navigate to the assignment as a student
  - click "Edit" to create the RCE
  - shrink your browser until the ... more button is in the toolbar
  - click it to open the floating toolbar
  - do anything in the rce
    - try the Images > User Images
    - try highlighting some text, then open the More toolbar,
      then click "B"
  > expect the floating toolbar to close
  - try opening the floating toolbar, then click somewhere else
    on the page
  > expect the toolbar to close
  - open the floating toolbar, then click on "Comments" tab
  > expect the toolbar to close
  - return to "Attempt 1" tab, open the editor and the toolbar
  - click "Cancel" or "Save"
  > expect the toolbar to close

Change-Id: Id588c0d744a1ef1301af1ac080c741c94de19937
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/221992
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
2020-01-13 23:21:21 +00:00
Cody Cutrer a81944a73a rails 6: s/update_attributes/update/g
Change-Id: Ie137c1040260b363979160e1f0558883577ebebd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/222510
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: James Williams <jamesw@instructure.com>
QA-Review: James Williams <jamesw@instructure.com>
Product-Review: James Williams <jamesw@instructure.com>
2020-01-09 20:56:35 +00:00
James Butters fcd5a4fee8 spec: update version of chrome to 78
closes: CCI-162

flag = none

Change-Id: Id03868b8095a948929fd39ae74d0c70a5eef0df9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/221262
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rex Fleischer <rfleischer@instructure.com>
Reviewed-by: Derek Bender <djbender@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2020-01-09 17:08:52 +00:00
Ed Schiebel 1af26d4d06 List media objects in RCE's CanvasContentTray
closes LA-113
flag=rce_enhancements

test plan:
  - have a user  upload a video from their Files page
  - have a user upload a video from a course's Files page
  - open a page with the RCE
  - upload a video via the RCE
  - select Media > Course Media from the toolbar
  > expect the videos uploaded to the course's Files and via the RCE
  - click on one
  > expect it to be embedded in the RCE
  - select Media > My Media
  > expect the videos uploaded to the user's Files page
  - click on it
  > expect it to be embedded in the RCE

  - same should work for audio

Change-Id: I7878963f0e2f6e18cf04eb52a8a5d78d467d86a3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/218722
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2019-12-19 20:35:26 +00:00
Clay Diffrient 9d59bccd2e Change "My *" to "User *" in canvas-rce
This makes it so everything is User Files
rather than My Files, and so forth for all the various
options.

Test Plan:
  - Go to the RCE
  - You should not see "My" describing any of the User options

closes LA-353

flag = rce_enhancements

Change-Id: Icc6efdfcfa388c3b3795c037cbe45bd95dd9a614
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/221292
Reviewed-by: Carl Kibler <ckibler@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2019-12-19 15:42:06 +00:00
Jeremy Putnam d7253f4c52 spec: skip tests due to media creation issues
Change-Id: I096c56635550b8545278e8078a72a77973268537
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/220938
Tested-by: Jenkins
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-12-16 19:45:33 +00:00
Robert Lamb fafe6f2766 spec: add Jira ticket #'s to skipped specs
Change-Id: Ie8ecf973a19ea34ab5eb62f6d4b89441527abd98
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/220661
Tested-by: Jenkins
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2019-12-13 20:07:16 +00:00
James Butters 61d94bdf96 Trigger the selenium build
Trigger the selenium build so we can watch for issues and flaky
specs. Skips a few flaky specs with jira tickets to come. Set
reruns to 2 so we can rule out any minor flaky specs.
rspec-tests.sh and rspec-with-retries.sh removed nounset and all logging
for rspec-with-retries.sh.

fixes: CCI-126
flag = none

Test plan:
Selenium builds are triggered with each ps from the main-canvas build.

Change-Id: I504e1b158e1c85e9c137a5b5757be101207420d0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/219425
Tested-by: Jenkins
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rex Fleischer <rfleischer@instructure.com>
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2019-12-12 15:31:30 +00:00
Jon Willesen b1ab5f7771 change wording of heading formats in new RCE
closes LA-272
flag=rce_enhancements

test plan:
- in new RCE, the format dropdown should read "Header 2/3/4" and should
  still work.

Change-Id: Icae5849055ef9d81a4e73cf5c5b5e052af5be65e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/219122
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Tested-by: Jenkins
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Ed Schiebel <eschiebel@instructure.com>
Product-Review: Jon Willesen <jonw+gerrit@instructure.com>
2019-12-09 16:51:30 +00:00
Jeremy Putnam f210fe2681 spec: add test for my media to rce next
closes: LA-214
Change-Id: I3e6fd514c874dbdd3a3c905ff45972ce99327e0d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/219276
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Tested-by: Jenkins
Reviewed-by: Anju Reddy <areddy@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-12-03 23:24:19 +00:00
Jeremy Putnam fc6a060f63 spec: add test for course media tray
closes: LA-213
Change-Id: I6cf3dc8169adc666ef9b1283772dbd30abb3f03b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/218960
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Tested-by: Jenkins
Reviewed-by: Anju Reddy <areddy@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-12-03 23:24:04 +00:00
Jeremy Putnam 57cd104794 spec: add test for my documents to rce next
closes: LA-211
Change-Id: I603ae8fc2a86c038e89f944d4d3bca49c0831ee2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/218944
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Tested-by: Jenkins
Reviewed-by: Anju Reddy <areddy@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-12-03 22:54:42 +00:00
Jeremy Putnam e45b03bb07 spec: add test for course documents dropdown
Change-Id: Ib13a188e295f4fa9f0a1deba3195a1877336ce8f
closes: LA-210
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/217520
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Tested-by: Jenkins
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-11-25 17:41:33 +00:00
James Butters 1055d391c8 spec: remove extra wait_for_new_page_load
Removing the wait_for_new_page_load from all get usages
since the get method already waits for page load.

Change-Id: I6e0e228e229dcd059d0b5a809b4ac30168886fc0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/215106
Tested-by: Jenkins
Reviewed-by: Steve Shepherd <sshepherd@instructure.com>
QA-Review: Steve Shepherd <sshepherd@instructure.com>
Product-Review: Steve Shepherd <sshepherd@instructure.com>
2019-10-31 15:21:57 +00:00
Carl Kibler 7ae4d37cd6 remove obsolete course sidebar look and feel
closes ADMIN-2778
flag=none

test plan:
 - confirm 'Accessible Course Menu' feature flag is gone
 - course sidebar menu maintains all recent a11y changes:
   * aria-current="page" on current page
   * uses course color
   * high contrast mode works right
   * basically, compare it to production behavior

Change-Id: Iae20776effa9421ed26c963f6d148ed0b118fab3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/214631
Tested-by: Jenkins
Reviewed-by: Rex Fleischer <rfleischer@instructure.com>
Reviewed-by: Mysti Lilla <mysti@instructure.com>
QA-Review: Mysti Lilla <mysti@instructure.com>
Product-Review: Carl Kibler <ckibler@instructure.com>
2019-10-31 01:33:14 +00:00
Jeremy Putnam 3346a62a52 spec: add test for student images adding course image
Change-Id: I916fb6a4c6f444ee232d3ef6e6dc55d566919ccc
refs: COREFE-291
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/213570
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-10-29 21:46:51 +00:00
James Butters 3cb71a5822 spec: improve selector for files_tab on sidebar_page
files_tab can load slow and be disabled when we try to click
it. By improving the selector with ":not([aria-disabled])"
it will wait for the element to be enabled.

Change-Id: I164c95d1dff15e4bb801132e7972d11ebc87eeca
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/214550
Reviewed-by: Robert Lamb <rlamb@instructure.com>
Tested-by: Jenkins
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2019-10-25 19:22:18 +00:00
James Butters 2d4b2b4ea1 spec: skip flaky spec until we can stabilize
skip spec/selenium/rcs/wiki_and_tiny_student_files_spec.rb:124 until
we can make more stable.

Change-Id: I460e01b11aac84190215be0a6cb0ee628cc383e4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/214482
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
Reviewed-by: Steve Shepherd <sshepherd@instructure.com>
Tested-by: Jenkins
2019-10-24 14:56:35 +00:00
James Butters 20e8aa3f38 spec: fix possibly_hidden_toolbar_button method
possibly_hidden_toolbar_button method was throwing a
noSuchElement exception when there was no more_toolbar_button.
Modified it to rescue the exception and handle it.

Change-Id: Ia60f1325b9244e1a9c2e884af799c6a0b3877e47
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/214412
Tested-by: Jenkins
Reviewed-by: Steve Shepherd <sshepherd@instructure.com>
QA-Review: Steve Shepherd <sshepherd@instructure.com>
Product-Review: Steve Shepherd <sshepherd@instructure.com>
2019-10-24 14:56:29 +00:00
Jeremy Putnam 40c52cfe6b spec: skip hidden file test until we can resolve click issue
Change-Id: I097592db09f2c5418fb3af455dca2feb5d454340
refs: COREFE-375
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/214109
Reviewed-by: Brent Burgoyne <bburgoyne@instructure.com>
QA-Review: Brent Burgoyne <bburgoyne@instructure.com>
Product-Review: Brent Burgoyne <bburgoyne@instructure.com>
Tested-by: Jenkins
2019-10-22 17:04:53 +00:00
Jeremy Putnam 6724542b45 spec: unskip student image test
Change-Id: I91a51590358b91b7bdc3d8351122e9cc0da8d1c0
closes: COREFE-371
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/213835
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
Tested-by: Jenkins
2019-10-18 20:19:47 +00:00
Jeremy Putnam 1447495f93 spec: skip student image test
Change-Id: Ib90bc87de878db833f528ca9014c69b69f429867
refs: COREFE-371
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/213827
Reviewed-by: James Butters <jbutters@instructure.com>
Reviewed-by: Gentry Beckmann <gbeckmann@instructure.com>
QA-Review: Gentry Beckmann <gbeckmann@instructure.com>
Tested-by: Gentry Beckmann <gbeckmann@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-10-18 19:01:47 +00:00
Ryan Shaw dfdd9382b3 upgrade instUI from 6.13.0 to 6.14.0
closes: COREFE-365

this version of InstUI no longer appends the data-cid attributes from
instUI's testable when NODE_ENV===production. that is because it slows
things down in produciton. and since our selenium build runs with
NODE_ENV=production when it runs webpack we can't use those in our
selenium tests. you need to use semantic stuff or data-test-ids or
something else to find things instead.

test plan:
* automated tests should pass

Change-Id: Id346d6c4e25d8b7b148ebf9ad9fd09cbab6e7dfb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/213301
Tested-by: Jenkins
Reviewed-by: Brent Burgoyne <bburgoyne@instructure.com>
QA-Review: Brent Burgoyne <bburgoyne@instructure.com>
Product-Review: Brent Burgoyne <bburgoyne@instructure.com>
2019-10-18 16:54:09 +00:00
Jeremy Putnam 2a70212f0d spec: add test for student image
Change-Id: I62a4ced1f10696b63f1d32847ddb6cffd2c7d7fa
refs: COREFE-291
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/211386
Tested-by: Jenkins
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-10-18 16:52:10 +00:00
Jeremy Putnam ff1b0f3ef6 spec: add wiki student files test
Change-Id: I6be270147c2010e6312993671b1b503d5601be75
closes: COREFE-232
Reviewed-on: https://gerrit.instructure.com/211311
Reviewed-by: Robert Lamb <rlamb@instructure.com>
Tested-by: Jenkins
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-10-16 18:35:29 +00:00
Clay Diffrient aa95d19b62 Replace "LTI Tools" with "Apps" in the RCE
Test Plan:
  - Using the new RCE:
    - Hover over the plug icon
    - The tooltip should say Apps

closes COREFE-341

flag = rce_enhancements

Change-Id: I8e40b034b24991af0a132a0776efd9b330ddc475
Reviewed-on: https://gerrit.instructure.com/212101
Tested-by: Jenkins
Reviewed-by: Ryan Shaw <ryan@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-10-14 18:47:48 +00:00
James Butters 41462aa768 spec: set default window-size for chromedriver
the current defalut window-size is so small it causes
flakiness with specs and is smaller than what a
real user would be using. Changed to use window
size 1680x1050 using selenium methods rather than
the custom javascript stuff we have currently.

Change-Id: Ie6b31540e6cd1ba7d1f561fb2ea5f35e8a041c22
Reviewed-on: https://gerrit.instructure.com/212239
Tested-by: Jenkins
Reviewed-by: S. Jacob Powell <spowell@instructure.com>
QA-Review: James Butters <jbutters@instructure.com>
Product-Review: James Butters <jbutters@instructure.com>
2019-10-11 20:14:23 +00:00
Jeremy Putnam 21d272659b spec: add test for locked and hidden files tab
Change-Id: Iba6b4d966e261860965c92c42cd206c281998531
refs: COREFE-288
Reviewed-on: https://gerrit.instructure.com/210620
Tested-by: Jenkins
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
Reviewed-by: Robert Lamb <rlamb@instructure.com>
2019-09-27 22:09:43 +00:00
Jeremy Putnam 266a74943d spec: add test for images in locked folder
Change-Id: I4ea51efe3ee499de44e31f33a0c313c3b2e419f1
refs: COREFE-288
Reviewed-on: https://gerrit.instructure.com/210497
Reviewed-by: James Butters <jbutters@instructure.com>
Tested-by: Jenkins
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-09-26 20:57:17 +00:00
Jeremy Putnam 2605dbc9cf spec: split student add wiki page test into two
Change-Id: If2e559b8ebe24bb0c5e767bc530f8c8358bc4a54
closes: COREFE-236
Reviewed-on: https://gerrit.instructure.com/210678
Tested-by: Jenkins
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-09-26 20:56:58 +00:00
Jeremy Putnam ad1e933232 spec: add tests for locked and hidden subfolders and files
Change-Id: I847edbe456b3065951a05a64ce8c0dd9069c3cc2
refs: COREFE-288
Reviewed-on: https://gerrit.instructure.com/210471
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-09-24 15:09:35 +00:00
Jeremy Putnam d10a695454 spec: add specs checking hidden and locked root course folders
Change-Id: I59dc53a78940642bcad8eb417194683f74e4c19c
refs: COREFE-288
Reviewed-on: https://gerrit.instructure.com/210418
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-09-24 15:09:20 +00:00
Jeremy Putnam 4da57fcf63 spec: add test for adding file to show up in page and file tree
Change-Id: If346f22dff093ffa0880236193f17abf6016b0fc
refs: COREFE-288
Reviewed-on: https://gerrit.instructure.com/210243
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-09-23 17:56:13 +00:00
Jeremy Putnam 7274332736 spec: add test to upload text in images tab
Change-Id: I7241f0fbd3458f2a650ed2c54155e218fae60ec5
refs: COREFE-288
Reviewed-on: https://gerrit.instructure.com/210104
Tested-by: Jenkins
Reviewed-by: Robert Lamb <rlamb@instructure.com>
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
2019-09-20 16:18:47 +00:00
Jeremy Putnam 14b78e6437 spec: unskip sidebar upload new file test
Change-Id: I656f7ec491bfdd3f876a45f7df2b7c28f28d30c0
refs: COREFE-288
Reviewed-on: https://gerrit.instructure.com/209558
Tested-by: Jenkins
QA-Review: Jeremy Putnam <jeremyp@instructure.com>
Product-Review: Jeremy Putnam <jeremyp@instructure.com>
Reviewed-by: Robert Lamb <rlamb@instructure.com>
2019-09-18 21:13:54 +00:00