View | Details | Raw Unified | Return to bug 19243
Collapse All | Expand All

(-)a/t/db_dependent/selenium/administration_tasks.t (-2 / +35 lines)
Lines 32-37 my $login = $ENV{KOHA_USER} || 'koha'; Link Here
32
my $itemtype      = 'UT_DVD';
32
my $itemtype      = 'UT_DVD';
33
my $frameworkcode = 'UTFW';     # frameworkcode is only 4 characters max!
33
my $frameworkcode = 'UTFW';     # frameworkcode is only 4 characters max!
34
my $branchcode    = 'UT_BC';
34
my $branchcode    = 'UT_BC';
35
my $categoryname = 'Test';
35
our ($cleanup_needed);
36
our ($cleanup_needed);
36
37
37
SKIP: {
38
SKIP: {
Lines 46-52 SKIP: { Link Here
46
    $driver->get($mainpage);
47
    $driver->get($mainpage);
47
    like( $driver->get_title(), qr(Log in to Koha), );
48
    like( $driver->get_title(), qr(Log in to Koha), );
48
    $s->auth;
49
    $s->auth;
49
50
    { # Item types
50
    { # Item types
51
        # Navigate to the Administration area and create an item type
51
        # Navigate to the Administration area and create an item type
52
        $s->click( { href => '/admin/admin-home.pl', main => 'doc3' } )
52
        $s->click( { href => '/admin/admin-home.pl', main => 'doc3' } )
Lines 126-131 SKIP: { Link Here
126
        );     # Delete
126
        );     # Delete
127
    };
127
    };
128
128
129
    { #Authorized values
130
        $driver->get($mainpage);
131
        $s->click( { href => '/admin/admin-home.pl', main => 'doc3' } ); #Koha administration
132
133
        $s->click( { href => '/admin/authorised_values.pl', main => 'doc' } ); #Authorized values
134
135
        $s->click( { href => '/cgi-bin/koha/admin/authorised_values.pl?op=add_form&category=Adult', main => 'doc3' } ); # New category
136
        $s->fill_form( { authorised_value => 'Hardover', lib => 'Hardcover book'} );
137
        $s->submit_form;
138
139
        $s->click(
140
            {
141
                href => '/cgi-bin/koha/admin/authorised_values.pl?op=delete&searchfield=Adult&id=400',
142
                main => 'doc3'
143
            }
144
        );
145
    };
146
147
    { #Patron categories
148
        $driver->get($mainpage);
149
        $s->click( { href => '/cgi-bin/koha/admin/categories.pl', main => 'doc3' } ); #Koha administration
150
        $s->click( { href => '/cgi-bin/koha/admin/categories.pl?op=add_form', main => 'doc' } ); #New patron category
151
152
        $s->fill_form( { categorycode => 'Test', description => 'Test category', enrolmentperiod => 12, category_type => 'Adult' } );
153
        $s->submit_form;
154
155
        $s->click(
156
            {
157
                href => '/cgi-bin/koha/admin/categories.pl?op=delete_confirm&categorycode=TEST',
158
                main => 'doc3'
159
            }
160
        );
161
    };
162
129
    $driver->quit();
163
    $driver->quit();
130
}
164
}
131
165
132
- 

Return to bug 19243