refs MAT-719
flag=buttons_and_icons_root_account
Test Plan
- build canavs-rce and canvas JS bundles. Make sure you
are running lateste RCS NOT from an image
- In a course, create two assignments: "Assignment A" and
"Assignment B"
- In Assignment A, create a button and icon in the description
- Save Assignment A
- Embed the exact same button and icon in Assignment B's
description.
- Save Assignment B
- Edit Assignment A. Click the button and icon in the RCE
and then choose "Edit" to update the button and icon
- Verify a request was made that included that looks like this:
Path: /files/2168/download
Params:
download_frd=1
replacement_chain_context_type=course
replacement_chain_context_id=<cours id>
- Make a memorable change to the button and icon. Make sure
to click the "Apply changes to all instances..." checkbox
before saving.
- Edit Assignment B
- Verify the button and icon has updated to match the changes
made in step 8.
- Click "edit" on the button and icon. Verify the edit form
is pre-populated. Verify you can make changes to the button
and icon.
- In a new assignment, add a button from the existing buttons
and icons tray
- Save the assignment
- Edit the assignment and verify you are able to edit the
button and icon
Change-Id: I51df7574941326b1332cc1df973adb98debcf061
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286356
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jon Scheiding <jon.scheiding@instructure.com>
QA-Review: Jon Scheiding <jon.scheiding@instructure.com>
Product-Review: Weston Dransfield <wdransfield@instructure.com>