[Koha-bugs] [Bug 35229] Add further cypress tests for Usage reporting

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Nov 15 18:56:14 CET 2023


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

--- Comment #4 from David Nind <david at davidnind.com> ---
Created attachment 159003
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=159003&action=edit
Screenshot - test failure

Here is some more detail about the failing test. I've added the screenshot.

Running:  ERM/UsageReports_spec.ts                                             
         (9 of 12)


  Reports home tabs
    ✓ Should display the saved reports page (2596ms)
    ✓ Should display the custom report builder (4992ms)

  Saved reports
    ✓ Should correctly populate the dropdown menu (2376ms)
    ✓ Should redirect to the reports viewer with the correct url params
(3019ms)

  Custom reports
    ✓ Should limit report types based on the provider(s) selected (3615ms)
    ✓ Should limit data providers based on the report type(s) selected (3069ms)
    ✓ Should limit metric types based on the report type(s) selected (2840ms)
    ✓ Should allow access_type for certain report types (2776ms)
    ✓ Should disable the month selectors when a yearly report is selected
(2414ms)
    1) Should correctly allow columns to be selected depending on the report
type
    ✓ Should correctly identify the months selected (3400ms)
    ✓ Should correctly produce URL parameters based on selected inputs (3301ms)
    ✓ Should show the Display by year filter when filter is required (5514ms)


  12 passing (53s)
  1 failing

  1) Custom reports
       Should correctly allow columns to be selected depending on the report
type:

      AssertionError: Timed out retrying after 10000ms: Too many elements
found. Found '7', expected '6'.
      + expected - actual

      -7
      +6

      at Context.eval
(webpack://koha/./t/cypress/integration/ERM/UsageReports_spec.ts:252:51)




  (Results)

 
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
  │ Tests:        13                                                           
                   │
  │ Passing:      12                                                           
                   │
  │ Failing:      1                                                            
                   │
  │ Pending:      0                                                            
                   │
  │ Skipped:      0                                                            
                   │
  │ Screenshots:  1                                                            
                   │
  │ Video:        true                                                         
                   │
  │ Duration:     53 seconds                                                   
                   │
  │ Spec Ran:     ERM/UsageReports_spec.ts                                     
                   │
 
└────────────────────────────────────────────────────────────────────────────────────────────────┘

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


More information about the Koha-bugs mailing list