issues
search
Talent-Catalog
/
talentcatalog
https://tctalent.org
GNU Affero General Public License v3.0
9
stars
4
forks
source link
[Infographics & Header] Implement Unit Tests
#1075
Open
EhsanEhrari
opened
3 weeks ago
EhsanEhrari
commented
3 weeks ago
Header Component:
[x] should initialize logo and websiteUrl on init
[x] should handle branding service error
[x] should perform candidate number or name search
[x] should handle candidate number or name search error
[x] should perform external ID search
[x] should handle external ID search error
[x] should perform email or phone search
[x] should handle email or phone search error
[x] should return formatted candidate row
[x] should return logged in user info
[x] should return true if user can view candidate name
[x] should return false if user cannot view candidate name
[x] should return true if user is an admin
[x] should return false if user is not an admin
[x] should return true if user is a system admin only
[x] should return true if user is a system admin only
Info-graphic Component:
[x] Test initialization of form group:
[x] Create an instance of the component.
[x] Check if the form group statsFilter is initialized correctly.
[x] Verify that the form controls are initialized with the expected default values.
[x] should handle error while submitting stats request
[x] should submit stats request successfully
Charts Component:
[x] Test chart rendering with different chart types:
[x] should initialize doughnut chart correctly
[x] provide sample data for the chart.
[x] should initialize bar chart correctly
[x] should not initialize chart if chartData is not provided