Button
|
- |
should render
|
- |
should display button with button text
|
- |
should display disabled button with button text
|
- |
should trigger function when clicking on button
|
- |
should not trigger function when clicking on disabled button
|
- |
Icon
|
- |
should render
|
- |
should display success icon
|
- |
should display warn icon
|
- |
should display info icon
|
- |
should display error icon
|
- |
should display loading icon
|
- |
should not render on unknown icon
|
- |
Input
|
- |
should render
|
- |
should display turquoise border for valid input
|
- |
should display red border on error
|
- |
Label
|
- |
should render
|
- |
should display correct label text and have correct "for" attribute
|
- |
should display input box with placeholder and value
|
- |
should spread extra props to input
|
- |
should show error message and red border on input when field value is invalid
|
- |
should render with onChange listener
|
- |
Label
|
- |
should render
|
- |
should display correct label text
|
- |
Loading
|
- |
should render
|
- |
should display correct loading message
|
- |
Icon
|
- |
should render
|
- |
should display success message
|
- |
should display warning message
|
- |
should display info message
|
- |
should display error message
|
- |
should display loading message
|
- |
message
|
- |
should render
|
- |
should display 3 message at most
|
- |
should trigger success message when calling .success()
|
- |
should trigger warning message when calling .warning()
|
- |
should trigger info message when calling .info()
|
- |
should trigger error message when calling .error()
|
- |
should trigger loading message when calling .loading()
|
- |
Footer
|
- |
should render
|
- |
should display correct copyright content
|
- |
Page
|
- |
should render
|
- |
should display correct content
|
- |
Switch
|
- |
should render
|
- |
should display switch with label and 2 options
|
- |
should display switch without label and 4 options
|
- |
should be able to highlight selected value
|
- |
should be able to define minimum button width
|
- |
should trigger onChange when clicking on switch buttons
|
- |
FlexTable
|
- |
should render
|
- |
should display correct cell content
|
- |
should adjust column width according to props
|
- |
AppTitle
|
- |
should render
|
- |
should display correct title
|
- |
ErrorMessage
|
- |
should render
|
- |
should display correct error message
|
- |
should display in smaller size and have a red color
|
- |
Remarks
|
- |
should render
|
- |
should display correct content
|
- |
should display pixel text in a lighter color, and rem text in semi-bold
|
- |
should render with onClick and onKeyPress listener
|
- |
Remarks
|
- |
should render
|
- |
should display correct remarks
|
- |
should display in smaller size and have a lighter color
|
- |
useDebounce()
|
- |
shoud debounce state
|
- |
convertHexToRgb()
|
- |
src/utils/__test__/color.utils.test.js |
- |
src/utils/__test__/color.utils.test.js |
- |
src/utils/__test__/color.utils.test.js |
- |
roundToNearest()
|
- |
src/utils/__test__/format.utils.test.js |
- |
should return original value when precision specified is a string
|
- |
should return original value when precision specified is not integer
|
- |
deduplicateArray()
|
- |
should return an deduplicated array
|
- |
should return the original array when no deduplicated value is found
|
- |
should return an empty array when input is not an array
|
- |
removeExtraSpacesAndCommas()
|
- |
should remove multiple consecutive spaces
|
- |
should remove trialing comma
|
- |
should remove trialing space and comma
|
- |
should remove multiple consecutive spaces and trialing comma
|
- |
should return the original string when there is no multiple consecutive spaces, trialing space and comma
|
- |
convertPixelRangeToArray()
|
- |
src/utils/__test__/format.utils.test.js |
- |
src/utils/__test__/format.utils.test.js |
- |
localStorageUtils
|
- |
setKey()
|
- |
src/utils/__test__/storage.utils.test.js |
- |
should not set item when key is not provided
|
- |
src/utils/__test__/storage.utils.test.js |
- |
src/utils/__test__/storage.utils.test.js |
- |
getKey()
|
- |
src/utils/__test__/storage.utils.test.js |
- |
removeKey()
|
- |
src/utils/__test__/storage.utils.test.js |
- |
clearAll()
|
- |
should clear local storage
|
- |
isValidPositiveInteger()
|
- |
src/utils/__test__/validate.utils.test.js |
- |
src/utils/__test__/validate.utils.test.js |
- |
isValidFontSize()
|
- |
src/utils/__test__/validate.utils.test.js |
- |
src/utils/__test__/validate.utils.test.js |
- |