Bug 35329: Fix selenium tests if no fund exist
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
aa63943c2f
commit
190ab37812
1 changed files with 3 additions and 1 deletions
|
@ -539,7 +539,9 @@ subtest 'Search patrons in modal' => sub {
|
||||||
$s->auth;
|
$s->auth;
|
||||||
|
|
||||||
# Go to the add patron form
|
# Go to the add patron form
|
||||||
$driver->get( $base_url . "/admin/aqbudgets.pl?op=add_form&budget_id=1&budget_period_id=1" );
|
my $fund = $builder->build_object( { class => 'Koha::Acquisition::Funds' } );
|
||||||
|
push @cleanup, $fund->budget, $fund;
|
||||||
|
$driver->get( $base_url . sprintf "/admin/aqbudgets.pl?op=add_form&budget_id=%s&budget_period_id=%s", $fund->budget_id, $fund->budget_period_id );
|
||||||
|
|
||||||
# Click "Select owner"
|
# Click "Select owner"
|
||||||
$driver->find_element('//a[@href="#patron_search_modal_owner"]')->click();
|
$driver->find_element('//a[@href="#patron_search_modal_owner"]')->click();
|
||||||
|
|
Loading…
Reference in a new issue