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

(-)a/t/db_dependent/selenium/regressions.t (-1 / +7 lines)
Lines 70-75 subtest 'OPAC - borrowernumber and branchcode as html attributes' => sub { Link Here
70
70
71
subtest 'OPAC - Remove from cart' => sub {
71
subtest 'OPAC - Remove from cart' => sub {
72
    plan tests => 4;
72
    plan tests => 4;
73
   
74
    # We need to prevent scrolling to prevent the floating toolbar from overlapping buttons we are testing
75
    my $window_size = $driver->get_window_size();
76
    $driver->set_window_size(1920,1080);
73
77
74
    $driver->get( $opac_base_url . "opac-search.pl?q=d" );
78
    $driver->get( $opac_base_url . "opac-search.pl?q=d" );
75
79
Lines 99-104 subtest 'OPAC - Remove from cart' => sub { Link Here
99
    $basket_count_elt = $driver->find_element('//span[@id="basketcount"]/span');
103
    $basket_count_elt = $driver->find_element('//span[@id="basketcount"]/span');
100
    is( $basket_count_elt->get_text(),
104
    is( $basket_count_elt->get_text(),
101
        2, '1 element should have been removed from the cart' );
105
        2, '1 element should have been removed from the cart' );
106
107
    # Reset window size
108
    $driver->set_window_size($window_size->{'height'}, $window_size->{'width'});
102
};
109
};
103
110
104
subtest 'Play sound on the circulation page' => sub {
111
subtest 'Play sound on the circulation page' => sub {
105
- 

Return to bug 5287