Lines 112-118
subtest 'Update child to patron' => sub {
Link Here
|
112 |
my $adult_borrowernumber = $adult_1->borrowernumber; |
112 |
my $adult_borrowernumber = $adult_1->borrowernumber; |
113 |
|
113 |
|
114 |
subtest 'Update child to adult' => sub { |
114 |
subtest 'Update child to adult' => sub { |
115 |
plan tests => 3; |
115 |
plan tests => 2; |
116 |
$driver->get( $base_url . "/members/moremember.pl?borrowernumber=" . $child_borrowernumber ); |
116 |
$driver->get( $base_url . "/members/moremember.pl?borrowernumber=" . $child_borrowernumber ); |
117 |
$driver->find_element('//div[@id="toolbar"]/div[@class="btn-group"][last()]')->click; # More button group |
117 |
$driver->find_element('//div[@id="toolbar"]/div[@class="btn-group"][last()]')->click; # More button group |
118 |
my $update_link = $driver->find_element('//a[@id="updatechild"]'); |
118 |
my $update_link = $driver->find_element('//a[@id="updatechild"]'); |
Lines 122-131
subtest 'Update child to patron' => sub {
Link Here
|
122 |
'The update link should not have a data-bs-toggle attribute => not a tooltip and can be clickable' |
122 |
'The update link should not have a data-bs-toggle attribute => not a tooltip and can be clickable' |
123 |
); |
123 |
); |
124 |
$update_link->click; |
124 |
$update_link->click; |
125 |
like( |
|
|
126 |
$driver->get_current_url, qr{/members/moremember\.pl\?borrowernumber=$child_borrowernumber\#$}, |
127 |
'Current window has a "#" in the URL, event has been triggered' |
128 |
); |
129 |
|
125 |
|
130 |
# Switch to the popup window |
126 |
# Switch to the popup window |
131 |
# Note that if there is only 1 adult in the DB the popup does not appears, but an alert instead. Not tested so far. |
127 |
# Note that if there is only 1 adult in the DB the popup does not appears, but an alert instead. Not tested so far. |
132 |
- |
|
|