Closed colbymorrison closed 4 years ago
The add member modal tests are in addmembermodal.react.test.js, the file Serena submitted. I updated it in this PR (though I think I removed the snapshot test since it was failing, so we may want to re-add it)
Depends on #446 . New files in this PR is
__tests__/manage_members.test.js
Tests
Reset Password
link calls the reset password cloud functionNotes
ManageTeams.js
. The testing framework has a tough time managingref
s, so all the Toasts were breaking in the tests, even though the tests don't use or reference the Toast. Specifically,confirmationToast.current
was always null. So I changed a line fromconfirmationToast.current.show()
toconfirmationToast.current && confirmationToast.current.show()
. This allows the tests to pass and doesn't change the functionality. Hope that is ok. If not, we can go another route.Updates
.react.test.js
to.test.js
waitForComponentToPaint
function instead of defining it locally