From 4349ce8c02bf0a5d2231944ea7a9c9f76867ba27 Mon Sep 17 00:00:00 2001 From: adamdaudrich Date: Sun, 9 Mar 2025 13:01:33 -0400 Subject: [PATCH 1/6] testplan --- modules/timepoint_list/test/TestPlan.md | 113 +++++++++++++++++++----- 1 file changed, 92 insertions(+), 21 deletions(-) diff --git a/modules/timepoint_list/test/TestPlan.md b/modules/timepoint_list/test/TestPlan.md index f9e7990b69c..bd9ec76eb34 100644 --- a/modules/timepoint_list/test/TestPlan.md +++ b/modules/timepoint_list/test/TestPlan.md @@ -1,21 +1,92 @@ -# Timepoint List - Test Plan: - -1. **Module access permissions** - - For a candidate of the same site as your user, accessing the timepoint_list module via the url (https://\\.loris.ca/\) should not require any permission (With data entry permisson, click on the "Open Profile" button can also lead to the page). - - For a candidate of a different site than your user, ensure that either - - `access_all_profiles` permission is required - - or that the candidate's registration site is the same as the user's site - - Ensure that you can always only see visits from projects that you are affiliated with. -2. **Action buttons** - - For a candidate of a different site than your user, attempt to access the timepoint list via the url. The page should load with a message of 'Permission Denied'. - - For a candidate of the same site as your user, there should be up to 3 additional buttons: - 1. "Create time point" (links to create_timepoint module for that candidate) if your user has permission `data_entry` - 2. "Candidate Info" (links to candidate_parameters module for that candidate) if your user has permission `data_entry` - 3. "View Imaging Datasets" (links to the imaging_browser module menu page filtered for that candidate) if your user has permission `imaging_browser_view_site`, `imaging_browser_view_allsites`, `imaging_browser_phantom_allsites`, or `imaging_browser_phantom_ownsite` -3. **Button links** - - Ensure the "View Imaging datasets" button points to correct place. (imaging_browser module for that candidate) - - Ensure the "Create time point" button points to correct place. (create_timepoint module for that candidate) - - Ensure the "Candidate Info" button points to correct place. (candidate_parameters module for that candidate) -5. **Datatable content** - - Visit Label: Ensure correct visits are shown and links point to correct place. (instrument_list for that specific timepoint) - - Imaging Scan Done: If 'yes', ensure links point to correct place (imaging_browser session page for that visit) + +This test determines if permissions are working in the time_point module.
+ +Setup:
+- +Sign into your loris instance with an **admin** account.
+ +- select Admin Accounts and click the Add User button.
+- enter all required information.
+- select *ONE* site for example, "Rome".
+- select *ONE* project, for example Pumpernickel.
+- tick box:Roles/ +- Access Profile: View/Create Candidates and Timepoints - Own Sites.
+ +>This permission ensures that ONLY candidates who share the same site as your user are listed (in this case "Rome").
+ +Test 1 : Acces Profile +- + +(a) +- +open a separate **incognito** or **private** browser window. +Sign into your loris instance. Enter the credentials of the user that you just created.
+click Candidate/Access Profile.
+>You should see only candidates of that site "Rome" (in our example) + +(b) +- +copy the DDCID of this user, paste as follows: +https://\\.loris.ca\
+>if this loads a list of timepoints +OR returns:"there are no timepoints associated with this candidate" then this test is successful + +(c) +- +Does Open Profile button work with this permission enabled?
+Click the 'Open Profile' button.
+Enter the DDCID number and PSCID of the same candidate. +This will replicate the same behaviour as clicking on the candidate's PSCID, showing their list of timepoints.
+>If it does, then the permission fully works. + +Test 2 : Projects +- +Are the projects shown the same as those you selected in your user settings (in our example: "Pumpernickel")?
Refresh your incognito (or private) browser. +You will see a list of time points from all sites that share your selected project (in this case "Pumpernickel").
+>If other projects are shown, then this test has failed.
+ + +Test 3 : All sites +- + +tick +Permissions/Access Profile: View/Create Candidates and Timepoints - All Sites + +Select a candidate from a different site and open up a timepoint. + +>If you are allowed to view a list of timepoints for this candidates from different sites, then the permission has worked. + +>if it reads +"You do not have access to any timepoints registered for this candidate," then this test has failed. + +Test 4 : Access candidate of a different site +- +enter a candidate ID into url that is from a different site. + +>If "Permission Denied" message is shown, then this test has passed + +Test 5 : For a Candidate of **same site**, there should be 3 Buttons, as follows:
+- +(a) Create time point
+- + +Click this. If it takes you to 'Create Time Point', this test has passed + +(b) Candidate info
+- +>Click this. If you get code 403, the +'Candidate Parameters: View Candidate Information' permission is needed. +Else, if you are taken to candidate parameters, this test has passed. + +(c) View Imaging datasets
+- +>Click this. If you are taken to imaging browser, this test has passed.
+ +If you don't see this button, tick the permission: +'Imaging Browser: View Imaging Scans - Own Sites' +refresh and try again. + + +End +- + From ace609e9ff9c90c7ed80dc42f35e8c8824fa1c1f Mon Sep 17 00:00:00 2001 From: adamdaudrich Date: Sun, 9 Mar 2025 14:54:16 -0400 Subject: [PATCH 2/6] TestplanGhub --- modules/timepoint_list/test/TestPlan.md | 94 +++++++++++++++---------- 1 file changed, 55 insertions(+), 39 deletions(-) diff --git a/modules/timepoint_list/test/TestPlan.md b/modules/timepoint_list/test/TestPlan.md index bd9ec76eb34..9f097613d55 100644 --- a/modules/timepoint_list/test/TestPlan.md +++ b/modules/timepoint_list/test/TestPlan.md @@ -1,56 +1,70 @@ - This test determines if permissions are working in the time_point module.
+
+ +## Table of Contents
+1. [Setup](#setup) +2. [Test Site Constraint](#test-site-constraint) + - [list only candidates of same site](#list-only-candidates-of-same-site) + - [load time points by entering DDCID in url](#load-time-points-by-entering-DDCID-in-url) + - [deny access to candidate of different site](#deny-access-to-candidate-of-different-site) + - [open profile button](#open-profile-button) +3. [Test Project constraint](#test-project-constraint) +4. [Test All sites permission](#test-all-sites-permission) +5. [Test Buttons](#test-buttons) + - [create time point](#create-time-point) + - [candidate info](#candidate-info) + - [view imaging datasets](#view-imaging-data) + +
+ +## Setup -Setup:
-- Sign into your loris instance with an **admin** account.
- select Admin Accounts and click the Add User button.
- enter all required information.
- select *ONE* site for example, "Rome".
- select *ONE* project, for example Pumpernickel.
-- tick box:Roles/ -- Access Profile: View/Create Candidates and Timepoints - Own Sites.
- +- tick box:Roles/Access Profile: View/Create Candidates and Timepoints - Own Sites.
>This permission ensures that ONLY candidates who share the same site as your user are listed (in this case "Rome").
-Test 1 : Acces Profile -- - -(a) -- +
+ +## Test Site constraint
+ +#### a) List only candidates of same site
open a separate **incognito** or **private** browser window. -Sign into your loris instance. Enter the credentials of the user that you just created.
-click Candidate/Access Profile.
+Sign into your loris instance. Enter the credentials of the user that you just created. Click Candidate/Access Profile.
>You should see only candidates of that site "Rome" (in our example) -(b) -- +#### b) Load time points by entering DDCID in url
copy the DDCID of this user, paste as follows: https://\\.loris.ca\
>if this loads a list of timepoints OR returns:"there are no timepoints associated with this candidate" then this test is successful -(c) -- +#### c) Deny access to candidate of a different site
+enter a candidate ID into url that is from a different site.
+>If "Permission Denied" message is shown, then this test has passed + +#### d) Open Profile Button
Does Open Profile button work with this permission enabled?
Click the 'Open Profile' button.
Enter the DDCID number and PSCID of the same candidate. This will replicate the same behaviour as clicking on the candidate's PSCID, showing their list of timepoints.
>If it does, then the permission fully works. -Test 2 : Projects -- +
+ +## Test Project constraint
Are the projects shown the same as those you selected in your user settings (in our example: "Pumpernickel")?
Refresh your incognito (or private) browser. You will see a list of time points from all sites that share your selected project (in this case "Pumpernickel").
>If other projects are shown, then this test has failed.
+
-Test 3 : All sites -- - -tick -Permissions/Access Profile: View/Create Candidates and Timepoints - All Sites +## Test All sites permission
+tick : Permissions/Access Profile: View/Create Candidates and Timepoints - All Sites Select a candidate from a different site and open up a timepoint. @@ -59,34 +73,36 @@ Select a candidate from a different site and open up a timepoint. >if it reads "You do not have access to any timepoints registered for this candidate," then this test has failed. -Test 4 : Access candidate of a different site -- -enter a candidate ID into url that is from a different site. +
->If "Permission Denied" message is shown, then this test has passed +## Test Buttons
+For a Candidate of **same site**, there should be 3 Buttons, as follows:
-Test 5 : For a Candidate of **same site**, there should be 3 Buttons, as follows:
-- -(a) Create time point
-- +#### a) Create time point
-Click this. If it takes you to 'Create Time Point', this test has passed +>Click this. If it takes you to 'Create Time Point', this test has passed -(b) Candidate info
-- +#### b) Candidate info
>Click this. If you get code 403, the 'Candidate Parameters: View Candidate Information' permission is needed. Else, if you are taken to candidate parameters, this test has passed. -(c) View Imaging datasets
-- +#### c) View Imaging datasets
>Click this. If you are taken to imaging browser, this test has passed.
If you don't see this button, tick the permission: 'Imaging Browser: View Imaging Scans - Own Sites' refresh and try again. +
+ +## End + + + + + + + -End -- From 2c9f258de4f980b96a3a720fb0b435f1e04f80c3 Mon Sep 17 00:00:00 2001 From: adamdaudrich Date: Mon, 10 Mar 2025 14:00:47 -0400 Subject: [PATCH 3/6] test/TestPlan.md --- modules/dataquery/test/TestPlan.md | 43 +++++++++++++++++++++++++----- 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/modules/dataquery/test/TestPlan.md b/modules/dataquery/test/TestPlan.md index 33b1134c0fc..c46e459497f 100644 --- a/modules/dataquery/test/TestPlan.md +++ b/modules/dataquery/test/TestPlan.md @@ -1,12 +1,43 @@ # Data Query - Test Plan -## Welcome page +### Table of Contents
-1. Ensure the module loads only for a user that has the `dataquery_view` permission. They must also have access to the dictionary module. -2. Assert that: `Instructions` panel, `Recent Queries` panel, and `Next Steps` panel (bottom-right corner) collapse as expected. -3. Assert that: `Continue to Define Fields` button in the main panel, and `Choose Fields` button in the `Next Steps` panel are redirecting to the same page. -4. `Recent Queries` panel - 1. If not queries are available, make some so they will be added to this section. +1. [Setup](#setup) +2. [Test Data Query Permission](#test-data-query-view-permission) +3. [Panel Tests](#panel-tests) + -[Test that Panels Collapse](#test-that-panels-collapse) + -[Test Panel Redirect](#test-panel-redirect) +4. [Recent Queries Tests] + +## Setup + +Sign into your loris instance with an **admin** account.
+ +- select Admin Accounts and click the Add User button.
+- enter all required information.
+- select *ONE* site for example, "Rome".
+- select *ONE* project, for example Pumpernickel.
+- tick box:Roles/Access Profile: View/Create Candidates and Timepoints - Own Sites.
+>This permission ensures that ONLY candidates who share the same site as your user are listed (in this case "Rome").
+ +
+ +## Test Data Query View Permission +Ensure the module loads only for a user that has the `dataquery_view` permission. They must also have access to the dictionary module.
+>if the test yield this, the test is successful
+ +
+ +## Panel Tests
+ +### Test Panel Collapse +-`Instructions` panel: click to open and click again to collapse ETCETC, `Recent Queries` panel, and `Next Steps` panel (bottom-right corner) collapse as expected.
+ +### Test Panel Redirect +Asser`Continue to Define Fields` button in the main panel, and `Choose Fields` button in the `Next Steps` panel are redirecting to the same page. + +### Test `Recent Queries` panel + - If not queries are available, make some so they will be added to this section. 2. Assert that: queries you made have their parameters correctly displayed (i.e. fields and filters). 3. Assert that: `text filter` immediately filter the queries. 4. Assert that: clicking `Collapse queries` effectively collapse all queries. From d8737abbeee22d33c230c938c12d592a1feae221 Mon Sep 17 00:00:00 2001 From: adamdaudrich Date: Mon, 10 Mar 2025 21:38:59 -0400 Subject: [PATCH 4/6] update2 --- modules/timepoint_list/test/TestPlan.md | 111 ++++++++++++------------ 1 file changed, 54 insertions(+), 57 deletions(-) diff --git a/modules/timepoint_list/test/TestPlan.md b/modules/timepoint_list/test/TestPlan.md index 9f097613d55..a73b5f6f21d 100644 --- a/modules/timepoint_list/test/TestPlan.md +++ b/modules/timepoint_list/test/TestPlan.md @@ -1,98 +1,95 @@ -This test determines if permissions are working in the time_point module.
-
+# Timepoint List - Test Plan : -## Table of Contents
+### Table of Contents 1. [Setup](#setup) 2. [Test Site Constraint](#test-site-constraint) - - [list only candidates of same site](#list-only-candidates-of-same-site) - - [load time points by entering DDCID in url](#load-time-points-by-entering-DDCID-in-url) - - [deny access to candidate of different site](#deny-access-to-candidate-of-different-site) - - [open profile button](#open-profile-button) -3. [Test Project constraint](#test-project-constraint) -4. [Test All sites permission](#test-all-sites-permission) +3. [Test Project Constraint](#test-project-constraint) +4. [Test All Sites Permission](#test-all-sites-permission) 5. [Test Buttons](#test-buttons) - - [create time point](#create-time-point) - - [candidate info](#candidate-info) - - [view imaging datasets](#view-imaging-data)
## Setup -Sign into your loris instance with an **admin** account.
+Sign into your loris instance with an **admin** account. -- select Admin Accounts and click the Add User button.
-- enter all required information.
-- select *ONE* site for example, "Rome".
-- select *ONE* project, for example Pumpernickel.
-- tick box:Roles/Access Profile: View/Create Candidates and Timepoints - Own Sites.
->This permission ensures that ONLY candidates who share the same site as your user are listed (in this case "Rome").
+- Select Admin > User Accounts and click the Add User button. +- Enter all required information. +- Select *ONE* site for example, "Rome". +- Select *ONE* project, for example Pumpernickel. +- Tick box:Roles/Access Profile: View/Create Candidates and Timepoints - Own Sites. +- Open a separate **incognito** or **private** browser window. +- Sign into your loris instance. Enter the credentials of the user that you just created.
-## Test Site constraint
+## Test Site constraint + +#### List only candidates of same site
+ +- Click Candidate/Access Profile. + +**Assert that you see only candidates of that site "Rome" (in our example)** -#### a) List only candidates of same site
-open a separate **incognito** or **private** browser window. -Sign into your loris instance. Enter the credentials of the user that you just created. Click Candidate/Access Profile.
->You should see only candidates of that site "Rome" (in our example) +#### Load time points by entering CandID in url +- Copy the CandID of this user, paste as follows: +https://\\.loris.ca\/\
-#### b) Load time points by entering DDCID in url
-copy the DDCID of this user, paste as follows: -https://\\.loris.ca\
->if this loads a list of timepoints -OR returns:"there are no timepoints associated with this candidate" then this test is successful +**Assert that this loads a list of timepoints **or** returns :** +>There are no timepoints associated with this candidate -#### c) Deny access to candidate of a different site
-enter a candidate ID into url that is from a different site.
->If "Permission Denied" message is shown, then this test has passed +#### Deny access to candidate of a different site
+- Enter a candidate ID into url that is from a different site.
+**Assert that the following message is shown:** +>Permission Denied
-#### d) Open Profile Button
-Does Open Profile button work with this permission enabled?
-Click the 'Open Profile' button.
-Enter the DDCID number and PSCID of the same candidate. + +#### Open Profile Button +- Click the 'Open Profile' button. +- Enter the CandID number and PSCID of the same candidate. This will replicate the same behaviour as clicking on the candidate's PSCID, showing their list of timepoints.
->If it does, then the permission fully works. +**Assert that it does**
-## Test Project constraint
-Are the projects shown the same as those you selected in your user settings (in our example: "Pumpernickel")?
Refresh your incognito (or private) browser. +## Test Project Constraint
+- Are the projects shown the same as those you selected in your user settings (in our example: "Pumpernickel")? +- Refresh your incognito (or private) browser. You will see a list of time points from all sites that share your selected project (in this case "Pumpernickel").
->If other projects are shown, then this test has failed.
+Assert that other projects are **not** shown
-## Test All sites permission
-tick : Permissions/Access Profile: View/Create Candidates and Timepoints - All Sites - -Select a candidate from a different site and open up a timepoint. +## Test All Sites Permission +- Tick : Permissions/Access Profile: View/Create Candidates and Timepoints - All Sites ->If you are allowed to view a list of timepoints for this candidates from different sites, then the permission has worked. +- Select a candidate from a different site and open up a timepoint. ->if it reads -"You do not have access to any timepoints registered for this candidate," then this test has failed. +**Assert that, for this candidate, you can see timepoints from different sites.**
## Test Buttons
-For a Candidate of **same site**, there should be 3 Buttons, as follows:
+- For a Candidate of **same site** (Rome, in our example), there should be 3 Buttons, as follows:
-#### a) Create time point
+#### Create Time Point
->Click this. If it takes you to 'Create Time Point', this test has passed +- Click this. +**Assert that it takes you to 'Create Time Point'.** -#### b) Candidate info
->Click this. If you get code 403, the +#### Candidate Info
+- Click this. +**Assert that you are taken to candidate parameters.** +- If you get code 403, the
'Candidate Parameters: View Candidate Information' permission is needed. -Else, if you are taken to candidate parameters, this test has passed. -#### c) View Imaging datasets
->Click this. If you are taken to imaging browser, this test has passed.
-If you don't see this button, tick the permission: +#### View Imaging Datasets
+**Assert that, if you click this, you are taken to imaging browser** + +- If you don't see this button, got to User accounts from the admin page, and tick: 'Imaging Browser: View Imaging Scans - Own Sites' -refresh and try again. +- Refresh and try again.
From fb2bdfa94fec396dbafe36c83d095f722006e019 Mon Sep 17 00:00:00 2001 From: adamdaudrich Date: Mon, 10 Mar 2025 22:05:05 -0400 Subject: [PATCH 5/6] linter update --- modules/timepoint_list/test/TestPlan.md | 88 +++++++++++-------------- 1 file changed, 39 insertions(+), 49 deletions(-) diff --git a/modules/timepoint_list/test/TestPlan.md b/modules/timepoint_list/test/TestPlan.md index a73b5f6f21d..df2f13a0be7 100644 --- a/modules/timepoint_list/test/TestPlan.md +++ b/modules/timepoint_list/test/TestPlan.md @@ -1,105 +1,95 @@ -# Timepoint List - Test Plan : +# Timepoint List - Test Plan + +## Table of Contents -### Table of Contents 1. [Setup](#setup) 2. [Test Site Constraint](#test-site-constraint) 3. [Test Project Constraint](#test-project-constraint) 4. [Test All Sites Permission](#test-all-sites-permission) 5. [Test Buttons](#test-buttons) -
- ## Setup Sign into your loris instance with an **admin** account. -- Select Admin > User Accounts and click the Add User button. +- Select Admin > User Accounts and click the Add User button. - Enter all required information. - Select *ONE* site for example, "Rome". - Select *ONE* project, for example Pumpernickel. - Tick box:Roles/Access Profile: View/Create Candidates and Timepoints - Own Sites. - Open a separate **incognito** or **private** browser window. -- Sign into your loris instance. Enter the credentials of the user that you just created. - -
+- Sign into your loris instance. Enter the credentials of the user that you just created. -## Test Site constraint +## Test Site Constraint -#### List only candidates of same site
+### List only candidates of same site - Click Candidate/Access Profile. -**Assert that you see only candidates of that site "Rome" (in our example)** +Assert that you see only candidates of that site "Rome" (in our example)** + +### Load time points by entering CandID in url -#### Load time points by entering CandID in url - Copy the CandID of this user, paste as follows: -https://\\.loris.ca\/\
+https://\\.loris.ca\/\There are no timepoints associated with this candidate + +### Deny access to candidate of a different site -**Assert that this loads a list of timepoints **or** returns :** ->There are no timepoints associated with this candidate +- Enter a candidate ID into url that is from a different site. -#### Deny access to candidate of a different site
-- Enter a candidate ID into url that is from a different site.
-**Assert that the following message is shown:** ->Permission Denied
+Assert that the following message is shown:** +>Permission Denied + +## Open Profile Button -#### Open Profile Button - Click the 'Open Profile' button. - Enter the CandID number and PSCID of the same candidate. -This will replicate the same behaviour as clicking on the candidate's PSCID, showing their list of timepoints.
-**Assert that it does** +This will replicate the same behaviour as clicking on the candidate's PSCID, showing their list of timepoints. + +Assert that it does -
+## Test Project Constraint -## Test Project Constraint
- Are the projects shown the same as those you selected in your user settings (in our example: "Pumpernickel")? - Refresh your incognito (or private) browser. -You will see a list of time points from all sites that share your selected project (in this case "Pumpernickel").
-Assert that other projects are **not** shown +You will see a list of time points from all sites that share your selected project (in this case "Pumpernickel") -
+Assert that other projects are **not** shown ## Test All Sites Permission + - Tick : Permissions/Access Profile: View/Create Candidates and Timepoints - All Sites - Select a candidate from a different site and open up a timepoint. -**Assert that, for this candidate, you can see timepoints from different sites.** +Assert that, for this candidate, you can see timepoints from different sites. -
+## Test Buttons -## Test Buttons
- For a Candidate of **same site** (Rome, in our example), there should be 3 Buttons, as follows:
-#### Create Time Point
+### Create Time Point -- Click this. +- Click this. **Assert that it takes you to 'Create Time Point'.** - -#### Candidate Info
-- Click this. + +### Candidate Info + +- Click this. **Assert that you are taken to candidate parameters.** -- If you get code 403, the
+- If you get code 403, the 'Candidate Parameters: View Candidate Information' permission is needed. +### View Imaging Datasets -#### View Imaging Datasets
-**Assert that, if you click this, you are taken to imaging browser** +Assert that, if you click this, you are taken to imaging browser - If you don't see this button, got to User accounts from the admin page, and tick: 'Imaging Browser: View Imaging Scans - Own Sites' - Refresh and try again. -
- ## End - - - - - - - - - From 87c873d4faec04acf9d664f0ee0a65f44d5627c6 Mon Sep 17 00:00:00 2001 From: adamdaudrich Date: Thu, 13 Mar 2025 14:24:33 -0400 Subject: [PATCH 6/6] added candidate info button change --- modules/timepoint_list/test/TestPlan.md | 29 ++++++++++++------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/modules/timepoint_list/test/TestPlan.md b/modules/timepoint_list/test/TestPlan.md index df2f13a0be7..cdb6f32f12b 100644 --- a/modules/timepoint_list/test/TestPlan.md +++ b/modules/timepoint_list/test/TestPlan.md @@ -16,7 +16,7 @@ Sign into your loris instance with an **admin** account. - Enter all required information. - Select *ONE* site for example, "Rome". - Select *ONE* project, for example Pumpernickel. -- Tick box:Roles/Access Profile: View/Create Candidates and Timepoints - Own Sites. +- [x] View/Create Candidates and Timepoints - Own Sites. - Open a separate **incognito** or **private** browser window. - Sign into your loris instance. Enter the credentials of the user that you just created. @@ -46,6 +46,8 @@ Assert that the following message is shown:** ## Open Profile Button +- [x] View/Create Candidates and Timepoints - Own Sites. + - Click the 'Open Profile' button. - Enter the CandID number and PSCID of the same candidate. This will replicate the same behaviour as clicking on the candidate's PSCID, showing their list of timepoints. @@ -62,34 +64,31 @@ Assert that other projects are **not** shown ## Test All Sites Permission -- Tick : Permissions/Access Profile: View/Create Candidates and Timepoints - All Sites - -- Select a candidate from a different site and open up a timepoint. +- [x] View/Create Candidates and Timepoints - All Sites -Assert that, for this candidate, you can see timepoints from different sites. +- Select a candidate from a different site and open up a timepoint. Assert that, for this candidate, you can see timepoints from different sites. ## Test Buttons -- For a Candidate of **same site** (Rome, in our example), there should be 3 Buttons, as follows:
+- For a Candidate of **same site** (Rome, in our example), there should be 3 Buttons, as follows: ### Create Time Point -- Click this. -**Assert that it takes you to 'Create Time Point'.** +- Click this and assert that it takes you to 'Create Time Point'.** ### Candidate Info -- Click this. -**Assert that you are taken to candidate parameters.** -- If you get code 403, the -'Candidate Parameters: View Candidate Information' permission is needed. +- With the following permissions unchecked : +- [ ] Candidate Parameters: View Candidate Information +- [ ] Candidate Parameters: Edit Candidate Information +Assert that you do not see the `Candidate Info` button. Assert that the button appears when one or both are checked. ### View Imaging Datasets -Assert that, if you click this, you are taken to imaging browser +Assert that, if you click this button, you are taken to imaging browser -- If you don't see this button, got to User accounts from the admin page, and tick: -'Imaging Browser: View Imaging Scans - Own Sites' +- If you don't see this button, set the following permission : +- [x] Imaging Browser: View Imaging Scans - Own Sites - Refresh and try again. ## End