Assessment: New Edit Assessment form#5034
Merged
ekowidianto merged 37 commits intomasterfrom Sep 6, 2022
Merged
Conversation
624d09d to
40d0c6d
Compare
ekowidianto
requested changes
Aug 31, 2022
Member
ekowidianto
left a comment
There was a problem hiding this comment.
Hi @purfectliterature awesome work!! Thanks for this!
Some comments and nits below:
940a847 to
01181ee
Compare
Contributor
Author
b5cf6f1 to
712f6fe
Compare
useful for adding small notes, usually for disabled elements move infolabel
* MaterialUploader is now deprecated * FileManager supports multiple files deletion * Messages are now emitted using react-toastify * FileManager test is written using react-testing-library
712f6fe to
4198e59
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.





Notable changes
FileManagerwith multi-file selection supportAssessmentForm/indexis now in TypeScriptAssessmentFormandAssessmentIndextests in TypeScript with React Testing LibraryNotes on testing inputs on
FormTextFieldsIt is made known that our
FormTextFieldcomponent's value currently cannot be programmatically changed due to the way theonChangelistener is written. Therefore, tests involving entering texts intoFormTextFields will not work either because as per Testing Library's documentation, this is how one does it:which involves an
dispatchEventof type'change'to theHTMLElement.Until or unless
FormTextField.onChangeis changed, developers should use@testing-library/user-eventto simulate "a more natural typing behaviour" and testFormTextFieldinputs. See 2afe473. For example:user-eventcan also test for clicks and other user interactions, however, the author suggests using it only when the built-infireEventfails.