Commit Graph

266 Commits

Author SHA1 Message Date
Davis Hyer 0191da8cbc provide required value prop to DateInput
refs LS-3017
flag=none

In regards to the BulkEditDateSelect change:
The previously used timezone library was formatting the date to null on
blur which was throwing the error. Switching to the new standard as it
both handles the formatting correctly and is the new preference

test plan:
  - tests pass

qa risk: low

Change-Id: I8103cfdf2ccd9bc8ad4f4b58c192c05ae0e34596
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286329
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2022-03-11 16:34:58 +00:00
Ahmad Amireh 677f0e06a2 clean up i18n! stragglers
refs FOO-2696
flag = none

jest needs to explicitly load the _core_en translation file since its
i18nTransformer is no longer a thing (and it's what was doing that
before)

otherwise, this just cleans up the remaining references to i18n! in the
code, aside of eslintrc which we'll address in FOO-2738

Change-Id: Ie0a74b46c4d0a48188ba86765b46b2793eed94d7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286763
Tested-by: James Butters <jbutters@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
2022-03-10 21:38:19 +00:00
Davis Hyer 9fb5c79848 expect correct prop type for CancelAttemptButton
refs LS-3017
flag=none

Shape is not a valid prop type, but rather a function that returns a
valid prop type. Since no shape was being defined, requiring a simple
object seemed more appropriate.

test plan:
  - tests pass

qa risk: low

Change-Id: I10d6743669c3138d6426a455868f5af1c33722fe
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286330
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2022-03-04 16:44:52 +00:00
Davis Hyer 811f3b838f mock additional k5 requests
refs LS-3017
flag=none

These warnings were not causing tests to fail for some reason. I wasn't
able to pin the reason down, my suspicion is that fetch-mock uses an
internal logging mechanism.

test plan:
  - run `yarn test:jest ui/features/k5_`
    - there should be no console output regarding unmatched requests

qa risk: low

Change-Id: I4e8eb876571ca74eb0b2edef6a62640387f15a15
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286391
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2022-03-04 16:44:44 +00:00
Davis Hyer c8d8efe784 ignore package translations in jest
refs LS-3017
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I8da0db910b0647405f27b04c1f9c143b35126f70
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286184
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2022-03-04 15:39:06 +00:00
Davis Hyer 65a1e1700f provide errors type for gql mocks
refs LS-3017
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: If7cf0e4e2ed5810d686efa189bbc8be811d3b94a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286183
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>
2022-03-02 23:57:03 +00:00
Davis Hyer 4bff7f75a0 provide proper outcomes context for rootId prop validation
refs LS-3017
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I87b73fea2ced38d3f5e80da2b0fd75b5e25cc016
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286071
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2022-03-02 21:47:12 +00:00
Davis Hyer bbe2edc991 move select value from option to select
refs LS-3017
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: Ia52680b0e2b5c277f6078ea19737c7107985abfb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286069
Reviewed-by: Ahmad Amireh <ahmad@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
2022-03-01 16:55:05 +00:00
Davis Hyer afac4e90a0 provide required moduleItem gql type
refs LS-3017
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: Ib823b0533e6126346adc14c76a2880eaff01f96a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286070
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2022-03-01 16:30:36 +00:00
Davis Hyer ca1312866e remove isLoading prop validation suppression
refs LS-3017
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I0b7c7b3e81e0d22fc943bfdad814c75de0e15dcc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286052
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2022-03-01 00:46:40 +00:00
Davis Hyer 5ecc77e664 fix modalProps.onDismiss error
refs LS-3017
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I7643eef56da11a29579b5ff579b2d4beeb2710de
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286051
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2022-02-28 22:17:27 +00:00
Davis Hyer 1b1b632b30 remove generic deprecation warning suppression
refs LS-3017
flag=none

Appears to have been fixed by another effort

test plan:
  - tests pass

qa risk: low

Change-Id: I813b110939764300815085ef5f127cd331a7ffca
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286049
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2022-02-28 22:07:28 +00:00
Davis Hyer 7d1e30fcbf fix waitForElement deprecation warning
refs LS-3017
flag=none

[optional] any extra details that might be useful to add

test plan:
  - TODO

qa risk: low

Change-Id: I7233a9ccdb0238ea54e60b3285fa036be6fbe662
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286044
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>
2022-02-28 18:56:10 +00:00
Davis Hyer a418b6f9ea replace deprecated toBeEmpty with toBeEmptyDOMElement
flag=none

test plan:
  - tests pass

qa risk: low

Change-Id: I71810f19ccc4590b7c4ca70a92c86ebdb14c4043
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/286038
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2022-02-28 18:11:00 +00:00
Ahmad Amireh 901fffe9ef babel independence(3): jest
refs FOO-2697
flag = none

on "babel-plugin-transform-imports": the behavior of this plugin was
surprising to me in that it not only rewrote the specifiers to point to
the CommonJS instead of the ESM variants, but it actually changed the
specifiers to point to the exact file that exports the symbol through a
mixture of fs globbing and guesses.

Consider the following import:

    import { DateTime } from '@instructure/ui-i18n'

Normally, you'd think we'll be loading the {main,module,browser} file of
the @instructure/ui-i18n package and refer to the `DateTime` symbol
exported by that file. With the plugin activated, however, the import
*itself* changes to:

    import DateTime from '@instructure/ui-i18n/lib/DateTime.js'

This is no longer merely a variant rewrite in any way as we're no longer
loading the same file. This caused new problems to surface that up to
this point were not encountered, as now we're actually loading the
entrypoints as specified.

An example of this is in that specific package where it (its entrypoint)
loads a package `decimal.js` whose ESM variant doesn't work as-is but
its CJS variant does -- something neither we nor the InstUI team were
privy to as the plugin was simply clobbering this piece of information.

~ test plan ~

- jest suite runs and passes

Change-Id: I55d7db1ede742e0f588a84d54a761b7aba03729f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/283543
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: Ahmad Amireh <ahmad@instructure.com>
2022-02-09 17:20:24 +00:00
Caleb Guanzon 784829e593 add student anonymous discussions setting
fixes VICE-2255
flag=discussion_anonymity

note 1: changing this settings will not persist
as the backend portion will happen in a different ticket

note 2: I had to put checkbox inside view even if
checkbox group wants only checkbox children because
it was the best way i can indent it. i added it to jest's
ignored errors

test pilan:
- with discussion redesign ff off but discussion anonymity ff on,
- visit discussion index page as a teacher
- verify that when you open the top right cog menu
- you do not see a Create anonymous discussion topics checkbox

- turn on both react discussions post and discussion anonymity ff's
- revisit index
- verify that cog menu checkbox has a Create anonymous discussion topics
checkbox
- verify that it is only enabled if parent Create discussion topics
is checked

Change-Id: I8fb22b10955d952a90d7c6c03c137cfa9a097ffd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/278783
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-18 22:58:19 +00:00
Drake Harper b2abd848f5 Fix error in UserLink
flag=none

Test Plan:
 - specs pass

Change-Id: Idb7ca385f8626033679a76f9df134a75d1c046a8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277562
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-11-08 15:42:56 +00:00
Drake Harper 7d721cbf66 Fix 'Cannot read property 'length' of null'
flag=none

Test Plan:
 - specs pass

Change-Id: If298b7d628b4202abf6fac9c3109d5e26a474ee6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277563
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-11-08 15:42:35 +00:00
Drake Harper 5876c888f7 Fix h4 passes to BillBoard headingAs prop
flag=none

Test Plan:
 - specs pass

Change-Id: If0b5b243282dc39090931ff09c0f55c09b9fa4df
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277564
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-11-08 15:42:25 +00:00
Drake Harper 81f653edd8 Fix name is marked as required in Avatar
flag=none

Test Plan:
 - specs pass

Change-Id: I0322d2287c08af1ab2e432b827b8b76dd2910193
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277498
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2021-11-05 18:11:32 +00:00
Drake Harper 773eb481df Fix activeMailbox is marked as required
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I937b3de616175245f3f4940e5f4ab75ce64adb87
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277493
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2021-11-05 18:11:28 +00:00
Drake Harper e7d7990b91 Fix screenReaderLabel is marked as required
flag=none

Test Plan:
 - specs pass

Change-Id: Iec9cfcd9ead0a2fd72a6d2fdab92237aa912657d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277496
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
2021-11-05 18:04:40 +00:00
Omar Gerardo Soto-Fortuño 3a3cf7a6e6 Fix issue on MobileNavigation.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I39b66fdc9f6b42f7c4f07ec8194b03acd3f2495b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277473
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-04 21:18:03 +00:00
Omar Gerardo Soto-Fortuño e0044c0170 Add avatarName to CoursesListRow.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I941526af5273a0f6b01abf10eda88f9a526489b7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277487
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-04 21:17:47 +00:00
Omar Gerardo Soto-Fortuño bd88f59ab1 Fix issue on AddConference test
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I7b101f46c0fe1043172e7050c2da134d9ad5e1a1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277475
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-04 21:17:38 +00:00
Omar Gerardo Soto-Fortuño 00d2af090d Remove StatusColorListItem error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I41da04e05c1bd7da23e1ddabaa597df2ac0ffd9e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277444
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-04 17:10:53 +00:00
Omar Gerardo Soto-Fortuño d6bb5170c1 Remove outcomeGroup.title error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ibcd4c2eb70a4b0128190cf1c276f7d1f36edd4b8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277452
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-04 17:10:42 +00:00
Omar Gerardo Soto-Fortuño 16652e106f Remove Gradebook|ScoresGrid error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I9b0817cd7d887fc7ebcfea17330c73fe6f2e32c4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277431
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-04 15:47:28 +00:00
Omar Gerardo Soto-Fortuño 7bdbb53df3 Remove HomeroomAnnouncementsLayout|LoadingWrapper error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I06f16b79589751a675b683ca64615dd4c2c41045
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277434
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-04 15:47:08 +00:00
Omar Gerardo Soto-Fortuño cc89c3a6f2 Fixes on studentMocks.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ide5410396bf2c3e87bddc48d2e8b69df40e7bf8b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277432
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-04 15:46:47 +00:00
Omar Gerardo Soto-Fortuño 93ae132983 Remove other CanvasContentTray error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I5a7988c0ece517fcb5d7adff2f731e4005edcc19
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277439
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-04 15:46:34 +00:00
Omar Gerardo Soto-Fortuño 13ae8a62d8 Remove CanvasContentTray error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I62592d42fd9a1a0f6dd76e1f439f765dcde081d2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277437
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-04 15:46:24 +00:00
Omar Gerardo Soto-Fortuño 6e439c0f46 Fixes on Scopes.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I77e182eb8c6afdb65c4f762ce86a78967efb4fda
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277355
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-03 18:51:15 +00:00
Omar Gerardo Soto-Fortuño be4de1c4a9 Fix issue on ActionButtons.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ieee854eaad959c57983437ca86908c221cdfcb42
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277345
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-03 18:04:00 +00:00
Omar Gerardo Soto-Fortuño 1000057511 Fix issue on MessageListActionContainer.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Icbb4ed087b68c9b0ff2f05e23f015e06fe7951d3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277343
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-03 18:03:47 +00:00
Omar Gerardo Soto-Fortuño e3820d60bb Remove PermissionTray error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I02d7e0bddbf0afbcf4a1e6ea5bd96248bcac6d46
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277340
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-03 18:03:32 +00:00
Omar Gerardo Soto-Fortuño 94c5e42ba8 Fix missing attributes on StudentOutcomeScore.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ibccc31b1937c9463e3dcc009f9f3c8e0fc5136c5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277292
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-03 18:03:21 +00:00
Omar Gerardo Soto-Fortuño 9a4d5cd7ee Remove StudentOutcomeScore error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Iee41f20f3d3f1195cbd8ca72658b22164584ec80
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277290
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-03 12:21:20 +00:00
Omar Gerardo Soto-Fortuño 99867afd89 Remove Gradebook error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I0ce651f6f05fc8ea5c80f9ad01a18df0b3aad8de
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277287
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-02 18:53:12 +00:00
Omar Gerardo Soto-Fortuño cc65b893bc Fix missing ids on people_search.spec.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I2e4c00ba9c66804d74cb30550f70c8fe909b3763
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277186
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-02 18:52:49 +00:00
Omar Gerardo Soto-Fortuño ea590876ea Remove RubricTab error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ie88893070e812bcd95c3f599f938d5d2b9aefdd9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277251
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-02 18:12:34 +00:00
Omar Gerardo Soto-Fortuño cb8f2da2d2 Fix issue on SVGWithTextPlaceholder.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I072a65e2e94a6f84a9b3bfff969831c9188a643b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277198
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-02 18:12:22 +00:00
Omar Gerardo Soto-Fortuño a6e831b6bc Add missing mastery to test files
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ic7e2fd51927fa9620f226ea91175760eef0525cb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277256
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-02 16:07:00 +00:00
Omar Gerardo Soto-Fortuño 57e84ebdca Remove Rubric error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Icb0066744675c2c2cc254ec86e66f61479255ad7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277254
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-02 16:06:30 +00:00
Omar Gerardo Soto-Fortuño 5a3425c504 Remove Rubric error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I82cecfe4905cea3d6b9ed0bd6eecc04bc3624649
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277209
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-02 16:04:30 +00:00
Omar Gerardo Soto-Fortuño b37ce854f3 Fix missing value on examples.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: If48d470b51d92e22bc3c5ea26a311d04eda366f1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277200
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
2021-11-02 16:03:58 +00:00
Omar Gerardo Soto-Fortuño c32c54a887 Remove RCEWrapper error that isn't needed
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: If8fe48b2b82d6b31a12c3dcc6900abb7e096f419
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277191
Reviewed-by: Drake Harper <drake.harper@instructure.com>
QA-Review: Drake Harper <drake.harper@instructure.com>
Product-Review: Drake Harper <drake.harper@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-11-02 16:02:53 +00:00
Omar Gerardo Soto-Fortuño f7317bf0b1 Add missing userId to a few tests
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Iec4614be0784b0f363c579d68dd077d7ec6ac056
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/277188
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Caleb Guanzon <cguanzon@instructure.com>
QA-Review: Caleb Guanzon <cguanzon@instructure.com>
Product-Review: Caleb Guanzon <cguanzon@instructure.com>
2021-11-01 15:10:07 +00:00
Ahmad Amireh 5f976f9989 rename frontend_build -> ui-build
minor QOL mainly for me; put webpack-specific configuration in its own
folder, make it portable, and make room for esbuild

the __webpack_public_path__ initializer no longer sources the value from
the build module, instead it uses a pre-defined global that webpack
injects

~ test plan ~

build is OK

Change-Id: I4ba4a3c0cb9175f96096f2b78022e152c04fc75d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/276183
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: Charley Kline <ckline@instructure.com>
2021-10-21 19:13:02 +00:00
Jeff Largent 67ecc41b76 Suppress JSDOM scrollTo and navigation error messages
This change stubs window.scrollTo and several window navigation
functions (window.location = '...', window.location.href = '...', and
window.location.reload()) with noops to suppress JSDOM messages
warning that these functions aren't implemented. E.g. these ones:

Error: Not implemented: scrollTo
Error: Not implemented: navigation (except hash changes)

While potentially useful if you're expecting those browser APIs to
work in a JSDOM environment, they noise up our Jest logs real good.

Test plan:
  - Tests still pass

Change-Id: I9166d0ee05273cc07069b62a1a041eeb335fbfe6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/275919
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Robin Kuss <rkuss@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
QA-Review: Robin Kuss <rkuss@instructure.com>
Product-Review: Jeff Largent <jeff.largent@instructure.com>
2021-10-14 21:02:13 +00:00
Robin Kuss 007be5c609 spec: fix canReadAnnouncements missing in K5Dashboard test
Closes LS-2731

Test Plan: Does not emit error/warning now in Jenkins

Change-Id: Iccb58891d23f521acfe3b5ff78deb9c32269b7c2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/275882
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jeff Largent <jeff.largent@instructure.com>
QA-Review: Jeff Largent <jeff.largent@instructure.com>
Product-Review: Robin Kuss <rkuss@instructure.com>
2021-10-14 12:05:57 +00:00
Ed Schiebel e9afcfcce3 Remove rce_enhancements flag from canvas - phase 1
refs LS-2655
flag=none

- this updates the files under ./ui, a few ancillary files and specs.
- Sadly the commit hook ran prettier and
  fiddled with the formatting of a handful of files too.
- Also made a few changes to quiet lint errors
- Also updated OutcomeManagement.test.js. I don't understand why,
  but 'renders ManagementHeader with lhsGroupId if selected a group in lhs'
  started failing with this change, even though nothing obviously related
  changed. The problem is that the modal isn't getting attached to the
  document being tested. The spec changed to test that the modal contained
  what it's supposed to contain.

test plan: jenkins passes and the RCE works

Change-Id: I48d85077bdbf7563cb07510d3e71d2b448c55e49
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/275301
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Weston Dransfield <wdransfield@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2021-10-08 16:59:19 +00:00
Robin Kuss 41c08d69da spec: add required canAddObservee prop for K5Dashboard
Closes LS-2713

Test Plan: passes Jenkins

Change-Id: I27d57fc670d1ecda7345581cba9a93c5fb075424
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/275393
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
Product-Review: Robin Kuss <rkuss@instructure.com>
2021-10-08 13:31:11 +00:00
Robin Kuss 4e8e59b9c1 spec: fix one jest ignored error
Closes CTA-6

Test Plan:  passes Jenkins

Change-Id: Ie58364e94213b1d70c11daf27e1362e7b3c48a28
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/275295
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Robin Kuss <rkuss@instructure.com>
Reviewed-by: Jackson Howe <jackson.howe@instructure.com>
QA-Review: Jackson Howe <jackson.howe@instructure.com>
2021-10-06 15:33:31 +00:00
Davis Hyer beac08e570 provide correct isLiked prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I05a7e6f135a3308f8648e1a875cd54f445037452
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274447
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-28 19:53:57 +00:00
Davis Hyer b6dc331acf fix IntegrationRow to provide children as a single element
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I0fc757a0841ade4f98fc167fd46d76fa6b661208
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274392
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Weston Dransfield <wdransfield@instructure.com>
2021-09-28 17:15:31 +00:00
Davis Hyer 0f51de4ed3 provide correct firstAnnouncement prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Ib4b764ced6a09b0630388557ff636aca79deac2a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274444
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-09-25 00:07:47 +00:00
Davis Hyer c8f3e1ce0f provide correct allSubmissions prop types
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I96e6ca637f78baf5e54bede3bb11541074fdac39
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274436
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2021-09-25 00:07:31 +00:00
Davis Hyer d289fdb87a provide correct colors prop types
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Ic61afc7c0e56f9582ec0ec34f7cc873febed47d3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274441
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2021-09-25 00:07:18 +00:00
Davis Hyer f2ad23a82a provide required accountId prop
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Ia5b6ae2252216c707cd6ea6497b6b4438cb2d1ae
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274434
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2021-09-25 00:06:57 +00:00
Omar Gerardo Soto-Fortuño c23b8f0cdd Fixes on MessageListActionContainer.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Icd80f84ac17fa6fe4529ae8c812b00bbe8c30bc9
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274426
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>
2021-09-24 21:06:22 +00:00
Omar Gerardo Soto-Fortuño c373a695e1 Provide imageUrl for ErrorBoundary test
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Id504544694127494ad53434d9a700bdb3ba1a75c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274422
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>
2021-09-24 20:38:13 +00:00
Omar Gerardo Soto-Fortuño c301257a6a Provide type on Conference.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I3e52e77ffbbbe20cb0224dc5308959455a0f2843
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274420
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>
2021-09-24 20:37:36 +00:00
Omar Gerardo Soto-Fortuño 200aac7e53 Provide closeTray to HelpTray
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I3730655f884e4eab7c386ff6153aaa0674ae2e41
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274418
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>
2021-09-24 20:37:18 +00:00
Omar Gerardo Soto-Fortuño 53ca889a40 Fixes on RSSFeedList.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ic5fc4ad2459c2dc2e61327f274d6dfd06ef94ca7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274406
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>
2021-09-24 19:23:18 +00:00
Omar Gerardo Soto-Fortuño 27b086684f Fixes on K5Course.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ie2bf09f6d69b38276662cb1272be2df8d5915c33
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274413
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>
2021-09-24 19:22:53 +00:00
Omar Gerardo Soto-Fortuño 5eb856c60b Fixes on SearchResults.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Id1db6f114f2a4a722032d06902601eaf83df198f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274385
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>
2021-09-24 18:34:19 +00:00
Omar Gerardo Soto-Fortuño 98863c2f27 Provide homeroomAnnouncements on HomeroomPage.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ifa3f6f7c06d2f4f9c059644ffea48ab6fdd9642e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274400
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>
2021-09-24 18:33:57 +00:00
Omar Gerardo Soto-Fortuño b6677117d3 Fixes on ManagementHeader.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I54d5dd5b5b780c632d6e754b7cc04c1182d9d8ec
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274402
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>
2021-09-24 18:33:19 +00:00
Omar Gerardo Soto-Fortuño 57c878cbda Provide focusAttemptOnInit on AttemptTab.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I3c5b9a9b01a8b054a197438728311f08b152b66a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274410
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>
2021-09-24 18:32:34 +00:00
Davis Hyer bbb8ee38fc provide correct content_shares prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I46445f544cb7fd64e919c88b5aceb44f09ab4336
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274386
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-24 17:53:19 +00:00
Davis Hyer c27710ddbf remove wait deprecation warning
flag=none

cleaned up on https://gerrit.instructure.com/c/multiple_root_accounts/+/274275

test plan:
  - specs pass

qa risk: low

Change-Id: Ia7c544941ff0a777b0badc3f009434eaf207a859
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274137
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-24 17:25:53 +00:00
Davis Hyer d9839c1f1b provide correct conversation prop types
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I66679bd2da2c9efac3740186da783f8bb83aebe6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274387
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-24 17:25:42 +00:00
Davis Hyer 95a02fbd85 provide correct id prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I0d0f5b6510f3e92a6b270c2abbf47ee17521df06
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274384
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-24 17:25:09 +00:00
Davis Hyer b14709fbae provide correct postedAt prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Id06f390ffabea0642ed67fc7c60dfabc125e487a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274379
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-24 16:08:40 +00:00
Davis Hyer 2906186fce provide correct currentUserId prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Ib00f9908f256a46df4271f10d033d72178ac3994
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274377
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-24 15:58:10 +00:00
Davis Hyer bd974054fa provide correct outcomesGroup.contextId prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: If3632e2e0c9ed713606364ee2833a5dde95f8db5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274131
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-24 15:57:53 +00:00
Omar Gerardo Soto-Fortuño 451d6d5979 Fix on GroupDescriptionModal.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Id6e764ef1ce0c46223c81455ce9377e24df47575
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274375
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>
2021-09-24 15:53:31 +00:00
Omar Gerardo Soto-Fortuño 4e8b42b3d7 Fixes on LinkValidator.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I34f0559f025c501785629c99846fbc677bdc7269
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274251
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>
2021-09-24 15:53:15 +00:00
Davis Hyer b7981ea7ab update ManageOutcomesFooter to provide valid background
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Iddf3b7be0ae7b04a8e93b47786df46c125aea34d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274128
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-24 15:50:24 +00:00
Omar Gerardo Soto-Fortuño 18743c3ad9 Fixes on StudentOutcomeScore.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Id6890387f2d0ec2e483e802dadf2ad679868a51f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274371
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>
2021-09-24 15:12:28 +00:00
Omar Gerardo Soto-Fortuño e33afd939c Add liveRegion to required tests
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I9144193278beb7c7c4bf599609fc4df9b193fd54
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274368
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>
2021-09-24 15:12:09 +00:00
Omar Gerardo Soto-Fortuño 9919baab1b Fixes on HomeroomPage.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ifebfb564138dd4790530806c9dbf6177c9e568aa
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274366
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>
2021-09-24 15:11:52 +00:00
Omar Gerardo Soto-Fortuño 379d208eea Remove issue on ManageOutcomesFooter
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ieeb2925bcaa6f7ffe5f0c600c081d158898e03b8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274364
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>
2021-09-24 15:11:14 +00:00
Omar Gerardo Soto-Fortuño 7a58380d0a Fixes on RubricTab.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I34689ab421cbf311276b7981997c9dda0f6cd53b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274176
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>
2021-09-24 01:34:25 +00:00
Omar Gerardo Soto-Fortuño 51dea1be2f Fixes on OutcomesPopover.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ie3f724d13eaa0c6f0acb49e8af0d957bf4338860
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274276
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>
2021-09-24 01:33:00 +00:00
Omar Gerardo Soto-Fortuño 23e94574cd Fixes on FindOutcomesView.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I27f792095e30b9522b36c84f6be15938e43f0bbc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274260
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>
2021-09-24 01:29:11 +00:00
Omar Gerardo Soto-Fortuño e75e8c4cf5 Add loadingAnnouncements to HomeroomPage.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I284b19d1afc81bf37ef3384a9e2046c95fa40bc2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274201
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>
2021-09-24 01:27:52 +00:00
Davis Hyer 5ccf9a14f7 provide resolvers for CanvasValidatedMockedProvider
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Ic2085cfdcc040205361cf69146bb040fb5cea789
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274139
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-24 00:30:14 +00:00
Davis Hyer ef6d2ebd7e document editorOptions.plugins prop type fix
refs MAT-453
flag=none

test plan:
  - n/a

qa risk: low

Change-Id: I7d7cdf1103ae42934cce6944da06d0f13f3e3a8a
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274129
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-24 00:30:03 +00:00
Davis Hyer d21913ceb8 provide __typename in mocked response
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I0917465b3c8f4f1b17d71222b7c654ca400d8bfd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274140
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-24 00:29:27 +00:00
Davis Hyer 5d77024a85 provide correct submissions prop type
flag=none

test plan:
  - n/a

qa risk: low

Change-Id: I78ab878ee2391ca0c7494d0921bbd9fdcb370c63
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274134
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-24 00:29:14 +00:00
Davis Hyer df27a8922f provide renderSortLabel for sortable tables
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I5c75cfe073897b065bbbd9a85d7482b12695d1b4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274142
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-24 00:28:59 +00:00
Davis Hyer 0a394efa1b provide correct open prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I87b4cab226a401e1a46f5ee15827e3192d8ad978
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274130
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-23 18:34:38 +00:00
Davis Hyer 6b0271a7a5 ensure id field provided for mock conversation participant
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I6a8296bec1a4c32d84ae4c3ee7fcd566c6915ca8
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274141
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-23 18:32:31 +00:00
Davis Hyer 044aede0c8 clean up Unmatched network request console warnings
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Ibb77fcef3a7c81e843879d8e3a082065123ce7f4
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274145
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-23 18:30:58 +00:00
Davis Hyer 0069377ce7 provide id for option props
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Id7548234277366abe9e528fd6982ca36fafbedee
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274196
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-23 15:04:05 +00:00
Davis Hyer ac399bde10 provide media track ids for media player
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I1f4c2f232bae7a0749b6b9737589caa2c5585664
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274144
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-22 21:44:02 +00:00
Omar Gerardo Soto-Fortuño 55c5f4ee31 Fixes on ScoresGrid.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ie1eb5773eb3ea2dccbf39be65d87ebebb5bcd89b
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274172
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>
2021-09-22 18:48:00 +00:00
Davis Hyer 2e985357ff provide correct homeroomAnnouncements prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I369ed372188fa971db78f4b850cb14ee31c1bd31
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274048
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-22 18:41:52 +00:00
Omar Gerardo Soto-Fortuño 7ed05c9689 Fixes regarding TextEntry id and _id
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Iadd2b9208119f8f580fb58c9351897109051dc78
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274124
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>
2021-09-22 17:40:11 +00:00
Davis Hyer 2a72b02803 provide correct currentFolder prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I84ef9850fc68c9d4d80405c5ef5d81e9f0eb6609
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274043
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-22 17:38:32 +00:00
Omar Gerardo Soto-Fortuño d96f950a5b Fixes to ManageOutcomeItem.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I177bc065e706adad9147a9c2ace7e938cb2520ba
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274122
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>
2021-09-22 17:38:25 +00:00
Omar Gerardo Soto-Fortuño cf0045a411 Add updateDeveloperKey to Scopes.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: Ie6c6730126b888de549d7c5668e5bd7794e2990d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274114
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>
2021-09-22 15:54:05 +00:00
Davis Hyer 42c2e16189 provide correct courseId prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I849d3309893b96d2c79b280af6d23718d3e4faff
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274042
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-22 14:58:14 +00:00
Omar Gerardo Soto-Fortuño 283f8dafcd Add url to SVGWithTextPlaceholder.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I337968cfbf95ed443e0f9e51e7257aa69654d6dc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274109
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>
2021-09-22 14:56:54 +00:00
Omar Gerardo Soto-Fortuño 329cefcac3 Add innerHeight to ExternalToolDialog.test.js
flag=none

test plan:
  - Specs pass

qa risk: low

Change-Id: I14145c2211df94ac9c116689fbc35cfd6b73fba6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274108
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>
2021-09-22 13:28:37 +00:00
Davis Hyer bb6ef9e2c2 document editorOptions.toolbar prop type fix
refs MAT-453
flag=none

test plan:
  - n/a

qa risk: low

Change-Id: Ia419b06bc994480da5ede82ae1345edf62d23f21
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274075
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-22 13:20:38 +00:00
Davis Hyer 4eeadead61 document heading prop type fix
refs QUIZ-8870
flag=none

test plan:
  - n/a

qa risk: low

Change-Id: I1c8161f26f5c7e91b9de8383cebabc083f9055bc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274065
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-22 13:20:25 +00:00
Davis Hyer 64809fc4b0 provide correct label prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I3e715619857e027401dedf7ef72d8241585c39fd
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274050
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-22 13:20:11 +00:00
Davis Hyer b7086d4ce6 provide correct options prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Ieefcedb7203d7d3dd291b69be43e1d1ec1a11656
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274051
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-22 13:20:00 +00:00
Davis Hyer 5ebdf0a79d provide correct outcomes.1._id prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I278452d0905fbc07f3ffdca1e2d96437fa63dfbc
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274052
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-22 13:19:48 +00:00
Davis Hyer 9e902ed2d6 provide correct selectedGroupId prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Ie76f0930218fa481ba95068f589dfe04ab72487d
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274055
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-22 13:19:36 +00:00
Davis Hyer d90cbb72a6 provide correct StudentLastAttended props
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Iec1be0b258ff0105c180e285c5ef822831cdbceb
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274056
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-22 13:19:26 +00:00
Davis Hyer 02da0f9f34 provide correct tool.id prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Id113e7e76bda9378a7cafbf70ac7cab475d04bd1
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274057
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-22 13:19:04 +00:00
Davis Hyer 0751b302a7 provide correct rceBodyRef prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Ida72f9874e08caeb7dddad4df8842e01ff42d1ad
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274053
Reviewed-by: Jeffrey Johnson <jeffrey.johnson@instructure.com>
QA-Review: Jeffrey Johnson <jeffrey.johnson@instructure.com>
Product-Review: Jeffrey Johnson <jeffrey.johnson@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
2021-09-22 00:30:27 +00:00
Davis Hyer a77ada4722 provide correct disabled prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Ib99124d9d392a472fe605d4935ed6ce97536ba97
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274045
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Weston Dransfield <wdransfield@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2021-09-21 23:12:52 +00:00
Davis Hyer 282ed0d790 provide correct selected prop type
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I5d8a978c207e6a81e61312b3dd1bd2f62f5bb90c
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274054
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-21 23:12:39 +00:00
Davis Hyer 4939a73400 provide correct prop types to StudentFooter
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: I92734176989135d0c4e05b9f63288290e64c2172
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274037
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
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>
2021-09-21 21:42:56 +00:00
Omar Gerardo Soto-Fortuño 5c9bd1052c Add onCompose to MessageListActionContainer.test.js
test plan:
  - Spec pass

qa risk: low

Change-Id: I4acc3ab0c9e3ecd6bfb227fac9663cc72f110479
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274036
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>
2021-09-21 21:37:09 +00:00
Davis Hyer 7a9c633c2b provide correct borderColor type to View
flag=none

test plan:
  - specs pass

qa risk: low

Change-Id: Ib279b62f4bf0dde50886f0389db90db260ec0597
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274040
Reviewed-by: Weston Dransfield <wdransfield@instructure.com>
QA-Review: Weston Dransfield <wdransfield@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Davis Hyer <dhyer@instructure.com>
2021-09-21 21:03:31 +00:00
Omar Gerardo Soto-Fortuño 84336e26d1 Add currentUser in GradesPage.test.js
test plan:
  - Spec pass

qa risk: low

Change-Id: Icca4ab6e36c7ac7a6c5905c7dee59cca52ac1a75
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/274030
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>
2021-09-21 19:30:03 +00:00
Davis Hyer 95b5ec7e3c fail jest tests with console warnings/errors
This commit introduces the framework for failing tests when a console
warning or error is present. All current warnings/errors are ignored so
as to get to green and follow up changes will resolve the root issue
within our tests.

test plan:
  **BEFORE pulling**
  - run all jest tests
    - notice extraneous noise from console statements
    - notice tests should pass
  **AFTER pulling**
  - run all jest tests
    - notice extraneous noise is significantly reduced
    - notice tests should pass
  - add a console warning/error to any jest test
  - run that test
    - the test should fail

qa risk: low

Change-Id: I43bf605a98a0461426ab1a9d7df40b821f5868a7
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/273908
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Brian Watson <bwatson@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
Reviewed-by: Ryan Norton <rnorton@instructure.com>
QA-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
Product-Review: Omar Soto-Fortuño <omar.soto@instructure.com>
2021-09-21 17:29:19 +00:00
Ahmad Amireh 7d9bacbde8 extract @canvas/timezone into a package
refs FOO-1891

DateTime parsing and formatting is now provided by the package datetime,
which is now the only module that interfaces with the timezone package.
Date math and utilities can now reside in the @canvas/datetime package,
which are free to utilize the parse and format routines as necessary.

    * packages/datetime: base parse & format routines
    * packages/datetime-moment-parser: a transitive dep of
      packages/datetime; used exclusively by it
    * ui/shared/datetime: canvas-specific math & utilities
    * ui/shared/timezone: deprecated and set to be removed later

Like datetime-moment-parser, datetime is configured in an initializer to
provide it with parameters coming from Canvas locale files as it is
no longer privy to that information.

CHANGES
-------

- date-time-moment-parser package has been renamed to
  datetime-moment-parser for consistency with the rest of the codebase
- hasMeridian has been renamed to hasMeridiem in the datetime package
  and will be renamed elsewhere in a later patch
- tests that rely on datetime formatting using locale-specific formats
  must now explicitly configure the datetime package with those formats
  using the API `getI18nFormats` exported by the initializer, which the
  tests do have access to, unlike the regular codebase
- conversely, tests no longer have to stub I18n phrases using the
  I18nStubber module merely to format datetimes

TEST PLAN
---- ----

The patch has no logical changes so the test suite should suffice, but
if you insist you can verify that any datepicker widget still works OK
using a locale other than en_US.

Change-Id: I8706556e329e8d931c4673d8f24582fc60a72565
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/266897
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: Charley Kline <ckline@instructure.com>
2021-08-24 17:43:05 +00:00
Jeff Largent 4fe9f01972 Add typescript support
This change adds support for typescript transpilation to our frontend
build via babel, and also updates eslint and canvas_i18nliner to be
able to understand typescript as well. The main goal of this PS is to
enable developers to add typescript code to the Canvas codebase but to
be unopinionated about how type-checking is done; at this stage types
will only be checked by running the new `check:ts` or `check:js`
scripts (which run the typescript compiler directly), or via
integration with an IDE like RubyMine or VS Code.

closes LS-2430
flag = none

Test plan:
  BUILD STEPS:
  - FE build, i18n build, and tests pass Jenkins
  - `bin/rails canvas:compile_assets` still works
  - `RAILS_ENV=production bin/rails convas:compile_assets` still works

  SPOT CHECKING:
  - Starting up rails and run `yarn build:js:watch`
  - Click around Canvas and make sure the frontend still loads as
    normal

Change-Id: I8bb1a0f065e09496a924708dead6fa4518b59496
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/270401
Reviewed-by: Ahmad Amireh <ahmad@instructure.com>
Reviewed-by: Nate Armstrong <narmstrong@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
QA-Review: Ahmad Amireh <ahmad@instructure.com>
Product-Review: Jeff Largent <jeff.largent@instructure.com>
2021-08-18 18:21:17 +00:00
Ahmad Amireh 83e4f6d4ab extract date-time-moment-parser
refs FOO-1891

this is the start of a series to break apart the inter-dependencies
between timezone and moment.js

the formatting that is done by moment now stands alone in
packages/date-time-moment-parser and is used by ui/shared/timezone. The
formatter depends on phrases coming from the locale files, which are
available to ui/* but not to packages/*, so in an initializer we inject
our custom formats into the package, allowing it to make use of them.

there should be no breaking API changes, even though several APIs were
dropped, as they were all used in test but not in the app code. To
minimize the changes, a specHelpers.js file is now provided by the
timezone package that maintains backwards compat to a reasonable extent.

TEST PLAN
==== ====

although the tests should be covering this, it wouldn't hurt to manually
exercise any of the date picker widgets

Change-Id: I0c59ad2df8f7392425debb6ec448ec1b4fb029c6
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/265313
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Charley Kline <ckline@instructure.com>
Product-Review: Charley Kline <ckline@instructure.com>
QA-Review: Charley Kline <ckline@instructure.com>
2021-08-05 21:53:25 +00:00
Ahmad Amireh 52fe84dbb2 rework handlebars dependency on brandable_css
refs FOO-1116

right now in order to build the javascript, we must run brandable_css
first for the specific purpose of injecting into handlebars templates
their corresponding stylesheet file with the checksum as reported by
brandable_css

this patch moves things around such that Rails provides this mapping of
"handlebars template" to "CSS variant file checksums" in a global
variable (Rails is privy to this information already), webpack then at
build time injects only a reference to that mapping into the template,
then our runtime brandable-css JS helper will resolve that reference
from the mapping and request the correct file based on the current
user's variant

[1] rails assigns window.BRANDABLE_CSS_HANDLEBARS_INDEX with content
like this:

    [
      [ "new_styles_normal_contrast", "new_styles_high_contrast", ... ],
      {
        "0c": ["0f4f01ab86", 0, 0, "e3e7211701", 3, ... ],
        ...
      }
    ]

the structure of the mapping is explained in brandable_css[1], it is
a bit overtuned to reduce the size as much as possible since this is
included for ALL pages even though the templates in question may never
be rendered (right now it's ~1.5kB and should never grow)

[2] webpack asks @canvas/brandable-css to loadStylesheetForJST using the
contrived id for that file (frontend_build/i18nLinerHandlebars.js:92)

[3] brandable-css/index.js will decode that structure to arrive at the
exact URL for the stylesheet for that template for the current user
variant

with this , we should be able to optimize "rake canvas:compile_assets"
to run both brandable_css and webpack in parallel, which will greatly
mitigate the performance decrease from moving from node-sass to
dart-sass

== test plan

go to some assignment's syllabus page, edit the file
app/stylesheets/jst/courses/Syllabus.scss with something fun like:

    #syllabus .day_date { background: $fire; }

rerun `npx brandable_css`, reload the page and verify it's on fire,
optionally change your setting to enable High Contrast mode, reload
the syllabus page and verify the color changes (it picks up the other
variant stylesheet)

[1]: 80af6e70af

Change-Id: Ie48cc71d4837ee02313b2d45a9ad2944725acad2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/268615
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: August Thornton <august@instructure.com>
QA-Review: August Thornton <august@instructure.com>
Product-Review: August Thornton <august@instructure.com>
2021-07-14 22:19:20 +00:00
Ed Schiebel 04fe2556c3 Reorganize some of the CanvasRce properties
closes MAT-328
flag=rce_enhancements

It was very confusing having 2 components named CanvasRce, so
the one in the canvas-rce package was renamed to simply RCE.

That the props for menu, toolbar, and plugins were not consistent
between canvas' CanvasRce and the RCE's CanvasRce was a source
of confusion (and just wrong). This moves them into the editorOptions
property where are all the way through the component hierarchy.

test plan:
  - from the canvas-rce directory run yarn demo:dev
  > expect the custom toolbar and menu options to work
  > expect the readonly prop to work (something was broken there too)

  - enable the site_admin feature "Assignment Enhancements - Student"
  - create a text entry assignment
  - as a student, go to the assignment and submit you work
  > expect the page to work like before

Change-Id: I982c7c54750e7a3d9e230e0ab6d16bd078ce9030
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/268505
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Nate Armstrong <narmstrong@instructure.com>
QA-Review: Nate Armstrong <narmstrong@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2021-07-10 13:23:49 +00:00
Jeff Largent d659447da7 Adds K-5 schedule tab jump to navigation button
Replaces the hidden duplicate weekly nav toolbar with a separate "Jump
to weekly navigation" button that returns focus to the lone navigation
toolbar (for better keyboard-only/screenreader usability).

fixes LS-2131
flag = canvas_for_elementary

Test plan:
  - As a student enrolled in a K-5 course, go to the dashboard
  - Switch to the schedule tab
  - Tab to the bottom of the planner
  - Expect a hidden button to appear reading "Jump to navigation
    toolbar"
  - Press enter, and expect the button to take you back to the "Today"
    button
  - Press left or right to switch to one of the next/previous buttons
  - Tab back to the "Jump to navigation toolbar" button
  - Press enter, expect focus to jump to whatever button was last
    active on the toolbar (next/previous)

Change-Id: Ic715d64603253412d2b97e961988ff9fcd6e92a5
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/263277
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: Jeff Largent <jeff.largent@instructure.com>
2021-04-21 18:19:45 +00:00
Jeff Largent c71d37fc2b Add K-5 Manage course button and tray
This change adds a slide-out course navigation tray and associated
button to the K-5 course home page for teachers. Also renames the
Overview tab to "Home".

closes LS-2028
flag = canvas_for_elementary

Test plan:
  - Enroll as a teacher in a K-5 course
  - Go to /courses/:course_id
  - Expect to see a "Manage" button in the upper-left
  - Expect clicking that button to open a tray inside the global nav
    bar with the course's nav links inside it
  - Expect the links to be the same as the classic Canvas nav for that
    course, including the icons showing which links are hidden from
    students
  - Expect the order of the links to also be the same
  - Click a link, expect it to take you to a classic Canvas page
  - Click the "home" link on the classic Canvas nav, and expect it to
    take you back to the K-5 course home page

  - Also expect the "Overview" tab to be called "Home" now

Change-Id: I08a375d70f98a25948073be624432edbcd1b6d04
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/262895
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Jonathan Guardado <jonathan.guardado@instructure.com>
QA-Review: Jonathan Guardado <jonathan.guardado@instructure.com>
Product-Review: Peyton Craighill <pcraighill@instructure.com>
2021-04-15 19:56:28 +00:00
Ahmad Amireh 4243097b21 rename some things
fixes FOO-1265

[skip-eslint=true]
[pin-commit-analytics=7e49eefd7f59cbf43fd03bf8957bbbfa76f8d9d5]
[pin-commit-demo_site=adade2e38e46a358a4643cd3db2fe5ccffe39ec5]
[pin-commit-instructure_misc_plugin=47a3161102b0611af56d134fbd0c828ddc1b8abf]
[pin-commit-migration_tool=0dbac2f5b421d894395605ce4b583ef0f7d60b22]
[pin-commit-multiple_root_accounts=cc96d28c0d59bbe47acc64de4fdd8e1d2b029805]

Change-Id: I14c07f20bd260cf0de1f48ceb70b3c2313edf2d2
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/258807
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Michael Ziwisky <mziwisky@instructure.com>
QA-Review: Michael Ziwisky <mziwisky@instructure.com>
Product-Review: Michael Ziwisky <mziwisky@instructure.com>
2021-04-06 01:12:49 +00:00
Jeff Largent a2a795a823 Make K-5 Dashboard tabs sticky
Update the K-5 Dashboard tabs so they will stay fixed to the top of
the viewport when the user scrolls. Also added some logic to shrink
the "Welcome, <student>!" message at the top of the tabs when
scrolling so as to not take up too much vertical space.

closes LS-1862
flag = canvas_for_elementary

Test plan:
  - Load the K-5 dashboard as a student
  - Scroll down on the Homeroom tab (either enroll in a bunch of
    courses or make the window small so that scrolling is possible)
  - Expect the tabs to be fixed to the top of the screen and the
    welcome message to shrink to what looks like an h2
  - Scroll back to the top of the screen and expect the welcome
    message to enlarge back to the look of an h1
  - Switch to the Schedule tab
  - Scroll back in time to load more events
  - Expect the tabs to be fixed to the top of the screen and more
    events to be loaded
  - Also expect the planner view to still be centered on "Today",
    rather than the events from the past

Change-Id: If8b2297b0d1b05135a9b635588a6e8f7ac275c21
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/258657
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Peyton Craighill <pcraighill@instructure.com>
Reviewed-by: Nate Armstrong <narmstrong@instructure.com>
QA-Review: Nate Armstrong <narmstrong@instructure.com>
2021-02-16 16:07:01 +00:00
Ed Schiebel a0e985948e Update tinymce and @tinymce/tinymce-react
closes LS-1609
flag=rce_enhancements

Had to nohiost tinymce so it remains w/in canvas-rce
where RCEWrapper.js can require tinymce's stylesheets, but it
still needs to be a dev dep. of canvas-lms because there are
specs that import tinuymce.

Moved the matchMedia jsdon polyfill into jest-setup where it can be
used by everyone. Need it there since the new tinymce calls it.

test plan:
  - specs pass
  - the RCE still works and looks the same
    Sorry, I don't know what else to say

Change-Id: I8c956664176b7c25995a55e0c6fea4dafad3970f
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/255604
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Nate Armstrong <narmstrong@instructure.com>
QA-Review: Nate Armstrong <narmstrong@instructure.com>
Product-Review: Ed Schiebel <eschiebel@instructure.com>
2020-12-21 22:23:52 +00:00
Charley Kline 0c21111e77 Make type filter searchable on courses main list
Closes USERS-515
flag=none

This makes the "Filter by term" select box on the main courses
page searchable by typing into the box to narrow down the
choices. Similar functionality is already present in the
corresponding selections in the New Course modal.

Because this selection dropdown includes groups, it necessitated
a complete rewrite of the SearchableSelect component so that it
works a little more like CanvasSelect in handling its children.
It no longer depends on CanvasAsyncSelect.

SearchableSelect was almost completely rewritten from scratch so
I would recommend just reviewing the new module an ignoring the
diff from the old one. Hopefully it is more generally useful now
like CanvasSelect is.

In the course of writing tests for this, I discovered that all
our supported browsers implement Array.prototype.flat(), so it
is safe to use. What does NOT implement it, however is Jest 🤦
so I also implemented them as polyfills in the jest-setup.js
and now everyone can use them in the future.

Test plan:
* Have a bunch of terms
* Go to /accounts/default
* Click on "Filter by term" to bring up the selection dropdown
* It should work just like it used to to filter the courses list
* Now try typing in the box... it should filter the available
  selections in the dropdown while you type
* If no terms match what you're typing, the dropdown should go
  away altogether and the select box itself should get a red
  highlight with red error text
* A11y should be okay

Change-Id: I3da8dd681645f83f858996fe42030ad400eada01
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/237585
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Matt Meservey
QA-Review: August Thornton <august@instructure.com>
2020-05-19 01:24:11 +00:00
jonw d48344a5e1 add overrides and editing to bulk assignment edit
closes LA-847
flag=assignment_bulk_edit

test plan:
- Assignments and their overrides should be displayed with their dates
- Each date input should function and work independently

Change-Id: Ia2206bcae8b462535e3bcc99bf024bfaae39bc3e
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/230953
QA-Review: Anju Reddy <areddy@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Product-Review: Jon Willesen <jonw+gerrit@instructure.com>
Reviewed-by: Augusto Callejas <acallejas@instructure.com>
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
2020-04-06 21:36:14 +00:00
Ryan Shaw 2ef60dfc22 spec: fix handlebars transform for jest tests
This was broken because jest would die on the
`import _Handlebars from 'handlebars/runtime’`
In frontend_build/i18nLinerHandlebars.js

Test plan:
* you should be able to import a file that imports a handlebars file
  In jest tests

Change-Id: I021de6650dd97270e10709495a42b84b6b4a4505
Reviewed-on: https://gerrit.instructure.com/208112
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-09-05 15:03:54 +00:00
Ryan Shaw e782fb7012 filter non-actionable console logs everywhere else too
I did this first for canvas’s jest tests, but this does it for
karma/qUnit, canvas-rce, canvas-planner and dev mode too.

test plan:
* run `yarn test`
* you should see a lot less react deprecation messages

Change-Id: I5f5cee08d705b749526be87fd79cfc937c015145
Reviewed-on: https://gerrit.instructure.com/206879
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-27 19:54:09 +00:00
Ryan Shaw cfb60be2da Filter out unactionable console messages
Also, fix some


Test plan:
* run `yarn jest`
* you should see less of those react 16.9.x lifestyle deprecations
  In the console output

Change-Id: Ic63e977fe8067756d0a276e316b23dab004da94f
Reviewed-on: https://gerrit.instructure.com/206813
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-26 22:17:54 +00:00
Clay Diffrient 6554a019d8 Remove autobreadcrumbs from xhr requests in Raven
This will prevent Raven from mocking out the global fetch function.
Tests that rely on the mocking functionality will pass.  This also
removes a console.log statement that led to this discovery

Test Plan:
  - Provide a valid DEPRECATION_SENTRY_DSN environment variable
  - Run Navigation.test.js and it should pass

closes CORE-214

flag = none

Change-Id: I7e229c39808ca0bffed7caf2e2ed25755c7f6185
Reviewed-on: https://gerrit.instructure.com/205914
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-08-20 23:34:20 +00:00
Clay Diffrient d2c7180e12 spec: Mock fetch on global
refs COREFE-214

Test Plan:
  - Specs pass

flag = none

Change-Id: I6c7cbcb6fdc6771e56ff78b37a532948c19610c6
Reviewed-on: https://gerrit.instructure.com/205825
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-08-20 19:28:48 +00:00
Clay Diffrient a6def4ef80 Remove other places where sentry was being noisy
Test Plan:
  - Errors don't show in Slack

closes CORE-2894

flag = none

Change-Id: Ib4fe995fc54372ffed635751cde08ce4d1a92772
Reviewed-on: https://gerrit.instructure.com/204502
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-08-09 15:31:14 +00:00
Ryan Shaw 772d1f6994 don’t count unread_count or dashcard indicators against newRelic load time
closes: CORE-3187

AKA:
Revert "Revert "don’t count unread_count or dashcard indicators 
against newRelic load time""

This reverts commit d754ff5ed1.

Test plan:
* the little badges that show unread discussion counts and stuff
  on each dashcard should work the same as before
* the badge on the global nav that shows how many unread inbox messages
  You have should work the same as before
  * if you have newRelic set up, neither should count against page load
  metrics

Change-Id: I3b869e7fb650f40f16f514db9d8b9f558443db5b
Reviewed-on: https://gerrit.instructure.com/201202
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-07-16 20:38:06 +00:00
gbeckmann d754ff5ed1 Revert "don’t count unread_count or dashcard indicators against newRelic load time"
This reverts commit aa977ecd2a.

Reverting based on belief that this is surfacing errors in the build:

"something went wrong updating unread count" TypeError: Failed to fetch

Change-Id: I842ad732d75c6ca83f31e140ddf5edb6f10e45fe
Reviewed-on: https://gerrit.instructure.com/201108
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-07-13 01:06:56 +00:00
Ryan Shaw aa977ecd2a don’t count unread_count or dashcard indicators against newRelic load time
closes: CORE-3084

Test plan:
* the little badges that show unread discussion counts and stuff
  on each dashcard should work the same as before
* the badge on the global nav that shows how many unread inbox messages
  You have should work the same as before
* if you have newRelic set up, neither should count against page load
  metrics

Change-Id: I03f81c30223355ce3e1a2632ba17bfd6f1ae658f
Reviewed-on: https://gerrit.instructure.com/197823
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
Tested-by: Jenkins
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-07-11 22:09:37 +00:00
Clay Diffrient e6f61f70bb Fix failing setupRavenConsoleLoggingPlugin on the master build
Change-Id: I0766d301653a6cf992cad5407c6e6d932aef65fc
Reviewed-on: https://gerrit.instructure.com/195853
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-05-30 20:56:41 +00:00
Ryan Shaw 3bad0a160b Remove add-module-exports babel plugin & use esModules
Closes: CORE-2868 CORE-2869

This is needed because without
Doing that, our bundle sizes are going to blow up from the things we
Import from InstUI

Test plan:
* the result of a dynamic export will now give you a object grab bag
  That has a “default” property. Not just the thing of whatever the
  “default" export was.
* so to test this, go to some page that does a dynamic import (like
  the dashboard page) and make sure that still works\

* run a prod build
* make sure that translations still work as before

Change-Id: I3dd1b32216052afd5fbc5d6cec40ea18264f65e9
Reviewed-on: https://gerrit.instructure.com/191578
Tested-by: Jenkins
Reviewed-by: Rob Orton <rob@instructure.com>
QA-Review: Rob Orton <rob@instructure.com>
Product-Review: Rob Orton <rob@instructure.com>
2019-05-03 22:49:58 +00:00
Ryan Shaw ed46527652 Upgrade to babel 7 & allow any js file to be themeable
closes: CORE-2699 CORE-2700 UIDEV-99

This commit gets canvas-lms itself upgraded to babel 7. To do that we
also had to upgrade jest to v24. We had already got canvas-rce and
canvas-planner on jest24/babel7 but now this gets everything to babel 7.
so you will see a lot of things removed from yarn.lock since we don’t
don’t have to have different versions of everything for babel and jest

The other major thing this does is make it so any JS file in canvas
can become an @instructure/ui-themeable themeable component. This means
you no longer should have to put your css in app/stylesheets for any new
react components that you are writing.

Test plan:
1. Make sure that the perf of `yarn build:js` is on-par with what it was
   before. We pass everything through the themeable babel transform now
   so there is a chance it is slower. If it is majorly slower, we’ll have
   to figure something out.
2. run a production weback build. The common (or any bundle for that
   matter should get output exactly the same as it did before)

things to manually qa check:
* in a NODE_ENV=production enviornment, go to
  /accounts/site_admin/developer_keys
* click the "+ Developer Key" button, it should open the modal.
  (there are selenium tests that do this, but it was one thing that had
  to be fixed to get jenkins to pass)

* on a course that is set up as a master course, click on the thing that
  opens the blueprint courses tray.
* verify that when you click "Associations" and "Sync History" links in
  that tray, that they dynamically load the webpack chunk for the
  modal contents for that thing and then the modal is shown
  (again, there are selenium specs that test that exact thing but it
  is always good to manually test it too)

Change-Id: I802584228962b54480a500f8fe422f45c2dcac4c
Reviewed-on: https://gerrit.instructure.com/183965
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-04-02 14:59:20 +00:00
Brent Burgoyne 70bc10e80c un-mock RichContentEditor in jest tests
coffeescript and amd files are supported now, so this is not needed.

test plan:
- all existing jest tests pass

Change-Id: If1d0a110451d6c87dca0aaf5fccdf011c3fd02ca
Reviewed-on: https://gerrit.instructure.com/186472
Reviewed-by: Jon Willesen <jonw+gerrit@instructure.com>
Tested-by: Jenkins
QA-Review: Brent Burgoyne <bburgoyne@instructure.com>
Product-Review: Brent Burgoyne <bburgoyne@instructure.com>
2019-03-22 17:29:58 +00:00
Brent Burgoyne a7b07e869e make jest support files that import handlebars
Change-Id: I073ea3f8b54cf46cd2b4c2437aad5ee13c95dc7c
Reviewed-on: https://gerrit.instructure.com/186286
Tested-by: Jenkins
Reviewed-by: Clay Diffrient <cdiffrient@instructure.com>
QA-Review: Clay Diffrient <cdiffrient@instructure.com>
Product-Review: Brent Burgoyne <bburgoyne@instructure.com>
2019-03-22 15:38:23 +00:00
Steven Burnett 637d2f6241 clean up jest-setup
Test Plan:
- tests pass

Change-Id: I2a536b3094f78270365a75122e0be1fb742bbd34
Reviewed-on: https://gerrit.instructure.com/186330
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-03-21 19:36:57 +00:00