Bugzilla – Attachment 100136 Details for
Bug 24801
selenium/administration_tasks.t failing if too many categories/libraries displayed
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24801: Display all the categories - Selenium fix
Bug-24801-Display-all-the-categories---Selenium-fi.patch (text/plain), 1.55 KB, created by
Jonathan Druart
on 2020-03-04 14:54:55 UTC
(
hide
)
Description:
Bug 24801: Display all the categories - Selenium fix
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2020-03-04 14:54:55 UTC
Size:
1.55 KB
patch
obsolete
>From cabb20c2c3b38ad0a6b81263f7a1c0ab7b300b67 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 4 Mar 2020 15:53:12 +0100 >Subject: [PATCH] Bug 24801: Display all the categories - Selenium fix > >To make sure we are going to be able to click on the "Delete" button of >our newly created category PATRON_CAT, we are displaying them all. > >Test plan: >Create several patron categories that will fill the first page: > >use t::lib::TestBuilder; >my $builder = t::lib::TestBuilder->new; >for my $i ( 1..20 ) { > $builder->build_object({ class => 'Koha::Patron::Categories', value => { description => "cat_$i" } }); >} > >Execute the selenium tests. >--- > t/db_dependent/selenium/administration_tasks.t | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/t/db_dependent/selenium/administration_tasks.t b/t/db_dependent/selenium/administration_tasks.t >index 241f1393b9..fb02627394 100644 >--- a/t/db_dependent/selenium/administration_tasks.t >+++ b/t/db_dependent/selenium/administration_tasks.t >@@ -186,6 +186,9 @@ SKIP: { > $s->fill_form( { categorycode => $category_code, description => 'Test category', enrolmentperiod => 12, category_type => 'A' } ); > $s->submit_form; > >+ # Select "Show all" in the datatable "Show x entries" dropdown list to make sure our category is not hidden >+ $driver->find_element('//select[@name="patron_categories_length"]/option[@value="-1"]')->click; >+ > $s->click( > { > href => '/admin/categories.pl?op=delete_confirm&categorycode=' . $category_code, >-- >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 24801
:
100136
|
100137
|
101787
|
101796
|
102530