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>
This commit is contained in:
parent
3474d36533
commit
bd88f59ab1
|
@ -79,7 +79,6 @@ const ignoredErrors = [
|
|||
/The prop `activeMailbox` is marked as required in `MailboxSelectionDropdown`/,
|
||||
/The prop `avatarName` is marked as required in `UserLink`/,
|
||||
/The prop `children` is marked as required in `TruncateText`/,
|
||||
/The prop `conferenceTypes\[0\].name` is marked as required in `(AddConference|ConferenceButton)`/,
|
||||
/The prop `courseId` is marked as required in `(LatestAnnouncementLink|PublishButton)`/,
|
||||
/The prop `currentUserRoles` is marked as required in `ObserverOptions`/,
|
||||
/The prop `dateTime` is marked as required in `FriendlyDatetime`/,
|
||||
|
|
|
@ -59,7 +59,7 @@ describe('AddConference', () => {
|
|||
})
|
||||
|
||||
it('has default text', () => {
|
||||
const badType = [{type: 'BadConference'}]
|
||||
const badType = [{type: 'BadConference', name: 'Conferencing'}]
|
||||
const {getByRole} = render(<AddConference {...getProps({conferenceTypes: badType})} />)
|
||||
const button = getByRole('button')
|
||||
expect(button.textContent).toEqual('Add Conferencing')
|
||||
|
|
Loading…
Reference in New Issue