Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SORD-158 💄 Changing number selector behaviour. #199

Merged
merged 1 commit into from
Mar 5, 2024

:lipstick: Changing number selector behaviour.

e4169cb
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

SORD-158 💄 Changing number selector behaviour. #199

:lipstick: Changing number selector behaviour.
e4169cb
Select commit
Loading
Failed to load commit list.
GitHub Actions / UT Report succeeded Mar 5, 2024 in 1s

UT Report ✅

Tests passed successfully

✅ junit.xml

64 tests were completed in 39s with 64 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
ComputeCrementedValue 14✅ 18s
MODULE | ActionCard 3✅ 1s
MODULE | Badge 3✅ 776ms
MODULE | DateField 8✅ 13s
MODULE | DateSelector 7✅ 36s
MODULE | Keyboard 5✅ 19s
MODULE | TextField 4✅ 1s
NumberValidator 11✅ 369ms
TopAppBar mounting with a simple title 9✅ 23s

✅ ComputeCrementedValue

ComputeCrementedValue should correctly compute the incremented value within the validator limits
  ✅ ComputeCrementedValue should correctly compute the incremented value within the validator limits
ComputeCrementedValue should not exceed the max value of the validator
  ✅ ComputeCrementedValue should not exceed the max value of the validator
ComputeCrementedValue should not go below the min value of the validator
  ✅ ComputeCrementedValue should not go below the min value of the validator
ComputeCrementedValue should not brake with a zero initial value on increment
  ✅ ComputeCrementedValue should not brake with a zero initial value on increment
ComputeCrementedValue should not brake with a zero initial value on decrement
  ✅ ComputeCrementedValue should not brake with a zero initial value on decrement
ComputeCrementedValue should correctly compute the incremented value within the validator limits for decimals
  ✅ ComputeCrementedValue should correctly compute the incremented value within the validator limits for decimals
ComputeCrementedValue should correctly compute the two steps incremented value within the validator limits for decimals
  ✅ ComputeCrementedValue should correctly compute the two steps incremented value within the validator limits for decimals
ComputeCrementedValue should correctly compute the two steps incremented value within the validator limits for decimals with decimal max
  ✅ ComputeCrementedValue should correctly compute the two steps incremented value within the validator limits for decimals with decimal max
ComputeCrementedValue should correctly compute the decremented value within the validator limits for decimals
  ✅ ComputeCrementedValue should correctly compute the decremented value within the validator limits for decimals
  ✅ ComputeCrementedValue should correctly compute the decremented value within the validator limits for decimals
ComputeCrementedValue should correctly compute the two steps decremented value within the validator limits for decimals
  ✅ ComputeCrementedValue should correctly compute the two steps decremented value within the validator limits for decimals
ComputeCrementedValue should correctly compute the two steps decremented value within the validator limits for decimals with decimal min
  ✅ ComputeCrementedValue should correctly compute the two steps decremented value within the validator limits for decimals with decimal min
ComputeCrementedValue should not exceed the max value of the validator for decimals
  ✅ ComputeCrementedValue should not exceed the max value of the validator for decimals
ComputeCrementedValue should not go below the min value of the validator for decimals
  ✅ ComputeCrementedValue should not go below the min value of the validator for decimals

✅ MODULE | ActionCard

MODULE | ActionCard component renders correctly
  ✅ MODULE | ActionCard component renders correctly
MODULE | ActionCard component renders correctly in disabled state
  ✅ MODULE | ActionCard component renders correctly in disabled state
MODULE | ActionCard fires callback on button press
  ✅ MODULE | ActionCard fires callback on button press

✅ MODULE | Badge

MODULE | Badge Given a `number` should display it
  ✅ MODULE | Badge Given a `number` should display it
MODULE | Badge Given a `number` and a `maxDigits` greater than number's total digit should display a truncated `number`
  ✅ MODULE | Badge Given a `number` and a `maxDigits` greater than number's total digit should display a truncated `number`
MODULE | Badge Given a `number` and a `maxDigits` smaller or equal than number's total digit' should display the entire `number`
  ✅ MODULE | Badge Given a `number` and a `maxDigits` smaller or equal than number's total digit' should display the entire `number`

✅ MODULE | DateField

MODULE | DateField component renders correctly in empty mode
  ✅ MODULE | DateField component renders correctly in empty mode
MODULE | DateField component renders correctly empty focused state
  ✅ MODULE | DateField component renders correctly empty focused state
MODULE | DateField component renders correctly filled focused state
  ✅ MODULE | DateField component renders correctly filled focused state
MODULE | DateField component renders correctly filled unfocused state
  ✅ MODULE | DateField component renders correctly filled unfocused state
MODULE | DateField component renders correctly in error state
  ✅ MODULE | DateField component renders correctly in error state
MODULE | DateField fires callback when on input value change
  ✅ MODULE | DateField fires callback when on input value change
MODULE | DateField shouldnt send more than 2 characters
  ✅ MODULE | DateField shouldnt send more than 2 characters
MODULE | DateField shouldnt accept non number characters
  ✅ MODULE | DateField shouldnt accept non number characters

✅ MODULE | DateSelector

MODULE | DateSelector component renders correctly with prefilled values in DD/MM/YY
  ✅ MODULE | DateSelector component renders correctly with prefilled values in DD/MM/YY
MODULE | DateSelector should send date filled with missing fields
  ✅ MODULE | DateSelector should send date filled with missing fields
MODULE | DateSelector should send date filled with all changed fields
  ✅ MODULE | DateSelector should send date filled with all changed fields
MODULE | DateSelector should prefix date fields with a 0 on blur
  ✅ MODULE | DateSelector should prefix date fields with a 0 on blur
MODULE | DateSelector should not cast invalid date into a valid one
  ✅ MODULE | DateSelector should not cast invalid date into a valid one
MODULE | DateSelector error should display an error message if not focused
  ✅ MODULE | DateSelector error should display an error message if not focused
MODULE | DateSelector error should not display an error message if a field is focused
  ✅ MODULE | DateSelector error should not display an error message if a field is focused

✅ MODULE | Keyboard

MODULE | Keyboard component renders correctly
  ✅ MODULE | Keyboard component renders correctly
MODULE | Keyboard return undefined if there is no focused input provided
  ✅ MODULE | Keyboard return undefined if there is no focused input provided
MODULE | Keyboard sets the value on numeric button press
  ✅ MODULE | Keyboard sets the value on numeric button press
MODULE | Keyboard deletes the value on delete button press
  ✅ MODULE | Keyboard deletes the value on delete button press
MODULE | Keyboard fires callback onSubmit press
  ✅ MODULE | Keyboard fires callback onSubmit press

✅ MODULE | TextField

MODULE | TextField component renders correctly
  ✅ MODULE | TextField component renders correctly
MODULE | TextField component renders correctly with bottom text
  ✅ MODULE | TextField component renders correctly with bottom text
MODULE | TextField component renders correctly when textType in error state
  ✅ MODULE | TextField component renders correctly when textType in error state
MODULE | TextField fires callback when on input value change
  ✅ MODULE | TextField fires callback when on input value change

✅ NumberValidator

NumberValidator allowNegatives should return true when minValue is less than 0
  ✅ NumberValidator allowNegatives should return true when minValue is less than 0
NumberValidator allowNegatives should return false when minValue is not less than 0
  ✅ NumberValidator allowNegatives should return false when minValue is not less than 0
NumberValidator validateFormat validateFormat should return true for valid numbers
  ✅ NumberValidator validateFormat validateFormat should return true for valid numbers
NumberValidator validateFormat validateFormat should return false for invalid numbers
  ✅ NumberValidator validateFormat validateFormat should return false for invalid numbers
NumberValidator validateMinMax validateMinMax returns true for valid numbers
  ✅ NumberValidator validateMinMax validateMinMax returns true for valid numbers
NumberValidator validateMinMax validateMinMax returns false for numbers out of range
  ✅ NumberValidator validateMinMax validateMinMax returns false for numbers out of range
NumberValidator validateMinMax validateMinMax returns true for negative numbers when allowed
  ✅ NumberValidator validateMinMax validateMinMax returns true for negative numbers when allowed
NumberValidator validateMinMax validateMinMax returns false for negative numbers when not allowed
  ✅ NumberValidator validateMinMax validateMinMax returns false for negative numbers when not allowed
NumberValidator validateMinMax validateMinMax returns true for undefined text
  ✅ NumberValidator validateMinMax validateMinMax returns true for undefined text
NumberValidator validateMinMax validateMinMax returns true for "-" when negatives are allowed
  ✅ NumberValidator validateMinMax validateMinMax returns true for "-" when negatives are allowed
NumberValidator validateMinMax validateMinMax returns false for "-" when negatives are not allowed
  ✅ NumberValidator validateMinMax validateMinMax returns false for "-" when negatives are not allowed

✅ TopAppBar mounting with a simple title

TopAppBar mounting with a simple title displays a title
  ✅ TopAppBar mounting with a simple title displays a title
TopAppBar mounting with a simple title testing menu title 'as string' on press
  ✅ TopAppBar mounting with a simple title testing menu title 'as string' on press
TopAppBar mounting with a title by passing a custom component displays a title
  ✅ TopAppBar mounting with a title by passing a custom component displays a title
TopAppBar mounting with a title by passing a custom component testing menu title 'as component' on press
  ✅ TopAppBar mounting with a title by passing a custom component testing menu title 'as component' on press
TopAppBar mounting with a go back button triggers `goBack` event when user press the go back button
  ✅ TopAppBar mounting with a go back button triggers `goBack` event when user press the go back button
TopAppBar mounting with a menu displays action menu button
  ✅ TopAppBar mounting with a menu displays action menu button
TopAppBar mounting with a menu displays menu items when user press the action menu button
  ✅ TopAppBar mounting with a menu displays menu items when user press the action menu button
TopAppBar mounting with a menu retrieves menu item data when user press a menu item
  ✅ TopAppBar mounting with a menu retrieves menu item data when user press a menu item
TopAppBar mounting with a menu hides menu when user press a menu item
  ✅ TopAppBar mounting with a menu hides menu when user press a menu item