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

(-)a/t/db_dependent/selenium/regressions.t (-2 / +18 lines)
Lines 19-25 use Modern::Perl; Link Here
19
19
20
use C4::Context;
20
use C4::Context;
21
21
22
use Test::More tests => 5;
22
use Test::More tests => 6;
23
use Test::MockModule;
23
use Test::MockModule;
24
24
25
use C4::Context;
25
use C4::Context;
Lines 73-78 subtest 'OPAC - borrowernumber, branchcode and categorycode as html attributes' Link Here
73
    push @cleanup, $patron, $patron->category, $patron->library;
73
    push @cleanup, $patron, $patron->category, $patron->library;
74
};
74
};
75
75
76
subtest 'OPAC - Bibliographic record detail page must contain the data-biblionumber' => sub {
77
    plan tests => 1;
78
79
    my $builder = t::lib::TestBuilder->new;
80
81
    my ( $biblionumber, $biblioitemnumber ) = add_biblio();
82
    my $biblio = Koha::Biblios->find($biblionumber);
83
84
    $driver->get( $opac_base_url . "opac-detail.pl?biblionumber=$biblionumber" );
85
86
    my $elt = $driver->find_element('//div[@id="catalogue_detail_biblio"]');
87
    is( $elt->get_attribute( 'data-biblionumber', 1 ),
88
        $biblionumber, "#catalogue_detail_biblio contains data-biblionumber" );
89
90
    push @cleanup, $biblio;
91
  };
92
76
subtest 'OPAC - Remove from cart' => sub {
93
subtest 'OPAC - Remove from cart' => sub {
77
    plan tests => 4;
94
    plan tests => 4;
78
95
79
- 

Return to bug 27029