Bugzilla – Attachment 115862 Details for
Bug 27029
Detail page missing Javascript accessible biblionumber value
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27029: Add a selenium regression test
Bug-27029-Add-a-selenium-regression-test.patch (text/plain), 1.56 KB, created by
Jonathan Druart
on 2021-01-27 10:36:04 UTC
(
hide
)
Description:
Bug 27029: Add a selenium regression test
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2021-01-27 10:36:04 UTC
Size:
1.56 KB
patch
obsolete
>From b1cbd50d9a0adc4dddd51cf4f840e5ec5ba9e813 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 27 Jan 2021 11:35:35 +0100 >Subject: [PATCH] Bug 27029: Add a selenium regression test > >--- > t/db_dependent/selenium/regressions.t | 19 ++++++++++++++++++- > 1 file changed, 18 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/selenium/regressions.t b/t/db_dependent/selenium/regressions.t >index 141bd45f2d..df6f8b86bc 100755 >--- a/t/db_dependent/selenium/regressions.t >+++ b/t/db_dependent/selenium/regressions.t >@@ -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; >@@ -73,6 +73,23 @@ subtest 'OPAC - borrowernumber, branchcode and categorycode as html attributes' > 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; > >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27029
:
113648
|
113705
|
115675
|
115676
| 115862