From b33209626537d03179ffbda42738fde673e6fac2 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 27 Oct 2023 15:46:13 +0100 Subject: [PATCH] Bug 35119: Add back classes used for selenium tests This patch re-instates the classes used for the selenium tests.. I checked we weren't using them for javascript or css, but didn't think about tests before. --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 ++-- t/db_dependent/selenium/regressions.t | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 88630069da..5671a3d7db 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -107,12 +107,12 @@

Errors found

[% IF decoding_error %]

Encoding errors

-

There is at least one encoding error with this bibliographic record, the view may be degraded.

+

There is at least one encoding error with this bibliographic record, the view may be degraded.

[% decoding_error | html %]
[% END %] [% IF analytics_error %]

Analytics errors

-

There was an error searching for analytic records, please see the logs for details.

+

There was an error searching for analytic records, please see the logs for details.

[% END %] [% END %] diff --git a/t/db_dependent/selenium/regressions.t b/t/db_dependent/selenium/regressions.t index 04aed37e29..b9e9cb2edf 100755 --- a/t/db_dependent/selenium/regressions.t +++ b/t/db_dependent/selenium/regressions.t @@ -124,8 +124,8 @@ subtest 'Bibliographic record detail page must not explode even with invalid met $driver->get( $base_url . "/catalogue/detail.pl?biblionumber=$biblionumber" ); - my $biberror = $driver->find_element('//span[@class="biberror"]')->get_text(); - is( $biberror, "There is an error with this bibliographic record, the view may be degraded."); + my $biberror = $driver->find_element('//p[@class="biberror"]')->get_text(); + is( $biberror, "There is at least one encoding error with this bibliographic record, the view may be degraded."); push @cleanup, $biblio; };