Skip to content

Add tests for molecules password form field#76

Merged
brandongregoryscott merged 8 commits into
rsm-hcd:mainfrom
SaidShah:add-tests-for-molecules-password-form-field
Nov 11, 2020
Merged

Add tests for molecules password form field#76
brandongregoryscott merged 8 commits into
rsm-hcd:mainfrom
SaidShah:add-tests-for-molecules-password-form-field

Conversation

@SaidShah
Copy link
Copy Markdown
Contributor

@SaidShah SaidShah commented Nov 3, 2020

  • Related GitHub issue(s) linked in PR description
  • Destination branch merged, built and tested with your changes
  • Code formatted and follows best practices and patterns
  • Code builds cleanly (no additional warnings or errors)
  • Manually tested
  • Automated tests are passing
  • No decreases in automated test coverage
  • Documentation updated (readme, docs, comments, etc.)
  • Localization: No hard-coded error messages in code files (minimally in string constants)
  • New component and/ or properties? Make sure to update storybook

Closes #25

@codecov
Copy link
Copy Markdown

codecov Bot commented Nov 3, 2020

Codecov Report

Merging #76 (7a14694) into main (757bd1a) will increase coverage by 6.66%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #76      +/-   ##
==========================================
+ Coverage   25.66%   32.33%   +6.66%     
==========================================
  Files          51       51              
  Lines         900      903       +3     
  Branches      209      209              
==========================================
+ Hits          231      292      +61     
+ Misses        662      611      -51     
+ Partials        7        0       -7     
Impacted Files Coverage Δ
src/atoms/buttons/button.tsx 100.00% <ø> (ø)
src/atoms/forms/input-character-count.tsx 100.00% <ø> (ø)
src/atoms/forms/password-input.tsx 100.00% <ø> (ø)
src/atoms/forms/text-input.tsx 100.00% <ø> (+100.00%) ⬆️
src/atoms/progress-bar/progress-bar.tsx 100.00% <100.00%> (+100.00%) ⬆️
src/molecules/dropdown-button/dropdown-button.tsx 100.00% <100.00%> (+100.00%) ⬆️
src/molecules/form-fields/input-form-field.tsx 100.00% <100.00%> (+31.25%) ⬆️
src/molecules/form-fields/password-form-field.tsx 94.44% <100.00%> (+29.73%) ⬆️
src/atoms/forms/select.tsx 100.00% <0.00%> (+9.09%) ⬆️
src/molecules/form-fields/checkbox-form-field.tsx 100.00% <0.00%> (+16.66%) ⬆️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 757bd1a...4d3fddd. Read the comment docs.


const [isVisible, setIsVisible] = useState<boolean>(false);
const cssIsValid = isValid ? "" : "-invalid";
const cssIsValid = isValid ? "" : InvalidInputClassName;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could this be namespaced to this component so we don't (potentially) have multiple InvalidInputClassName imports? PasswordFormFieldInvalidClassName

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the feedback. I have changed the name if you want to take another look. 👍

@brandongregoryscott brandongregoryscott merged commit ea8c8b2 into rsm-hcd:main Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Backfill tests for Molecules/PasswordInputField

2 participants