Bug 37283: Update expected error page title

I dont know how this was working before, but if we do:
cat -n /usr/share/perl5/HTTP/Response.pm | grep Error

We notice that error_as_HTML returns 'An Error Occurred' for page title and that is what we should be expecting?

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

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Caused by bug 37056.
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 6e1f317010)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Pedro Amorim 2024-07-09 09:48:09 +00:00 committed by Lucas Gass
parent c4cf8d698e
commit 79eb94bcc4
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ SKIP: {
# Check with a script that is using check_cookie_auth, session must not be deleted!
$driver->get( $s->base_url . q|svc/checkouts| );
#FIXME - 500 is the current behaviour, but it's not nice. It could be improved.
like( $driver->get_title, qr(Error 500), 'Patron cannot access svc script where circulate permissions are required');
like( $driver->get_title, qr(An Error Occurred), 'Patron cannot access svc script where circulate permissions are required');
$driver->get( $s->base_url . q|catalogue/search.pl| );
like( $driver->get_title, qr(Advanced search), 'Patron can reuse the cookie after a script that used check_cookie_auth' );
$cookie = $driver->get_cookie_named('CGISESSID');