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

(-)a/t/db_dependent/selenium/remove_from_cart.t (-17 / +7 lines)
Lines 39-44 my $opac_base_url = $s->opac_base_url; Link Here
39
my $base_url = $s->base_url;
39
my $base_url = $s->base_url;
40
my $builder = t::lib::TestBuilder->new;
40
my $builder = t::lib::TestBuilder->new;
41
41
42
my $marcflavour = C4::Context->preference('marcflavour') || 'MARC21';
43
42
my $SearchEngine_value = C4::Context->preference('SearchEngine');
44
my $SearchEngine_value = C4::Context->preference('SearchEngine');
43
C4::Context->set_preference('SearchEngine', 'Zebra');
45
C4::Context->set_preference('SearchEngine', 'Zebra');
44
46
Lines 50-72 my $mock_zebra = t::lib::Mocks::Zebra->new( Link Here
50
);
52
);
51
53
52
subtest 'OPAC - Remove from cart' => sub {
54
subtest 'OPAC - Remove from cart' => sub {
53
    plan tests => 22;
55
    plan tests => 4;
54
56
55
    #-------------------------------- Test with greek and corean chars;
57
    my $sourcedir = dirname(__FILE__) . "/../data";
56
    # launch the zebra saerch process
58
    $mock_zebra->load_records(
59
        sprintf( "%s/%s/zebraexport/biblio", $sourcedir, lc($marcflavour) ),
60
        'iso2709', 'biblios', 1 );
57
    $mock_zebra->launch_zebra;
61
    $mock_zebra->launch_zebra;
58
    # launch the zebra index process
59
    $mock_zebra->launch_indexer;
60
61
    my $marcflavour = C4::Context->preference('marcflavour') || 'MARC21';
62
63
    my $testdir = File::Spec->rel2abs( dirname(__FILE__) . '/../www/');
64
    my $file =
65
      $marcflavour eq 'UNIMARC'
66
      ? "$testdir/data/unimarcutf8record.mrc"
67
      : "$testdir/data/marc21utf8record.mrc";
68
69
    my $batch_id = $mock_zebra->load_records($file);
70
62
71
    # We need to prevent scrolling to prevent the floating toolbar from overlapping buttons we are testing
63
    # We need to prevent scrolling to prevent the floating toolbar from overlapping buttons we are testing
72
    my $window_size = $driver->get_window_size();
64
    my $window_size = $driver->get_window_size();
Lines 104-110 subtest 'OPAC - Remove from cart' => sub { Link Here
104
    # Reset window size
96
    # Reset window size
105
    $driver->set_window_size($window_size->{'height'}, $window_size->{'width'});
97
    $driver->set_window_size($window_size->{'height'}, $window_size->{'width'});
106
98
107
    $mock_zebra->clean_records($batch_id);
108
    $mock_zebra->cleanup;
99
    $mock_zebra->cleanup;
109
};
100
};
110
101
111
- 

Return to bug 29368