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

FOIA-439: Add field to NIH form. #564

Merged
merged 4 commits into from
Oct 24, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 38 additions & 1 deletion config/default/webform.webform.hhs_nih_form.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ id: hhs_nih_form
title: 'HHS-NIH Form'
description: ''
category: ''
elements: |
elements: |-
name_first:
'#type': textfield
'#title': 'First name'
Expand Down Expand Up @@ -105,6 +105,43 @@ elements: |
'#options':
'no': 'No'
'yes': 'Yes'
select_the_nih_institute:
'#type': select
'#title': 'Select the NIH institute'
'#help_title': 'Selection of the NIH institute'
'#help': 'You may find useful information on the NIH FOIA page that could assist you with your request. We encourage you to visit the NIH FOIA webpage for instructions on how to file a request. Alternatively, you can select the NIH institute that is most relevant to your inquiry from the drop-down menu below. This will help NIH process your request faster and more efficiently. If unsure, please select “Office of the Director”. Thank you for your interest in the NIH.'
'#options':
OD: 'Office of the Director '
NCI: 'National Cancer Institute'
NEI: 'National Eye Institute '
NHLBI: 'National Heart, Lung, and Blood Institute'
NHGRI: 'National Human Genome Research Institute'
NIA: 'National Institute on Aging'
NIAAA: 'National Institute on Alcohol Abuse and Alcoholism'
NIAID: 'National Institute of Allergy and Infectious Diseases'
NIAMS: 'National Institute of Arthritis and Musculoskeletal and Skin Diseases'
NIBIB: 'National Institute of Biomedical Imaging and Bioengineering'
NICHD: 'Eunice Kennedy Shriver National Institute of Child Health and Human Development'
NIDCD: 'National Institute on Deafness and Other Communication Disorders'
NIDCR: 'National Institute of Dental and Craniofacial Research'
NIDDK: 'National Institute of Diabetes and Digestive and Kidney Diseases'
NIDA: 'National Institute on Drug Abuse'
NIEHS: 'National Institute of Environmental Health Sciences'
NIGMS: 'National Institute of General Medical Sciences'
NIMH: 'National Institute of Mental Health'
NIMHD: 'National Institute on Minority Health and Health Disparities'
NINDS: 'National Institute of Neurological Disorders and Stroke'
NINR: 'National Institute of Nursing Research'
NLM: 'National Library of Medicine'
CC: 'NIH Clinical Center'
CIT: 'Center for Information Technology'
CSR: 'Center for Scientific Review'
FIC: 'Fogarty International Center'
NCATS: 'National Center for Advancing Translational Sciences'
NCCIH: 'National Center for Complementary and Integrative Health'
'#empty_option': '- None -'
'#empty_value': NONE
'#sort_options': true
expedited_processing_explanation:
'#type': textarea
'#maxlength': 10000
Expand Down
2 changes: 1 addition & 1 deletion config/default/webform_template.webform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ hhs_cms_form: 1
hhs_fda_form: 1
hhs_hrsa_form: 1
hhs_ihs_form: 1
hhs_nih_form: 1
hhs_nih_form: 0
hhs_oash_form: 1
hhs_oig_form: 1
hhs_samhsa_form: 1
Expand Down
12 changes: 12 additions & 0 deletions tests/behat/features/Administrator.feature
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,15 @@ Feature: Agency Administrator role
And I am on "/node/add/agency_component"
Then I should see "Report Start Date"
And I should see "Report Expiration Date"

@api @javascript
Scenario: Verify NIH webform has Select the NIH institute drop down selection
Given users:
| name | mail | roles |
| Mini | [email protected] | Administrator |
| Angus | [email protected] | Agency Administrator |
When I am logged in as a user with the 'Agency Administrator' role
And I am at 'form/hhs-nih-form'
And I select "Office of the Director" from "Select the NIH institute"
And I wait 5 seconds
Copy link
Member

Choose a reason for hiding this comment

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

@ychen-doj Do you mind removing the "And I wait 5 seconds" line here? Not a huge deal but there's no reason to make the tests take longer if not necessary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, will do