Bug 18804: (bug 13501 follow-up) Fix add item form (select2)

Hard to say here, select2 adds so many elements that we need to ignore.
Here we just assume that input text with an id starting with
tag_952_subfield must be filled

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

Signed-off-by: Lee Jamison <ldjamison@marywood.edu>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
(cherry picked from commit 8035a467f0)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit d5f1aca783)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
This commit is contained in:
Jonathan Druart 2017-06-14 13:08:43 -03:00 committed by Katrin Fischer
parent 9cec7d146f
commit 9c787039b2
1 changed files with 4 additions and 0 deletions

View File

@ -126,6 +126,10 @@ SKIP: {
my $inputs = $driver->find_child_elements($form, '//input[@type="text"]');
for my $input ( @$inputs ) {
next if $input->is_hidden();
my $id = $input->get_attribute('id');
next unless $id =~ m|^tag_952_subfield|;
$input->send_keys('t_value_bib'.$biblionumber);
}