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

            Bug ID: 36916
           Summary: TestBuilder generates incorrect JS and CSS for
                    libraries
 Change sponsored?: ---
           Product: Koha
           Version: unspecified
          Hardware: All
                OS: All
            Status: ASSIGNED
          Severity: normal
          Priority: P5 - low
         Component: Test Suite
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
        Depends on: 32721

TestBuilder generates random strings for branches.opacuserjs and
branches.opacusercss which produces invalid JS and CSS.

Selenium has several warnings related to this:

koha-selenium-1   | JavaScript error:
http://koha:8080/cgi-bin/koha/opac-user.pl, line 1744: ReferenceError:
CLYxPjQ152 is not defined
koha-selenium-1   | JavaScript error:
http://koha:8080/cgi-bin/koha/opac-search.pl, line 2069: ReferenceError:
CLYxPjQ152 is not defined
koha-selenium-1   | JavaScript error:
http://koha:8080/cgi-bin/koha/opac-reserve.pl, line 1351: ReferenceError:
CLYxPjQ152 is not defined

Because of the following in the DOM
    <script>
        CLYxPjQ152
    </script>


I would suggest to set to an empty string by default, to prevent random failure
or inconsistent behaviours when testing the UI.


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32721
[Bug 32721] Allow specifying UserCSS and UserJS at library level for the OPAC
-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to