issues
search
Talent-Catalog
/
talentcatalog
https://tctalent.org
GNU Affero General Public License v3.0
9
stars
4
forks
source link
[Utils] Implement Unit tests (Part 1)
#1117
Open
EhsanEhrari
opened
3 days ago
EhsanEhrari
commented
3 days ago
Writing unit tests for the below components!
[x] Auto Save Status Component
[x] should display typing icon when typing is true
[x] should display saving icon when saving is true
[x] should display saved icon when not typing and not saving
[x] Candidate Column Selector Component
[x] should display an error message if error is set
[x] should display updating spinner when updating is true
[x] should call dismiss on activeModal when dismiss is called
[x] should initialize dragula group if not already present
[x] Candidate Context Note Component
[x] should initialize form with candidate context note
[x] should update form value when candidate input changes
[x] should call updateContextNote on save
[x] should update candidate context note on successful save
[x] should display error message when there is an error
[x] Candidate Name Num Search Component
[x] should display the correct placeholder text when displayValue is null and user is limited
[x] should display the correct placeholder text when displayValue is null and user is not limited
[x] should render candidate row correctly when user is limited
[x] should render candidate row correctly when user is not limited
[x] should handle select search result correctly when handleSelect is displayOnly
[x] should handle select search result correctly when handleSelect is not displayOnly
[x] Candidate Review Status Item Component
[x] should select the correct review status on initialization
[x] should select the correct review status on input change
[x] should open edit modal and emit event on editReviewStatusItem call
[x] should handle modal dismiss without error
[x] Edit Candidate Review Status Item Component
[x] should initialize form and load candidate review status item if id is provided
[x] should handle form validation
[ ] should create candidate review status item on save if no id is provided
[ ] should update candidate review status item on save if id is provided
[ ] should handle save error
[ ] should close the modal on successful save
[ ] should dismiss the modal on dismiss call
[ ] Candidate Search Card Component
[ ] should toggle notes visibility
[ ] should emit close event
[ ] should set active tab ID and store in local storage
[ ] should set active context tab ID and store in local storage
[ ] should determine if context note is displayed
[ ] should determine if submission list
[ ] should get candidate opportunity for job source
[ ] should determine if user can view private info
[ ] Candidate Shareable Notes Component
[ ] should initialize form with candidate shareable notes
[ ] should update form value when candidate changes
[ ] should call candidateService.updateShareableNotes on doSave
[ ] should update candidate shareableNotes on successful save
[ ] should disable textarea if not editable
[ ] should enable textarea if editable
[ ] should display error message if error is present
[ ] should not display error message if error is not present
[ ] Candidate Source Component
[ ] should toggle show more
[ ] should emit open source event
[ ] should emit select source event
[ ] should emit edit source event
[ ] should emit copy source event
[ ] should emit delete source event
[ ] should emit select columns event
[ ] should emit toggle starred event
[ ] should emit toggle watch event
[ ] should fetch saved search when seeMore is true
[ ] should handle errors when fetching saved search
[ ] should run stats
[ ] should show list folder
[ ] should fetch saved search on init
[ ] Candidate Source Description Component
[ ] Candidate Status Selector Component
[ ] Confirmation Component
Writing unit tests for the below components!