Lines 138-146
subtest 'Update child to patron' => sub {
Link Here
|
138 |
$driver->get( $base_url . "/members/moremember.pl?borrowernumber=$adult_borrowernumber" ); |
138 |
$driver->get( $base_url . "/members/moremember.pl?borrowernumber=$adult_borrowernumber" ); |
139 |
$driver->find_element('//div[@id="toolbar"]/div[@class="btn-group"][last()]')->click; # More button group |
139 |
$driver->find_element('//div[@id="toolbar"]/div[@class="btn-group"][last()]')->click; # More button group |
140 |
|
140 |
|
141 |
my $update_link = $driver->find_element('//a[@id="updatechild"]'); |
141 |
my $update_li = $driver->find_element('//a[@id="updatechild"]/..'); |
142 |
is($update_link->get_attribute('data-bs-toggle', 1), 'tooltip', q|The update link should have a data-bs-toggle attribute => it's a tooltip, not clickable|); |
142 |
is($update_li->get_attribute('data-bs-toggle', 1), 'tooltip', q|The parent of the update link should have a data-bs-toggle attribute => it's a tooltip, not clickable|); |
143 |
$update_link->click; |
143 |
$update_li->click; |
144 |
like( $driver->get_current_url, qr{/members/moremember\.pl\?borrowernumber=$adult_borrowernumber$}, 'After clicking the link, nothing happens, no # in the URL'); |
144 |
like( $driver->get_current_url, qr{/members/moremember\.pl\?borrowernumber=$adult_borrowernumber$}, 'After clicking the link, nothing happens, no # in the URL'); |
145 |
}; |
145 |
}; |
146 |
|
146 |
|
147 |
- |
|
|