Skip to content

[new_profile] TestPlan.md Step 11 to fix or remove #10901

Description

@HachemJ

Describe the bug
A clear and concise description of what the bug is

Following the Step 11 (instructions in TestPlan.md of the new_profile module), I noticed that after the page reloaded, the user's (unique) site was not selected.

Potential fixes:

  • Fixing it to behave as described in Step 11
  • Removing Step 11 from the TestPlan.md
# New Profile Test Plan:

1. Access New Profile page and ensure that it renders.
   [Automation Testing]
2. Access with useEDC on/off and ensure that the field appears/disappears.
   [Manual Testing]
3. Ensure that you get an error if dates don't match (both DoB and EDC).
   [Automation Testing]
4. Ensure that you get an error if any field is missing and you have config setting
useEDC turned off. If you have useEDC turned on, ensure all fields are required,
except the DoB, which is optional in that case.
   [Manual Testing]
5. Ensure that when the logged-in user has only 1 site affiliation, the site
dropdown shows only one site and it is already selected.
   [Manual Testing]
6. Ensure that when the logged-in user has more than 1 site affiliation, a list of
sites is displayed and that list only contains sites the logged-in user
is affiliated to.
   [Manual Testing]
7. Ensure that all valid fields added creates a new candidate with
autogenerated PSCID (if PSCID generation is "sequential").
   [Automation Testing]
8. Change PSCID generation configuration to "user". Ensure that you
get an error if an invalid PSCID entered (and not if a valid PSCID is entered).
   [Automation Testing]
9. Go to the Configuration module and change the "Minimum candidate age" value,
ensure that "Date of Birth" and "Date of Birth Confirm" fields
properly reflects the changes. Note that the minimum and maximum possible birth years are calculated based on 'StartYear' and 'EndYear' rather than the current date, so it is possible to create a candidate with an age which is *currently* outside of the specified range. For context, check the setup() function in the new profile php class. If no value is entered, this two fields should
have the current day as the maximum possible value to choose.
   [Manual Testing]
10. Change date format from 'YMd' to 'YM' in the Configuration module
and repeat steps 4 to 6 while asserting that database values being
saved are correct.
11. As a user with only one site affiliation, fill the form with valid values and create a new user. When the popup indicating that the creation succeeded is displayed, click on 'Recruit another candidate'. Ensure that when the page reloads, the user's (unique) site is selected.
   [Manual Testing]

To Reproduce
Steps to reproduce the behavior (attach screenshots if applicable):

  1. The steps are shown in the video. (My user had access to only one affiliated site and one affiliated project)
Step11TestPlanNewProfile.mov

What did you expect to happen?
A clear and concise description of what you expected to happen.

The user's (unique) site to be selected after the page reloaded (end of Step 11)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions