[Koha-bugs] [Bug 36177] We need integration tests to cover csrf checks

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 8 22:38:58 CET 2024


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36177

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |david at davidnind.com

--- Comment #11 from David Nind <david at davidnind.com> ---
Testing notes (using KTD):

1. Ran cypress tests before applying the patches:
   perl /kohadevbox/misc4dev/run_tests.pl --run-cypress-tests-only

2. Ran the tests again after patches applied (I think I did a yarn there as
well to add the new module/package, but I did a reset_all and shut down KTD and
restarted as well - not sure of the correct way to do this).

Results after patches applied:

Spec                                              Tests  Passing  Failing 
Pending  Skipped  
 
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ ✔  InfiniteScrollSelect_spec.ts             00:14        4        4       
-        -        - │
 
├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  KohaTable_spec.ts                        00:03        1        1       
-        -        - │
 
├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  Auth/csrf.ts                             00:18        6        6       
-        -        - │
 
├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  ERM/Agreements_spec.ts                   00:31        5        5       
-        -        - │
 
├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  ERM/DataProviders_spec.ts                00:49       13       13       
-        -        - │
 
├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  ERM/Dialog_spec.ts                       00:11        4        4       
-        -        - │
 
├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  ERM/Licenses_spec.ts                     00:21        5        5       
-        -        - │
 
├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  ERM/Packages_spec.ts                     00:22        5        5       
-        -        - │
 
├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  ERM/Searchbar_spec.ts                    00:11        4        4       
-        -        - │
 
├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  ERM/Titles_spec.ts                       00:34        6        6       
-        -        - │
 
├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  ERM/UsageReports_spec.ts                 00:42       13       13       
-        -        - │
 
├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  ERM/UserRoles_spec.ts                    00:03        1        1       
-        -        - │
 
├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  Preservation/Settings.ts                 00:15        5        5       
-        -        - │
 
├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  Preservation/Trains.ts                   00:20        8        8       
-        -        - │
 
├────────────────────────────────────────────────────────────────────────────────────────────────┤
  │ ✔  Preservation/WaitingList.ts              00:08        3        3       
-        -        - │
 
└────────────────────────────────────────────────────────────────────────────────────────────────┘
    ✔  All specs passed!                        05:09       83       83       
-        -        -  

Done in 349.96s.
all good
Running [koha-shell kohadev -c "touch testing.success"]...

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list