provide required title prop in planner tests
flag=none test plan: - tests pass qa risk: low Change-Id: I89605319e790bcab01701b187391b98811c72ead Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/315720 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: Davis Hyer <dhyer@instructure.com>
This commit is contained in:
parent
0fed7b7336
commit
2082e77a77
|
@ -24,10 +24,7 @@
|
|||
*/
|
||||
/* eslint-disable no-console */
|
||||
const globalError = global.console.error
|
||||
const ignoredErrors = [
|
||||
/A theme registry has already been initialized/,
|
||||
/The prop `title` is marked as required/,
|
||||
]
|
||||
const ignoredErrors = [/A theme registry has already been initialized/]
|
||||
const globalWarn = global.console.warn
|
||||
const ignoredWarnings = [
|
||||
/\[(Popover|DateInput|Select|TimeInput|DateTimeInput)\] is deprecated/,
|
||||
|
|
|
@ -110,7 +110,10 @@ describe('Weekly PlannerApp', () => {
|
|||
it('displays the whole week if there are any items', () => {
|
||||
const opts = getDefaultValues()
|
||||
let days = [opts.thisWeek.weekStart.clone().add(1, 'day')]
|
||||
days = days.map(d => [d.format('YYYY-MM-DD'), [{dateBucketMoment: d, uniqueId: '1'}]])
|
||||
days = days.map(d => [
|
||||
d.format('YYYY-MM-DD'),
|
||||
[{dateBucketMoment: d, uniqueId: '1', title: ''}],
|
||||
])
|
||||
const {container, queryAllByText} = render(<PlannerApp {...getDefaultValues({days})} />)
|
||||
expect(container.querySelectorAll('.planner-day').length).toEqual(7)
|
||||
const d = opts.thisWeek.weekStart.clone()
|
||||
|
|
Loading…
Reference in New Issue