@@ -, +, @@ $ ktd --shell k$ export KOHA_INTRANET_URL=http://kohadev-intra.myDNSname.org:8081 k$ prove t/db_dependent/www/batch.t --- t/lib/Mocks/Zebra.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/t/lib/Mocks/Zebra.pm +++ a/t/lib/Mocks/Zebra.pm @@ -142,7 +142,7 @@ sub load_records_ui { $agent->follow_link_ok( { text => 'Stage records for import' }, 'go to stage MARC' ); - my $session_id = $agent->cookie_jar->get_cookies('koha.local')->{CGISESSID}; + my $session_id = $agent->cookie_jar->get_cookies( $self->{intranet} )->{CGISESSID}; my $csrf_token = Koha::Token->new->generate_csrf({session_id => $session_id}); $agent->post( "$cgi_root/tools/upload-file.pl?temp=1", --