Commit Graph

266 Commits

Author SHA1 Message Date
Aaron Shafovaloff 4b84bfbe37 Prepare for InstUI upgrade
Test plan
  - Build passes

flag=none

Refs FOO-3190

Change-Id: I98cffac1add43a52c2f35806022520a1bccf90e4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/325271
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Hulse <michael.hulse@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
2023-08-15 20:57:53 +00:00
Aaron Shafovaloff 2b67658622 Remove CJS build from RCE
test plan
 - build passes

flag=none

refs FOO-3705

Change-Id: I6d14ad05133ec09206f88a86d0cd350a030d5f72
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/324612
Reviewed-by: Jacob DeWar <jacob.dewar@instructure.com>
QA-Review: Jacob DeWar <jacob.dewar@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Build-Review: Andrea Cirulli <andrea.cirulli@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-08-08 19:30:56 +00:00
Aaron Shafovaloff 74ae32c561 move planner to ui/shared
test plan:
  - smoke test of planner
  - build passes

flag=none

Change-Id: I1ccab60a53269adaa4247658696ee080e4e03fae
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/323860
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Michael Hulse <michael.hulse@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
2023-08-01 19:51:14 +00:00
Aaron Shafovaloff 14a66cb299 .jx -> .jsx in canvas-planner
also: reduced need for specialized babel config

test plan:
  - existing tests pass

flag=none

Change-Id: I2625830f01b2d65da0dad02e740f458dfb96863a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/323643
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Isaac Moore <isaac.moore@instructure.com>
Build-Review: Isaac Moore <isaac.moore@instructure.com>
2023-07-28 16:33:32 +00:00
Davis Hyer f0b5f584bb upgrade canvas to DateTimeInput v8
fixes LF-48
flag=none

test plan:
  - ensure BBB modal options renders correctly

qa risk: low

Change-Id: I22ac472e7eff24fcc501f9e7c97dbb616893192d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/319256
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-06-07 17:27:46 +00:00
Matheus 57f00bb3f2 Use new media attachment route on upload
closes LF-328
flag=media_links_use_attachment_id

Test plan:
1. In the files area in a course (or user)
2. Open the preview for a video file
   (upload one if needed).
3. Try to upload a CC via the CC menu and
   check that the correct media_attachments/
   route was used and not media_objects/

Change-Id: I55e1c2fffe44de089c39b5eb96c4ba634198d242
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/319253
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Mysti Lilla <mysti@instructure.com>
QA-Review: Mysti Lilla <mysti@instructure.com>
Product-Review: Luis Oliveira <luis.oliveira@instructure.com>
2023-06-01 21:12:34 +00:00
Charley Kline cf3fbd96bf Build prep and cleanup for InstUI 8
Refs FOO-3190
flag=none

Trying to uprev InstUI to version 8 revealed that our
front-end build config needs a little attention first.
Most of this was stuff that's been "wrong" for a while
but this major version upgrade of a major dependency
really uncovered where some things needed to be tweaked.

Test plan:
* This only touches build toolchain stuff, so...
* If the automated build passes, this should be good

Change-Id: I89bd29a581a8c84b7f82d319a0501a4adf59016e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/318035
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
QA-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Product-Review: Aaron Shafovaloff <ashafovaloff@instructure.com>
Build-Review: Aaron Ogata <aogata@instructure.com>
2023-05-15 17:56:05 +00:00
Ed Schiebel c2ff3dec6c don't let users remove auto-subscribed calendars
closes LS-3986
flag=auto_subscribe_account_calendars

test plan:
  - have a student in a couple courses in different sub-accounts
  - have one sub-acccount's calendar auto-subscribe (by setting
    account_calendar_subscription_type="auto" on the account)
  - open the calendar as the student
  > expect to see the auto-subscribed calendar in the sidebar
  - hover over that calendar
  > expect no 'x' to remove the calendar
  - click the + to add other calendar to open the Select Calendars
    modal
  > expect the auto-subscribed calendar's checkbox to be disabled
  - check the other account calendar's checkbox and Save Changes
  > expect both calendars in the sidebar
  - hover over each of them
  > expect an 'x' to delete the non-auto-subscribed calendar and
    no 'x' on the auto-subscribed calendar

Change-Id: I7c22eb3a20f3cbfb0dbe04d540e31d585c0a111a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/317430
Reviewed-by: Eric Saupe <eric.saupe@instructure.com>
QA-Review: Eric Saupe <eric.saupe@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-05-08 20:56:10 +00:00
Yona Appletree e115c330ca Type safety and prop cleanup for RCE components
Closes MAT-453
flag=none

QA Risk Low

Test plan:
- automated tests pass

Change-Id: I615b91dd03fb865bf5b4390702d320e2b88feb39
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/316757
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jacob DeWar <jacob.dewar@instructure.com>
QA-Review: Jacob DeWar <jacob.dewar@instructure.com>
Product-Review: Yona Appletree <yona.appletree@instructure.com>
2023-04-27 19:39:52 +00:00
Yona Appletree 3def613a93 Allow disabling the Jest timeout limit
Introduces DISABLE_JEST_TIMEOUT_LIMIT which disables the jest test
timeout limit, useful for local debugging in some IDEs
(such as RubyMine)

flag=none

Closes MAT-1063

Test plan:
  - Tests pass
  - Run a jest test in RubyMine with and without
    DISABLE_JEST_TIMEOUT_LIMIT=true
  - Without it, tests won't run
  - With it, they do

Change-Id: I5f422dad4476bb1824dfb487baf24fc53570a4cc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314983
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Ogata <aogata@instructure.com>
Product-Review: Yona Appletree <yona.appletree@instructure.com>
QA-Review: Juan Chavez <juan.chavez@instructure.com>
2023-04-05 20:45:14 +00:00
Jonathan Guardado ddc4378142 Resolve console errors for Pure Functions
Avoid updating the parent component state in the component body, use
a react hook instead

closes: LS-3840
flag=none

Test plan:
- Tests pass
- Confirm the unread notifications in the navigation
work as usual.
- Confirm the shared contents table works as usual,
and contents are announced by VO

Change-Id: Id50d7330b6f8759ab4ad021325a416d350da259c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314325
Reviewed-by: Luis Oliveira <luis.oliveira@instructure.com>
QA-Review: Luis Oliveira <luis.oliveira@instructure.com>
Product-Review: Luis Oliveira <luis.oliveira@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-04-05 17:11:28 +00:00
Jackson Howe 12d953f899 Convert DashboardCardReordering specs to jest
refs LS-3841
flag = none

Test plan: specs pass

Change-Id: I0f6fa423cbac705d4e61d7be4946ee303fd17f18
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314573
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Aaron Shafovaloff <ashafovaloff@instructure.com>
Reviewed-by: Davis Hyer <dhyer@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-30 00:00:16 +00:00
Davis Hyer 1bac89d31b remove CheckboxGroup usage error suppression
fixes VICE-3378
flag=none

The issue was originally introduced in
https://gerrit.instructure.com/c/canvas-lms/+/278783 and removed in
https://gerrit.instructure.com/c/canvas-lms/+/278998

test plan:
  - tests pass

qa risk: low

Change-Id: I8042a1680992c4756e2c663465c67b3782b8a5f1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/314610
Reviewed-by: Omar Soto-Fortuño <omar.soto@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-29 22:00:53 +00:00
Jonathan Guardado 96c6b2c6bf Refactor ObsererOptions to use valid children
Use a callback to notify the observer picker when the highlighted
option changes, so we no longer need to use a function as a child
to access this value.

refs LS-3837
flag=none

test plan:
- Tests pass
- Expect the observer picker to behave and look as usual in normal
canvas and k5.
- Expect not to see errors associated with the observer picker in the
console

Change-Id: Ic205828bed4882f27ff874b3eef28fd043b19b6d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/313385
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Davis Hyer <dhyer@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-17 18:09:57 +00:00
Davis Hyer 474eb6b92d document ownership of componentWillReceiveProps warnings
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: Idc9d75d0862752568aac7f042ba106af4bc890ac
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312454
Reviewed-by: Mysti Lilla <mysti@instructure.com>
QA-Review: Mysti Lilla <mysti@instructure.com>
Product-Review: Mysti Lilla <mysti@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-04 00:55:28 +00:00
Davis Hyer db11c4b31e remove unnecessary media_objects warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I80094c9d8ca9c5fb86ff87b4a7677ebf8b4b3704
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312456
Reviewed-by: Mysti Lilla <mysti@instructure.com>
QA-Review: Mysti Lilla <mysti@instructure.com>
Product-Review: Mysti Lilla <mysti@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-04 00:39:13 +00:00
Davis Hyer 64942de114 document ownership of CheckboxGroup console errors
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I79472034c3ac42a44d25c45cc66339236ff3967d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312450
Reviewed-by: Jake Oeding <jake.oeding@instructure.com>
QA-Review: Jake Oeding <jake.oeding@instructure.com>
Product-Review: Jake Oeding <jake.oeding@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-03 23:45:32 +00:00
Davis Hyer 6cfc2542d8 document ownership of 'pure functions' errors
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I8cde1ed1d1f51da8d18ee710c53f4149a8eaa14d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312409
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jake Oeding <jake.oeding@instructure.com>
QA-Review: Jake Oeding <jake.oeding@instructure.com>
Product-Review: Jake Oeding <jake.oeding@instructure.com>
2023-03-03 23:29:17 +00:00
Davis Hyer b6a226bc3b ensure all Option components are provided with required id prop
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I34c2c9a9214c23db59a2cdeb5b40c0f273e102bd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312441
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jake Oeding <jake.oeding@instructure.com>
QA-Review: Jake Oeding <jake.oeding@instructure.com>
Product-Review: Jake Oeding <jake.oeding@instructure.com>
2023-03-03 23:29:06 +00:00
Davis Hyer b19262e832 remove unnecessary heuristic warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I078b51df01866a44d3d2ffa322efa7cf987b4c72
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312437
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-03 20:34:40 +00:00
Davis Hyer e1c4dd7704 ensure all FormField components have required id prop
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I941fbf3c12f422a76d9224a75bd17701e6277493
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312436
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-03 20:22:53 +00:00
Davis Hyer 9c8f07e25c ensure all Table.ColHeader components have required id prop
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: Ide7df71be9b95e24575b24f5a5e175d7bc85f5de
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312410
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-03 19:34:10 +00:00
Davis Hyer 2a27d78457 remove unnecessary View warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: Ib5b5adfcb5927c39671affc5d63be158b4b847a9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312408
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-03 19:32:54 +00:00
Davis Hyer f1412d9036 remove unnecessary activeElement warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I92774c7531572346afe4a2daba636165ee2d95bd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312407
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-03 19:32:26 +00:00
Davis Hyer 7fc3922300 inject referenced screenreader alert containers
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I1c05f6fb2e304784963a02ea68facc89ce32cc7d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312005
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-03 15:54:02 +00:00
Davis Hyer 569d598a30 remove unnecessary name of null warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I620e929a1dac843b4c982d5f5b8df4e9c4b4c10c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312111
Reviewed-by: Yona Appletree <yona.appletree@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-03 02:04:48 +00:00
Davis Hyer 9b390033a8 remove unnecessary Text warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I0b889d2db9851090150d28af705027589d323438
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312183
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-03 02:04:27 +00:00
Davis Hyer 011d8ae22c remove unnecessary UrlEntry warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: Idaff282b02b178b6ae181cddd5219817e0a2d6f5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312181
Reviewed-by: Yona Appletree <yona.appletree@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-03 02:04:12 +00:00
Davis Hyer a744b48158 document ownership of 'Prop `children`' error resolution
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: Ic104adcfcd40d140eee3ef12f3c9a95bf85bbafe
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312114
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Yona Appletree <yona.appletree@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-03 02:03:18 +00:00
Davis Hyer 3f53f73edb resolve console errors when changing stores
refs LS-3831
flag=none

When run in succession, the previous two tests would result in an error
being logged to the console regarding changing stores:

`<Provider> does not support changing `store` on the fly. It is most
likely that you see this error because you updated to Redux 2.x and
React Redux 2.x which no longer hot reload reducers automatically. See
https://github.com/reduxjs/react-redux/releases/tag/v2.0.0 for the
migration instructions.`

Reading the tests however, we are simply repeating behavior between the
two (mounting of the component). To simplify the test behavior, I opted
to combine the tests into a single test that has resolved the issue.

test plan:
  - tests pass

qa risk: low

Change-Id: I45b32a3a2a03fd1da36ec6e036446af5596c5ee2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312180
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Yona Appletree <yona.appletree@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-03 02:02:56 +00:00
Davis Hyer bf71a824f5 ensure Select has children of type Select.Option
refs LS-3831
flag=none

Although under the hood, Select.Option renders an option element, InstUI
expects the children of Select to be only a Select.Option or a
Select.Group

Each feature team will want to check their respective components to
ensure that switching to Select.Option doesn't have any unintended UI
consequences.

test plan:
  - tests pass

qa risk: low

Change-Id: I985fa3742abb59e553d2bf339c532aa2fec47cc2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312112
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-02 19:31:14 +00:00
Davis Hyer 777ca20fb8 ensure Select components provide required renderLabel prop
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: Ieedcb8100f9614b9fb486ca29bc5dbd029918391
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312182
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Cameron Ray <cameron.ray@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-02 19:31:02 +00:00
Davis Hyer fd5fb35651 fix fragment matcher errors
refs LS-3831
flag=none

The production Apollo client uses the IntrospectionFragmentMatcher to
handle unions and interfaces in GraphQL. The MockedProvider that Apollo
provides does not have this matcher used by default, so none of our
tests are using it. This change only applies the matcher to tests that
execute queries against these types as the others do not rely on the
matcher being present.

test plan:
  - tests pass

qa risk: low

Change-Id: I527c62b99c56dcdb20de267d1134df3382f7c79d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312009
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
2023-03-01 19:47:58 +00:00
Davis Hyer 8a458f316f provide required focusOnInit prop in tests
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: Ic18312efa9bd299a50e1efb2bb361a3771b08dc5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312115
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-01 15:39:18 +00:00
Davis Hyer ecbc6f20f1 remove unnecessary message type undefined warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I987577ed20e0ecad4378963989393f67539ba9e6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312113
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-01 15:39:07 +00:00
Davis Hyer 013feb2899 remove unnecessary theme registry warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I4c847bba70a34d13adb7cb7c13b0b04354a1d0df
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312109
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-01 15:38:58 +00:00
Davis Hyer c3ef61d5c6 remove unnecessary Modal warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I83974cb1e35be6d45af05882ae882caa64a88ea0
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312116
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-01 15:38:48 +00:00
Davis Hyer d9aefffb86 remove unnecessary shouldComponentUpdate warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I58f307d2a505f650821931b23481f91be9622100
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312108
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-03-01 15:38:39 +00:00
Davis Hyer a036df2767 ensure table rows are rendered within a table
refs LS-3831
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I2403625baea7e46cdb2a8bf1c966fa4160be5b14
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312008
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-03-01 15:38:30 +00:00
Davis Hyer 6d0b707844 remove unnecessary focusable child warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I3079cef2bc6d832da1d53bb56057a052dc4ede48
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312011
Reviewed-by: Sarah Gerard <sarah.gerard@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-02-27 23:53:15 +00:00
Davis Hyer c5e186a51c remove unnecessary controlled input warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: Id285093d5c8d018440995038d6363460416e1157
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/311995
Reviewed-by: Sarah Gerard <sarah.gerard@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-02-27 23:53:05 +00:00
Davis Hyer f43cbcb7cb remove unnecessary DefaultToolForm warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: Id38b6200253f024a899deb0c2d42adf55f5a3f9d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/311996
Reviewed-by: Sarah Gerard <sarah.gerard@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-02-27 23:52:56 +00:00
Davis Hyer dcca3ffb1d remove unnecessary result storage warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: Ia5c2820b7b45db3c8f4c8d651c41cc9398797af5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/311999
Reviewed-by: Sarah Gerard <sarah.gerard@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-02-27 23:52:42 +00:00
Davis Hyer 9c2cd11afc remove unnecessary branding fetchMock assertion
refs LS-3831
flag=none

The fetchMock library provides a lot of valuable inspection methods
when mocking network requests. The 'done' method will warn the user via
the console if the mocked route was not called. Given the intention of
this test - as well as the applicable assertion the line after - I opted
to simply remove the reference to 'done' as it wasn't providing us with
anything that 'called' isn't already.

If we opted to keep both assertion in, we would either need to look at
keeping the global supression in (not ideal) or mocking the console warn
method (doesn't seem relevant to the nature of the test).

test plan:
  - tests pass

qa risk: low

Change-Id: Ifeaff92fcb770c9ed85a9ee5d49e3d61e997d718
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312012
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2023-02-27 23:52:30 +00:00
Davis Hyer 6813a17fe7 remove unnecessary selectedDate warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I72817ea7a4adea311e99552fcd548f1ebe40fdd4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312002
Reviewed-by: Jonathan Guardado <jonathan.guardado@instructure.com>
QA-Review: Jonathan Guardado <jonathan.guardado@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-02-27 23:52:20 +00:00
Davis Hyer 38d807354e remove unnecessary message type warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I9f878bee0ebe4271cfcbcb4b969813c730087d80
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312001
Reviewed-by: Jonathan Guardado <jonathan.guardado@instructure.com>
QA-Review: Jonathan Guardado <jonathan.guardado@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-02-27 23:52:03 +00:00
Davis Hyer 0f365f2395 remove unnecessary style property warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I0621043a733982f7089c2fb14fa07c0bd4f1e590
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/311994
Reviewed-by: Jonathan Guardado <jonathan.guardado@instructure.com>
QA-Review: Jonathan Guardado <jonathan.guardado@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-02-27 23:51:53 +00:00
Davis Hyer d1d6fc201b remove unnecessary FormFieldLayout warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I23622870b7c8da21d0e0411a9566b9f4c802ed0b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312007
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-02-27 23:51:42 +00:00
Davis Hyer 451f619a20 remove unnecessary useRealTimers warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: I209d6186e2a27c3d8ccb51270041fb8de25d8924
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/311997
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-02-27 23:51:25 +00:00
Davis Hyer f1281e886f remove unnecessary language file warning supression
refs LS-3831
flag=none

The test(s) previously causing this error have either been fixed or
removed. This supression is no longer necessary.

test plan:
  - tests pass

qa risk: low

Change-Id: Iabc732bbfe40214bd0d8d1eb1aeb1f897a4f0669
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/312000
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Davis Hyer <dhyer@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2023-02-27 23:51:15 +00:00