|
Lines 15-21
Link Here
|
| 15 |
# You should have received a copy of the GNU General Public License |
15 |
# You should have received a copy of the GNU General Public License |
| 16 |
# along with Koha; if not, see <https://www.gnu.org/licenses>. |
16 |
# along with Koha; if not, see <https://www.gnu.org/licenses>. |
| 17 |
|
17 |
|
| 18 |
#This selenium test tests the Koha Administration module functionality including adding circ rules, item types and modifying frameworks |
18 |
#This selenium test tests the Administration module functionality including adding circ rules, item types and modifying frameworks |
| 19 |
|
19 |
|
| 20 |
#Note: If you are testing this on kohadevbox with selenium installed in kohadevbox then you need to set the staffClientBaseURL to localhost:8080 and the OPACBaseURL to http://localhost:80 |
20 |
#Note: If you are testing this on kohadevbox with selenium installed in kohadevbox then you need to set the staffClientBaseURL to localhost:8080 and the OPACBaseURL to http://localhost:80 |
| 21 |
|
21 |
|
|
Lines 55-61
SKIP: {
Link Here
|
| 55 |
$s->auth; |
55 |
$s->auth; |
| 56 |
{ # Item types |
56 |
{ # Item types |
| 57 |
# Navigate to the Administration area and create an item type |
57 |
# Navigate to the Administration area and create an item type |
| 58 |
$s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Koha administration |
58 |
$s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Administration |
| 59 |
$s->click( { href => '/admin/itemtypes.pl', main_class => 'main container-fluid' } ); # Item Types |
59 |
$s->click( { href => '/admin/itemtypes.pl', main_class => 'main container-fluid' } ); # Item Types |
| 60 |
$s->click( { href => '/admin/itemtypes.pl?op=add_form', main_class => 'main container-fluid' } ) |
60 |
$s->click( { href => '/admin/itemtypes.pl?op=add_form', main_class => 'main container-fluid' } ) |
| 61 |
; # New item type |
61 |
; # New item type |
|
Lines 72-78
SKIP: {
Link Here
|
| 72 |
{ # Circulation/fine rules |
72 |
{ # Circulation/fine rules |
| 73 |
my $itype = $builder->build_object( { class => "Koha::ItemTypes" } ); |
73 |
my $itype = $builder->build_object( { class => "Koha::ItemTypes" } ); |
| 74 |
$driver->get($mainpage); |
74 |
$driver->get($mainpage); |
| 75 |
$s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Koha administration |
75 |
$s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Administration |
| 76 |
$s->click( { href => '/admin/smart-rules.pl', main_class => 'main container-fluid' } ) |
76 |
$s->click( { href => '/admin/smart-rules.pl', main_class => 'main container-fluid' } ) |
| 77 |
; # Circulation and fine rules |
77 |
; # Circulation and fine rules |
| 78 |
my $elt = $driver->find_element( |
78 |
my $elt = $driver->find_element( |
|
Lines 96-102
SKIP: {
Link Here
|
| 96 |
|
96 |
|
| 97 |
{ # Biblio frameworks |
97 |
{ # Biblio frameworks |
| 98 |
$driver->get($mainpage); |
98 |
$driver->get($mainpage); |
| 99 |
$s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Koha administration |
99 |
$s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Administration |
| 100 |
$s->click( { href => '/admin/biblio_framework.pl', main_class => 'main container-fluid' } ) |
100 |
$s->click( { href => '/admin/biblio_framework.pl', main_class => 'main container-fluid' } ) |
| 101 |
; # MARC bibliographic framework |
101 |
; # MARC bibliographic framework |
| 102 |
$s->click( { href => '/admin/biblio_framework.pl?op=add_form', main_class => 'main container-fluid' } ) |
102 |
$s->click( { href => '/admin/biblio_framework.pl?op=add_form', main_class => 'main container-fluid' } ) |
|
Lines 120-126
SKIP: {
Link Here
|
| 120 |
|
120 |
|
| 121 |
{ #Libraries |
121 |
{ #Libraries |
| 122 |
$driver->get($mainpage); |
122 |
$driver->get($mainpage); |
| 123 |
$s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Koha administration |
123 |
$s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Administration |
| 124 |
$s->click( { href => '/admin/branches.pl', main_class => 'main container-fluid' } ); # Libraries and groups |
124 |
$s->click( { href => '/admin/branches.pl', main_class => 'main container-fluid' } ); # Libraries and groups |
| 125 |
$s->click( { href => '/admin/branches.pl?op=add_form', main_class => 'main container-fluid' } ); # New library |
125 |
$s->click( { href => '/admin/branches.pl?op=add_form', main_class => 'main container-fluid' } ); # New library |
| 126 |
$s->fill_form( { branchcode => $branchcode, branchname => 'my library' } ); |
126 |
$s->fill_form( { branchcode => $branchcode, branchname => 'my library' } ); |
|
Lines 148-154
SKIP: {
Link Here
|
| 148 |
|
148 |
|
| 149 |
{ #Authorized values |
149 |
{ #Authorized values |
| 150 |
$driver->get($mainpage); |
150 |
$driver->get($mainpage); |
| 151 |
$s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); #Koha administration |
151 |
$s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Administration |
| 152 |
|
152 |
|
| 153 |
$s->click( { href => '/admin/authorised_values.pl', main_class => 'main container-fluid' } ); #Authorized values |
153 |
$s->click( { href => '/admin/authorised_values.pl', main_class => 'main container-fluid' } ); #Authorized values |
| 154 |
|
154 |
|
|
Lines 194-200
SKIP: {
Link Here
|
| 194 |
|
194 |
|
| 195 |
{ # Patron categories |
195 |
{ # Patron categories |
| 196 |
$driver->get($mainpage); |
196 |
$driver->get($mainpage); |
| 197 |
$s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Koha administration |
197 |
$s->click( { href => '/admin/admin-home.pl', main => 'container-main' } ); # Administration |
| 198 |
$s->click( { href => '/admin/categories.pl', main_class => 'main container-fluid' } ); # Patron categories |
198 |
$s->click( { href => '/admin/categories.pl', main_class => 'main container-fluid' } ); # Patron categories |
| 199 |
$s->click( { href => '/admin/categories.pl?op=add_form', main_class => 'main container-fluid' } ) |
199 |
$s->click( { href => '/admin/categories.pl?op=add_form', main_class => 'main container-fluid' } ) |
| 200 |
; # New patron category |
200 |
; # New patron category |
| 201 |
- |
|
|