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

            Bug ID: 44070
           Summary: selenium regressions.t expects the old biberror
                    message for a now-repairable record
   Initiative type: ---
        Sponsorship ---
            status:
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: Test Suite
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
  Target Milestone: ---

Follow-up to bug 43777, reported by Jonathan Druart on that bug.

t/db_dependent/selenium/regressions.t, subtest 'Bibliographic record detail
page must not explode even with invalid metadata', stores MARCXML containing
non-XML characters in the control fields and expects detail.pl to show <p
class="biberror"> ("There is at least one encoding error with this
bibliographic record...").

Since bug 43777, Koha::Biblio::Metadata->record() repairs such faults on read,
so detail.pl no longer sets decoding_error for this data. The page instead
shows the metadata repair warning (metadata_repairs.inc, bug 43026) and the
biberror element is not rendered:

  Unable to locate element: //p[@class="biberror"] at
.../Selenium/Remote/Driver.pm line 411

Proposed fix: update the existing subtest to assert on the repair warning for
the recoverable record, and add a second case using metadata that cannot be
repaired (e.g. truncated XML) to keep coverage of the biberror path.

Test plan:
1. Apply the patch.
2. prove t/db_dependent/selenium/regressions.t (inside KTD, with the selenium
environment available)
3. Confirm the subtest passes.

Sponsored-by: OpenFifth

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to