Skip to content

Commit

Permalink
Release v2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Arce, Paul (NIH/NCI) [C] committed Jan 3, 2024
2 parents 60e3469 + d4b0edd commit 86b56ae
Show file tree
Hide file tree
Showing 36 changed files with 120 additions and 84 deletions.
10 changes: 5 additions & 5 deletions cypress/e2e/AdvancedSearchPage/AdvancedSearchForm.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ Feature: As a user, I want to be able to search for a clinical trial using advan
Given the user navigates to "/advanced"
Then the page title is "Find NCI-Supported Clinical Trials"
And the text "NCI-supported clinical trials are those sponsored or otherwise financially supported by NCI. See our guide, Steps to Find a Clinical Trial, to learn about options for finding trials not included in NCI's collection." appears below the title
And "Steps to Find a Clinical Trial" link has a href "https://www.cancer.gov/about-cancer/treatment/clinical-trials/search/trial-guide"
And "Steps to Find a Clinical Trial" link has a href "https://www.cancer.gov/research/participate/clinical-trials-search/steps"
And Search tip icon is displayed and text "Search Tip: All fields are optional. Skip any items that are unknown or not applicable or try our basic search." appears
And "basic search" link has a href "/"
And the following delighters are displayed
| delighter | href | title | text |
| cts-livehelp | /contact | Have a question?We're here to help | Chat with us: LiveHelpCall us: 1-800-4-CANCER(1-800-422-6237) |
| cts-what | /about-cancer/treatment/clinical-trials/what-are-trials | What Are Cancer Clinical Trials? | Learn what they are and what you should know about them. |
| cts-which | /about-cancer/treatment/clinical-trials/search/trial-guide | Which trials are right for you? | Use the checklist in our guide to gather the information youll need. |
| delighter | href | title | text |
| cts-livehelp | /contact | Have a question?We're here to help | Chat with us: LiveHelpCall us: 1-800-4-CANCER(1-800-422-6237) |
| cts-what | /research/participate/clinical-trials/what-are-clinical-trials | What Are Cancer Clinical Trials? | Learn what they are and what you should know about them. |
| cts-which | /research/participate/clinical-trials-search/steps | Which trials are right for you? | Use the checklist in our guide to gather the information youll need. |
And sticky block is displayed with "Find Trials" and "Clear Form" buttons
When user scrolls to the "Lead organization" section
Then sticky block becomes fixed block
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/AdvancedSearchPage/AgeSection.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Feature: Clinical Trials Advanced Search Page age section
Given the user navigates to "/advanced"
Then the page title is "Find NCI-Supported Clinical Trials"
And "Age" form section is displayed
And help icon is displayed in "Age" section with href "/about-cancer/treatment/clinical-trials/search/help#age"
And help icon is displayed in "Age" section with href "/research/participate/clinical-trials-search/help#age"
And helper text "Enter the age of the participant." is displayed

Scenario: User is able to search for a specific age
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/AdvancedSearchPage/CancerTypeCondition.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Feature: As a user, I want to be able to specify my search by cancer type or con
Scenario: User is able to search for cancer type via autosuggest
Given the user navigates to "/advanced"
And "Cancer Type/Condition" form section is displayed
And help icon is displayed with href "/about-cancer/treatment/clinical-trials/search/help#cancertype"
And help icon is displayed with href "/research/participate/clinical-trials-search/help#cancertype"
And info text "Select a cancer type/condition, then include subtypes, stages or other attributes, if applicable." is displayed in the "cancer-type-condition" section body
When user clicks on "All" button
And autocomplete dropdown is displayed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Advanced Clinical Trials Search Drug Treatment Section
Given the user navigates to "/advanced"
Then the page title is "Find NCI-Supported Clinical Trials"
And "Drug/Treatment" form section is displayed
And help icon is displayed in "Drug/Treatment" section with href "/about-cancer/treatment/clinical-trials/search/help#drugtreatment"
And help icon is displayed in "Drug/Treatment" section with href "/research/participate/clinical-trials-search/help#drugtreatment"
And info text "Search for a specific drug or intervention." is displayed in the section body
And "Drug" input field has a placeholder "Start typing to select drugs and/or drug families"
And helper text "You can use the drug's generic or brand name. More than one selection may be made." is displayed
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/AdvancedSearchPage/KeywordsSection.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Clinical Trials Advanced Search Page
Given the user navigates to "/advanced"
Then the page title is "Find NCI-Supported Clinical Trials"
And "Keywords/Phrases" form section is displayed
And help icon is displayed in "Keywords" section with href "/about-cancer/treatment/clinical-trials/search/help#keywords"
And help icon is displayed in "Keywords" section with href "/research/participate/clinical-trials-search/help#keywords"
And "KeywordsPhrases" input field has a placeholder "Examples: PSA, 'Paget disease'"
And helper text "Search by word or phrase (use quotation marks with phrases)." is displayed
Examples:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: Advanced Clinical Trials Search Lead Organization Section
Given the user navigates to "/advanced"
Then the page title is "Find NCI-Supported Clinical Trials"
And "Lead Organization" form section is displayed
And help icon is displayed in "Lead Organization" section with href "/about-cancer/treatment/clinical-trials/search/help#leadorganization"
And help icon is displayed in "Lead Organization" section with href "/research/participate/clinical-trials-search/help#leadorganization"
And "Lead organization" input field has a placeholder "Organization name"
And helper text "Search by lead organization." is displayed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Feature: As a user, I want to be able to narrow down my search by location
Given the user navigates to "/advanced"
Then the page title is "Find NCI-Supported Clinical Trials"
And "Location" form section is displayed
And help icon is displayed in "Location" section with href "/about-cancer/treatment/clinical-trials/search/help#location"
And help icon is displayed in "Location" section with href "/research/participate/clinical-trials-search/help#location"
And info text "Search for trials near a specific zip code; or in a country, state and city; or at a particular institution. The default selection will search for trials in all available locations. You may choose to limit results to Veterans Affairs facilities." is displayed in the section body
And "Limit results to Veterans Affairs facilities" toggle is displayed with label "Limit results to Veterans Affairs facilities"
And "Limit results to Veterans Affairs facilities" toggle is switched to "No"
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/AdvancedSearchPage/TrialIdSection.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Advanced Clinical Trials Search Trial ID Section
Given the user navigates to "/advanced"
Then the page title is "Find NCI-Supported Clinical Trials"
And "Trial ID" form section is displayed
And help icon is displayed in "TrialID" section with href "/about-cancer/treatment/clinical-trials/search/help#trialid"
And help icon is displayed in "TrialID" section with href "/research/participate/clinical-trials-search/help#trialid"
And helper text "Separate multiple IDs with commas." is displayed

Scenario: User enters trial id and searches
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Advanced Clinical Trials Search Trial Investigators Section
Given the user navigates to "/advanced"
Then the page title is "Find NCI-Supported Clinical Trials"
And "Trial Investigators" form section is displayed
And help icon is displayed in "TrialInvestigators" section with href "/about-cancer/treatment/clinical-trials/search/help#trialinvestigators"
And help icon is displayed in "TrialInvestigators" section with href "/research/participate/clinical-trials-search/help#trialinvestigators"
And "TrialInvestigator" input field has a placeholder "Investigator name"
And helper text "Search by trial investigator." is displayed

Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/AdvancedSearchPage/TrialPhaseSection.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Advanced Clinical Trials Search Trial Phase Section
Given the user navigates to "/advanced"
Then the page title is "Find NCI-Supported Clinical Trials"
And "Trial Phase" form section is displayed
And help icon is displayed in "Trial Phase" section with href "/about-cancer/treatment/clinical-trials/search/help#trialphase"
And help icon is displayed in "Trial Phase" section with href "/research/participate/clinical-trials-search/help#trialphase"
And info text "Select the trial phases for your search. You may check more than one box or select \"All\"." is displayed in the section body
And the following checkboxes are displayed
| label | value |
Expand Down
2 changes: 1 addition & 1 deletion cypress/e2e/AdvancedSearchPage/TrialTypeSection.feature
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Feature: Advanced Clinical Trials Search Trial Type Section
Given the user navigates to "/advanced"
Then the page title is "Find NCI-Supported Clinical Trials"
And "Trial Type" form section is displayed
And help icon is displayed in "Trial Type" section with href "/about-cancer/treatment/clinical-trials/search/help#trialtype"
And help icon is displayed in "Trial Type" section with href "/research/participate/clinical-trials-search/help#trialtype"
And info text "Select the type of trial for your search. You may check more than one box or select \"All\". You may choose to limit results to trials accepting healthy volunteers." is displayed in the "Trial Type" section body
And "Healthy Volunteers" toggle is displayed with label "Limit results to Veterans Affairs facilities"
And "Healthy Volunteers" toggle is switched to "No"
Expand Down
16 changes: 8 additions & 8 deletions cypress/e2e/BasicSearchPage/BasicSearchPage.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ Feature: As a user, I want to be able to use Basic Search form fields to find cl
Given the user navigates to "/"
Then the page title is "Find NCI-Supported Clinical Trials"
And the text "NCI-supported clinical trials are those sponsored or otherwise financially supported by NCI. See our guide, Steps to Find a Clinical Trial, to learn about options for finding trials not included in NCI's collection." appears below the title
And "Steps to Find a Clinical Trial" link has a href "https://www.cancer.gov/about-cancer/treatment/clinical-trials/search/trial-guide"
And "Steps to Find a Clinical Trial" link has a href "https://www.cancer.gov/research/participate/clinical-trials-search/steps"
And Search tip icon is displayed and text "Search Tip: For more search options, use our advanced search." appears
And "advanced search" link has a href "/advanced"
And the following delighters are displayed
| delighter | href | title | text |
| cts-livehelp | /contact | Have a question?We're here to help | Chat with us: LiveHelpCall us: 1-800-4-CANCER(1-800-422-6237) |
| cts-what | /about-cancer/treatment/clinical-trials/what-are-trials | What Are Cancer Clinical Trials? | Learn what they are and what you should know about them. |
| cts-which | /about-cancer/treatment/clinical-trials/search/trial-guide | Which trials are right for you? | Use the checklist in our guide to gather the information youll need. |
| delighter | href | title | text |
| cts-livehelp | /contact | Have a question?We're here to help | Chat with us: LiveHelpCall us: 1-800-4-CANCER(1-800-422-6237) |
| cts-what | /research/participate/clinical-trials/what-are-clinical-trials | What Are Cancer Clinical Trials? | Learn what they are and what you should know about them. |
| cts-which | /research/participate/clinical-trials-search/steps | Which trials are right for you? | Use the checklist in our guide to gather the information youll need. |

Examples:
| breakpoint |
Expand All @@ -25,14 +25,14 @@ Feature: As a user, I want to be able to use Basic Search form fields to find cl
Given the user navigates to "/"
Then the page title is "Find NCI-Supported Clinical Trials"
And "Cancer Type/Keyword" form section is displayed
And help icon is displayed in "Cancer Type/Keyword" section with href "/about-cancer/treatment/clinical-trials/search/help#how-to-find-clinical-trials-using-the-basic-search-form"
And help icon is displayed in "Cancer Type/Keyword" section with href "/research/participate/clinical-trials-search/help#how-to-find-clinical-trials-using-the-basic-search-form"
And "Cancer Type/Keyword" input field has a placeholder "Start typing to select a cancer type or keyword"
And helper text "Leave blank to search all cancer types or keywords." is displayed
And "Age" form section is displayed
And help icon is displayed in "Age" section with href "/about-cancer/treatment/clinical-trials/search/help#age"
And help icon is displayed in "Age" section with href "/research/participate/clinical-trials-search/help#age"
And helper text "Your age helps determine which trials are right for you." is displayed
And "U.S. ZIP Code" form section is displayed
And help icon is displayed in "U.S. ZIP Code" section with href "/about-cancer/treatment/clinical-trials/search/help#how-to-find-clinical-trials-using-the-basic-search-form"
And help icon is displayed in "U.S. ZIP Code" section with href "/research/participate/clinical-trials-search/help#how-to-find-clinical-trials-using-the-basic-search-form"
And helper text "Show trials near this U.S. ZIP code." is displayed
And button "Find Trials" is displayed

Expand Down
6 changes: 3 additions & 3 deletions cypress/e2e/SearchResultsPage/GeneralPageComponents.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Feature: Clinical Trials Search Results Page Components
And result list is displayed
And there are 2 delighters present
And the following delighters are displayed
| delighter | href | title | text |
| cts-livehelp | /contact | Have a question?We're here to help | Chat with us: LiveHelpCall us: 1-800-4-CANCER(1-800-422-6237) |
| cts-which | /about-cancer/treatment/clinical-trials/search/trial-guide | Which trials are right for you? | Use the checklist in our guide to gather the information youll need. |
| delighter | href | title | text |
| cts-livehelp | /contact | Have a question?We're here to help | Chat with us: LiveHelpCall us: 1-800-4-CANCER(1-800-422-6237) |
| cts-which | /research/participate/clinical-trials-search/steps | Which trials are right for you? | Use the checklist in our guide to gather the information youll need. |


# # ###########Start Over###########
Expand Down
8 changes: 4 additions & 4 deletions cypress/e2e/SearchResultsPage/PrintFunctionality.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ Feature: As a user I want to be able to print trial search results
| trialId |
| NCI-2014-01507 |
And the request is sent with the following details
| link_template | new_search_link | search_criteria |
| /about-cancer/treatment/clinical-trials/search/v?a=39&loc=0&rl=1&id=<TRIAL_ID> | /about-cancer/treatment/clinical-trials/search | notNull |
| link_template | new_search_link | search_criteria |
| /research/participate/clinical-trials-search/v?a=39&loc=0&rl=1&id=<TRIAL_ID> | /research/participate/clinical-trials-search | notNull |
And the page title is "CTS.Print/Display"
Examples:
| breakpoint |
Expand Down Expand Up @@ -47,8 +47,8 @@ Feature: As a user I want to be able to print trial search results
| NCI-2014-01820 |
| NCI-2017-01425 |
And the request is sent with the following details
| link_template | new_search_link | search_criteria |
| /about-cancer/treatment/clinical-trials/search/v?loc=0&pn=2&rl=2&id=<TRIAL_ID> | /about-cancer/treatment/clinical-trials/search/advanced | null |
| link_template | new_search_link | search_criteria |
| /research/participate/clinical-trials-search/v?loc=0&pn=2&rl=2&id=<TRIAL_ID> | /research/participate/clinical-trials-search/advanced | null |
And the page title is "CTS.Print/Display"

Scenario: as a user, I want to see all of the selected trials retained after I navigate back to a previous page
Expand Down
Loading

0 comments on commit 86b56ae

Please sign in to comment.