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:
Omar Gerardo Soto-Fortuño 2021-11-03 11:25:44 -04:00 committed by Omar Soto-Fortuño
parent 1000057511
commit be4de1c4a9
2 changed files with 2 additions and 5 deletions

View File

@ -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)`/,

View File

@ -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.'
)