Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion modules/dataquery/test/TestPlan.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
14. Click the pinned query.
15. Assert that: the confirmation message `Query loaded` is displayed and query can immediately be executed.
16. Try pinning a query with `Pin Study Query`, `Pin Dashboard Summary` and `Pin to Login Page` options.
17. Assert that: `Study Queries` in the dataquery module **AND** `Study Queries` in LORIS welcome page **AND** `Data in LORIS` on the LORIS Login Page are displayed.
17. For testing the `Pin to Login Page` option, check the Login module test plan: `modules/login/test/Login_Statistics_Test_Plan.md`.
18. Assert that: `Study Queries` in the dataquery module **AND** `Study Queries` in LORIS welcome page **AND** `Data in LORIS` on the LORIS Login Page are displayed.
14. Assert that: the query is now pinned at the top of the page, in `Study Queries` panel.
15. Go back to `LORIS main page`.
16. Assert that: `starred queries` are available in the right side `Starred Queries` panel.
Expand Down
11 changes: 11 additions & 0 deletions modules/login/test/Login_Statistics_Test_Plan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Login Statistics Test Plan

1. Create a query in the dataquery module, including the Project column.
2. Pin the query to the login page by pressing the Pin icon, then entering a name,
and checking "Pin to Login Page". If a query returns more than one row, the name will be appended with an 's'. Note that the query will not be pinned if it returns 0 rows, and will not be pinned if it does not include the Project column.
3. Run `tools/update_login_summary_statistics.php` and confirm the output matches the count of the rows
from the dqt.
4. Log out of LORIS and confirm you can see the Login Statistics widget along with the pinned DQT query.
5. If the directory `project/tools/Login_Summary_Statistics` is non-existant then the script should have defaulted to using the sql files from the directory `SQL/Login_Summary_Statistics` instead. Confirm that if the directory `project/tools/Login_Summary_Statistics` was non-existant, then the sql queries from the directory `SQL/Login_Summary_Statistics` were added to the widget. If files exist in the directory `project/tools/Login_Summary_Statistics`, confirm that those queries were added instead.
6. Set a Project in SQL to have `showSummaryOnLogin = False`. Then run the script again and confirm
that the project is no longer displayed in the Login Statistics widget, and the numbers are not included in the All project.
Loading