Bug 27029: Add a selenium regression test
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> (cherry picked from commit03dea5f51e) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com> (cherry picked from commit178026f339) Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
parent
f3ae8ff836
commit
77b10e87b2
|
|
@ -19,7 +19,7 @@ use Modern::Perl;
|
|||
|
||||
use C4::Context;
|
||||
|
||||
use Test::More tests => 5;
|
||||
use Test::More tests => 6;
|
||||
use Test::MockModule;
|
||||
|
||||
use C4::Context;
|
||||
|
|
@ -70,6 +70,23 @@ subtest 'OPAC - borrowernumber and branchcode as html attributes' => sub {
|
|||
push @cleanup, $patron, $patron->category, $patron->library;
|
||||
};
|
||||
|
||||
subtest 'OPAC - Bibliographic record detail page must contain the data-biblionumber' => sub {
|
||||
plan tests => 1;
|
||||
|
||||
my $builder = t::lib::TestBuilder->new;
|
||||
|
||||
my ( $biblionumber, $biblioitemnumber ) = add_biblio();
|
||||
my $biblio = Koha::Biblios->find($biblionumber);
|
||||
|
||||
$driver->get( $opac_base_url . "opac-detail.pl?biblionumber=$biblionumber" );
|
||||
|
||||
my $elt = $driver->find_element('//div[@id="catalogue_detail_biblio"]');
|
||||
is( $elt->get_attribute( 'data-biblionumber', 1 ),
|
||||
$biblionumber, "#catalogue_detail_biblio contains data-biblionumber" );
|
||||
|
||||
push @cleanup, $biblio;
|
||||
};
|
||||
|
||||
subtest 'OPAC - Remove from cart' => sub {
|
||||
plan tests => 4;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue