canvas-lms/packages/canvas-rce/testcafe
Jeff Largent eed550ce62 Don't give RCE the `application` role
It looks like tinymce by default wraps the whole RCE element in a
`role="application"` attribute, which causes NVDA to skip over it as
an editable element.  This switches that to a `role="document"`
attribute to make it more visible to NVDA and other screen readers.

fixes LS-1659
flag = rce_enhancements

Test plan:
  - create a new assignment for a course
  - when in NVDA's "browse" mode, hit the "E" key to skip to the next
    editable text field
  - verify that NVDA does not skip over the RCE to the points field
    any longer
  - ensure that screen readers continue to read content within the
    RCE the same way they did before

Change-Id: If03e1ce8fb7cc4af9dbf3531012cfb4c366cbfce
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/254517
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeremy Stanley <jeremy@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Daniel Sasaki <dsasaki@instructure.com>
2020-12-08 19:55:43 +00:00
..
RCEWrapper.test.js spec: testcafe updates for canvas-rce 2020-12-07 21:24:40 +00:00
StatusBar.test.js Don't give RCE the `application` role 2020-12-08 19:55:43 +00:00
axe.test.js spec: testcafe updates for canvas-rce 2020-12-07 21:24:40 +00:00
entry.js spec: testcafe updates for canvas-rce 2020-12-07 21:24:40 +00:00
testcafe.html rce: add testcafe 2019-05-07 19:38:27 +00:00