From 6e1f3170105b8dd92d99b1a5d4c007f550535e6f Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 9 Jul 2024 09:48:09 +0000 Subject: [PATCH] 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 Signed-off-by: Jonathan Druart Caused by bug 37056. Signed-off-by: Katrin Fischer --- t/db_dependent/selenium/authentication.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/db_dependent/selenium/authentication.t b/t/db_dependent/selenium/authentication.t index 77f96e3b73..b046ff9eb9 100755 --- a/t/db_dependent/selenium/authentication.t +++ b/t/db_dependent/selenium/authentication.t @@ -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'); -- 2.39.5