View | Details | Raw Unified | Return to bug 35922
Collapse All | Expand All

(-)a/t/db_dependent/www/batch.t (-6 / +5 lines)
Lines 87-97 $agent->click_ok( '', 'login to staff interface' ); Link Here
87
# Get datatable for the batch id
87
# Get datatable for the batch id
88
$agent->get("$intranet/cgi-bin/koha/tools/batch_records_ajax.pl?import_batch_id=$import_batch_id");
88
$agent->get("$intranet/cgi-bin/koha/tools/batch_records_ajax.pl?import_batch_id=$import_batch_id");
89
my $jsonresponse = decode_json $agent->content;
89
my $jsonresponse = decode_json $agent->content;
90
like( $jsonresponse->{ aaData }[0]->{ citation }, qr/$bookdescription/, 'found book' );
90
like( $jsonresponse->{data}[0]->{citation}, qr/$bookdescription/, 'found book' );
91
is( $jsonresponse->{ aaData }[0]->{ status }, 'imported', 'record marked as staged' );
91
is( $jsonresponse->{data}[0]->{status},         'imported', 'record marked as staged' );
92
is( $jsonresponse->{ aaData }[0]->{ overlay_status }, 'no_match', 'record has no matches' );
92
is( $jsonresponse->{data}[0]->{overlay_status}, 'no_match', 'record has no matches' );
93
93
94
my $biblionumber = $jsonresponse->{aaData}[0]->{matched};
94
my $biblionumber = $jsonresponse->{data}[0]->{matched};
95
95
96
$agent->get_ok(
96
$agent->get_ok(
97
    "$intranet/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber",
97
    "$intranet/cgi-bin/koha/catalogue/detail.pl?biblionumber=$biblionumber",
Lines 121-125 $agent->content_contains( 'The record you requested does not exist', Link Here
121
121
122
$agent->get("$intranet/cgi-bin/koha/tools/batch_records_ajax.pl?import_batch_id=$import_batch_id");
122
$agent->get("$intranet/cgi-bin/koha/tools/batch_records_ajax.pl?import_batch_id=$import_batch_id");
123
$jsonresponse = decode_json $agent->content;
123
$jsonresponse = decode_json $agent->content;
124
is( $jsonresponse->{ aaData }[0]->{ status }, 'reverted', 'record marked as reverted' );
124
is( $jsonresponse->{data}[0]->{status}, 'reverted', 'record marked as reverted' );
125
125
126
- 

Return to bug 35922