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

Dmirano/4431 security planning page #4462

Merged
merged 157 commits into from
Jan 9, 2023

Conversation

mirano-darren
Copy link
Contributor

Resolves #4431

Description

Implements the security planning page in MMIS APDs. Along with Cypress tests for this page

Significant changes or possible side effects

Automated test cases written

Given When Then Type (jest, tap, cypress)
the Security Planning page values are entered in the fields they are saved in the ADP in mongo cypress
that values are saved in the fields in the APD the page opens the saved values should display cypress
adminCheck is on Security and Interface Plan and/or Business Continuity and Disaster Recovery Plan are empty the error messages should appear under the fields and in the adminCheck panel cypress
adminCheck is on Security and Interface Plan and Business Continuity and Disaster Recovery Plan are filled in there should be no error messages on the page or in the adminCheck panel cypress
adminCheck is off the fields are valid or invalid no error messages are displayed cypress
adminCheck is on Click the Security Planning hyperlink Redirects to the Security Planning page cypress
adminCheck is on Security Planning page has validation errors Validation Errors appear in the Admin Check help panel cypress

Steps to manually verify this change

  1. e2e tests pass in circle
  2. Security planning page is functional and matches the Figma design
  3. Security planning page is in sync with the Admin Check

This pull request is ready to code review when

  • Automated tests are updated (and all tests are passing)
  • New automated test cases are documented above
  • Pull request has been labeled, if applicable with feature, content, bug,
    tests, refactor
  • Associated OpenAPI documentation has been updated
  • The experience passes a basic manual accessibility audit (keyboard nav,
    screenreader, text scaling) OR an exemption is documented

This pull request is ready to test when

  • Code has been reviewed by someone other than the original author

This pull request is ready to review when the QA has

  • Verified the functionality related to the change
  • Verified that the change works with Narrator on Windows
  • Verified that the change works with VoiceOver on Mac
  • Verified all updated pages with the WAVE tool
  • Verified tab and keyboard navigation functionality

This pull request can be merged when

  • Design has approved the experience
  • Product has approved the experience

@mirano-darren mirano-darren added feature PR label for release log tests PR label for release log labels Dec 29, 2022
@codecov-commenter
Copy link

codecov-commenter commented Dec 29, 2022

Codecov Report

Merging #4462 (1624455) into main (dcb0343) will increase coverage by 0.03%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4462      +/-   ##
==========================================
+ Coverage   95.10%   95.13%   +0.03%     
==========================================
  Files         314      315       +1     
  Lines        6988     7016      +28     
  Branches     1525     1532       +7     
==========================================
+ Hits         6646     6675      +29     
+ Misses        336      335       -1     
  Partials        6        6              
Impacted Files Coverage Δ
...rc/pages/apd/security-planning/SecurityPlanning.js 100.00% <100.00%> (+25.00%) ⬆️
web/src/redux/actions/editApd/securityPlanning.js 100.00% <100.00%> (ø)
web/src/redux/selectors/apd.selectors.js 98.11% <100.00%> (+0.15%) ⬆️

Impacted file tree graph

Impacted Files Coverage Δ
...rc/pages/apd/security-planning/SecurityPlanning.js 100.00% <100.00%> (+25.00%) ⬆️
web/src/redux/actions/editApd/securityPlanning.js 100.00% <100.00%> (ø)
web/src/redux/selectors/apd.selectors.js 98.11% <100.00%> (+0.15%) ⬆️

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 dcb0343...1624455. Read the comment docs.

Copy link
Contributor

@tbolt tbolt left a comment

Choose a reason for hiding this comment

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

Nice work. Made a few small comments, typos and such

'not.exist'
);

// TEST CONTINUE AND BACK BUTTONS, Assurances and Compliance page crashes though.
Copy link
Contributor

Choose a reason for hiding this comment

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

put this as a Todo: so we can search for it

heading: Security and Interface Plan
detail: >-
Provide a comprehensive Security and Interface Plan for IT systems and
installations involed in the administration of the Medicaid Program.
Copy link
Contributor

Choose a reason for hiding this comment

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

involed -> involved

installations involed in the administration of the Medicaid Program.
Briefly Describe what is in this plan. Include topics such as site and
facility security, security of data communications equipment, and security
of Personal Helth Information (PHI).
Copy link
Contributor

Choose a reason for hiding this comment

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

Helth -> Health

heading: Business Continuity and Disaster Recovery Plan
detail: >-
Provide a comprehensive Business Continuity and Disaster Recovery Plan for
IT systems and installations involed in the administration of the Medicaid
Copy link
Contributor

Choose a reason for hiding this comment

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

involed -> involved

const {
control,
formState: { errors },
setValue,
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think you ever use setValue

resolver: joiResolver(securityPlanningSchema)
});

console.log(`schema is ${securityPlanningSchema}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

console.log here

@cms-eapd-bot
Copy link

cms-eapd-bot commented Dec 30, 2022

See this pull request in action: https://ec2-34-192-163-36.compute-1.amazonaws.com

1624455

Copy link
Contributor

@thetif thetif left a comment

Choose a reason for hiding this comment

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

great work!

Copy link

@akuas akuas left a comment

Choose a reason for hiding this comment

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

Looks good I think we are just calling it security planning now.

Copy link

@SGilliamA1M SGilliamA1M left a comment

Choose a reason for hiding this comment

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

Great work, looks good!

Copy link
Contributor

@jeromeleecms jeromeleecms left a comment

Choose a reason for hiding this comment

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

@mirano-darren Are the nav buttons on the bottom supposed to work yet? Clicking on either puts me to a blank screen. If it's not in scope, do we have a ticket which make sure all the nav buttons are wired up?

Everything else looks great.

@mirano-darren
Copy link
Contributor Author

mirano-darren commented Jan 5, 2023

@mirano-darren Are the nav buttons on the bottom supposed to work yet? Clicking on either puts me to a blank screen. If it's not in scope, do we have a ticket which make sure all the nav buttons are wired up?

Everything else looks great.

This is expected. Some pages crash to a blank white screen. This also happened with Tif's MMIS schema PR
Looking into it now

Copy link
Contributor

@jeromeleecms jeromeleecms left a comment

Choose a reason for hiding this comment

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

This is good to go! Nice work!

@mirano-darren mirano-darren merged commit f97cc98 into main Jan 9, 2023
@mirano-darren mirano-darren deleted the dmirano/4431-security-planning-page branch January 9, 2023 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature PR label for release log tests PR label for release log
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature] Create Security Planning page for MMIS
8 participants