Koha-clms/t/lib
Jonathan Druart 91d58f08ab Bug 36916: Do not generate invalid JS or CSS from TestBuilder
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>

This patch suggests to set to an empty string by default, to prevent random failure or inconsistent behaviours when testing the UI.

Test plan:
Run t/db_dependent/selenium/authentication.t and watch the selenium
output.
With this patch applied you will not see the "JavaScript error" lines

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit a51b46d4ba)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2024-05-30 10:13:05 +02:00
..
IdP Bug 31378: Rename Auth Provider to Identity Provider and add Client.t tests 2022-11-08 14:39:51 -03:00
Koha/BackgroundJob Bug 31351: (QA follow-up) Adjust tests accordingly 2022-09-07 13:59:07 -07:00
Mocks Bug 33963: Remove leftovers from previous works 2023-06-15 08:48:12 -03:00
QA Bug 31883: Filter trim causes false warnings 2022-10-20 11:22:33 -03:00
bad_plugins/Koha/Plugin
…
plugins/Koha/Plugin Bug 35070: (QA follow-up) Fix missing TT filter 2024-01-08 15:18:37 +01:00
Bootstrap.pm
…
Dates.pm
…
Mocks.pm Bug 33718: Fix the mock of Koha::Config->get in mock_config 2023-05-16 11:47:22 +02:00
Selenium.pm Bug 34913: Fix a selenium test 2024-01-29 10:15:53 +01:00
TestBuilder.pm Bug 36916: Do not generate invalid JS or CSS from TestBuilder 2024-05-30 10:13:05 +02:00