Skip to content

Commit

Permalink
[next_stage] Update test plan (#9239)
Browse files Browse the repository at this point in the history
This updates the test plan of next_stage module because there is no longer a "scan done" option (#8955). This step is removed from the testing instructions.
  • Loading branch information
CamilleBeau authored May 6, 2024
1 parent 8b3eed6 commit ae68d8c
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions modules/next_stage/test/TestPlan.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,29 @@
[Automation Testing]
4. Ensure that you get an error if dates do not match.
[Automation Testing]
5. Ensure that you get an error if `scan_done` missing
[Manual Testing]
6. Create a timepoint where the age (date entered minus DoB) falls within the
5. Create a timepoint where the age (date entered minus DoB) falls within the
AgeMin and AgeMax for a `test_battery`. The `test_battery` needs to have a
matching `cohortID` and a NULL `Visit_label`. There should be no
other `test_battery` entries with the `Visit_label` set to the visit label
of the timepoint. Ensure that the instruments of the `test_battery` with the
NULL `Visit_label` are inserted.
[Manual Testing]
7. Create a timepoint where there is a `test_battery` entry for the
6. Create a timepoint where there is a `test_battery` entry for the
`Visit_label` and `cohortID`, and start the stage. Ensure that those
were inserted into the battery, and NOT the ones based on age (when
`Visit_label` is NULL).
[Manual Testing]
8. Ensure that any instruments in `test_battery` with firstVisit='Y' where
7. Ensure that any instruments in `test_battery` with firstVisit='Y' where
inserted if and only if it's the first timepoint started. Ensure that
firstVisit='N' instruments are inserted if and only if it is NOT the
first timepoint started, and firstVisit=null whether or not it's the
first time point.
[Manual Testing]
9. Ensure that if a CenterID is set for a row in the test battery, the
8. Ensure that if a CenterID is set for a row in the test battery, the
instrument is inserted for candidates at that centerID (if `Age` is
correct and `Visit_label` is NULL or identical to the timepoint's one),
and not other centers.
[Manual Testing]
10. Ensure that if Active='N' for an instrument in the `test_battery` it is
9. Ensure that if Active='N' for an instrument in the `test_battery` it is
NOT inserted even if other criteria pass.
[Manual Testing]

0 comments on commit ae68d8c

Please # to comment.