From 76db249656bbdbb3f92e71f653ccade464313829 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 14 Jun 2017 13:08:43 -0300 Subject: [PATCH] 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 --- t/db_dependent/selenium/basic_workflow.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/db_dependent/selenium/basic_workflow.t b/t/db_dependent/selenium/basic_workflow.t index 945a442f94..5749e2fd59 100644 --- a/t/db_dependent/selenium/basic_workflow.t +++ b/t/db_dependent/selenium/basic_workflow.t @@ -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); } -- 2.11.0