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>
This commit is contained in:
parent
1000057511
commit
be4de1c4a9
|
@ -95,7 +95,6 @@ const ignoredErrors = [
|
|||
/The prop `label` is marked as required in `(CanvasInstUIModal|FormField|FormFieldLayout|Modal)`/,
|
||||
/The prop `listDeveloperKeyScopesSet` is marked as required in `(Scopes|ScopesList)`/,
|
||||
/The prop `loading` is marked as required in `(HomeroomAnnouncementsLayout|LoadingWrapper)`/,
|
||||
/The prop `ltiKeysSetLtiKey` is marked as required in `DeveloperKeyActionButtons`/,
|
||||
/The prop `name` is marked as required in `Avatar`/,
|
||||
/The prop `onChangeSubmission` is marked as required in `StudentContent`/,
|
||||
/The prop `outcomeGroup.title` is marked as required in `(GroupDescriptionModal|GroupEditModal|ManageOutcomesView)`/,
|
||||
|
|
|
@ -38,6 +38,7 @@ const props = ({
|
|||
deleteDeveloperKey: jest.fn(),
|
||||
editDeveloperKey: jest.fn(),
|
||||
developerKeysModalOpen: jest.fn(),
|
||||
ltiKeysSetLtiKey: jest.fn(),
|
||||
developerKey,
|
||||
visible: true,
|
||||
developerName: 'Unnamed Tool',
|
||||
|
@ -93,10 +94,7 @@ it('warns the user when deleting a LTI key', () => {
|
|||
)
|
||||
|
||||
window.confirm = jest.fn()
|
||||
wrapper
|
||||
.find('Button')
|
||||
.at(2)
|
||||
.simulate('click')
|
||||
wrapper.find('Button').at(2).simulate('click')
|
||||
expect(window.confirm).toHaveBeenCalledWith(
|
||||
'Are you sure you want to delete this developer key? This action will also delete all tools associated with the developer key in this context.'
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue