Bugzilla – Attachment 70270 Details for
Bug 19243
Selenium test for testing the administration module functionality - part 1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19243: Fix tests for patron categories
Bug-19243-Fix-tests-for-patron-categories.patch (text/plain), 2.80 KB, created by
Jonathan Druart
on 2018-01-04 13:31:59 UTC
(
hide
)
Description:
Bug 19243: Fix tests for patron categories
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-01-04 13:31:59 UTC
Size:
2.80 KB
patch
obsolete
>From f35f5479229cb53942c3161766f58c40a59607b8 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 26 Dec 2017 16:23:00 -0300 >Subject: [PATCH] Bug 19243: Fix tests for patron categories > >--- > t/db_dependent/selenium/administration_tasks.t | 21 ++++++++++++++------- > 1 file changed, 14 insertions(+), 7 deletions(-) > >diff --git a/t/db_dependent/selenium/administration_tasks.t b/t/db_dependent/selenium/administration_tasks.t >index eb562fe96f..6cb97dcd12 100644 >--- a/t/db_dependent/selenium/administration_tasks.t >+++ b/t/db_dependent/selenium/administration_tasks.t >@@ -33,6 +33,7 @@ my $itemtype = 'UT_DVD'; > my $frameworkcode = 'UTFW'; # frameworkcode is only 4 characters max! > my $branchcode = 'UT_BC'; > my $av_category = 'AV_CAT_TEST'; >+my $category_code = 'PATRON_CAT'; > our ($cleanup_needed); > > SKIP: { >@@ -159,23 +160,28 @@ SKIP: { > main => 'doc3' > } > ); >- $s->driver->accept_alert; >+ $s->driver->accept_alert; # Accept the modal "Are you sure you want to delete this authorized value?" > }; > >- { #Patron categories >+ { # Patron categories > $driver->get($mainpage); >- $s->click( { href => '/admin/categories.pl', main => 'doc3' } ); #Koha administration >- $s->click( { href => '/admin/categories.pl?op=add_form', main => 'doc' } ); #New patron category >+ $s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Koha administration >+ $s->click( { href => '/admin/categories.pl', main => 'doc' } ); # Patron categories >+ $s->click( { href => '/admin/categories.pl?op=add_form', main => 'doc3' } ); # New patron category > >- $s->fill_form( { categorycode => 'Test', description => 'Test category', enrolmentperiod => 12, category_type => 'Adult' } ); >+ $s->fill_form( { categorycode => $category_code, description => 'Test category', enrolmentperiod => 12, category_type => 'A' } ); > $s->submit_form; > > $s->click( > { >- href => '/admin/categories.pl?op=delete_confirm&categorycode=TEST', >+ href => '/admin/categories.pl?op=delete_confirm&categorycode=' . $category_code, > main => 'doc3' > } >- ); >+ ); # Delete button >+ >+ $s->submit_form; # Delete this category >+ >+ # TODO Make sure the category has been deleted > }; > > $driver->quit(); >@@ -191,4 +197,5 @@ sub cleanup { > $dbh->do(q|DELETE FROM biblio_framework WHERE frameworkcode=?|, undef, $frameworkcode); > $dbh->do(q|DELETE FROM branches WHERE branchcode=?|, undef, $branchcode); > $dbh->do(q|DELETE FROM authorised_value_categories WHERE category_name=?|, undef, $av_category); >+ $dbh->do(q|DELETE FROM categories WHERE categorycode=?|, undef, $category_code); > } >-- >2.11.0
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 19243
:
66788
|
67433
|
67492
|
67493
|
67494
|
67495
|
67496
|
67497
|
68123
|
68124
|
68125
|
68832
|
68833
|
69757
|
69939
|
70160
|
70161
|
70162
|
70163
|
70164
|
70268
|
70269
| 70270