use XML::Simple;
use Encode;
-use Test::More tests => 2;
+use Test::More tests => 4;
use Test::WWW::Mechanize;
my $koha_conf = $ENV{KOHA_CONF};
my $agent = Test::WWW::Mechanize->new( autocheck => 1 );
# Login
-$agent->get( "$intranet/cgi-bin/koha/mainpage.pl", 'Load the intranet login page' );
+$agent->get_ok( "$intranet/cgi-bin/koha/mainpage.pl", 'Load the intranet login page' );
$agent->form_name('loginform');
$agent->field( 'password', $password );
$agent->field( 'userid', $user );
$agent->field( 'branch', '' );
$agent->click( '', 'Login to the intranet' );
-$agent->get( "$intranet/cgi-bin/koha/about.pl", 'Load the about page' );
+$agent->get_ok( "$intranet/cgi-bin/koha/about.pl", 'Load the about page' );
# Test about > timeline is correctly encoded
my $encoded_latin_name = Encode::encode('UTF-8', 'Frédéric Demians');