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

EGRC-400: Implement Profile Tests for Display of Controls and Control Modifications #61

Merged
merged 16 commits into from
Jun 25, 2021

Conversation

kkennedy26
Copy link
Contributor

Two tests were added within the OSCALProfile.test. The first test within the function, testOSCALProfile, checks for the display of controls. The second test checks for the display of controls modifications by simulating a click of the modification's icon button. Bugs were also addressed within this PR: keys were added to child parts, parameters were fixed for html elements, and asynchronous tasks were cancelled in useEffect().

Two console errors may appear, in regards to key props for OSCALControlImplementationImplReq, that will be addressed in another issue.

To run tests: npm test or npm test -- --verbose

kkennedy26 and others added 11 commits June 21, 2021 12:47
Displaying the alters nested tags inside of each other in an uneeded
way. Instead only place typographies in a DialogContent tag
OSCALLoader was attempting to preform a React state update on an
unmounted component. This indicates a memory leak and caused the tests
to give warnings. We added a check to see if a component is mounted
before updating state.
Copy link
Contributor

@rgauss rgauss left a comment

Choose a reason for hiding this comment

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

Left a question, but overall looks good.

src/OSCALProfile.test.js Show resolved Hide resolved
@kkennedy26 kkennedy26 merged commit ae42fbd into EGRC-261 Jun 25, 2021
@rgauss rgauss deleted the EGRC-400 branch June 25, 2021 20:38
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.

None yet

4 participants