From 6cffea4930ba74236506a2ca40288e3ee6ff07a1 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) Content-Type: text/plain; charset=utf-8 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 Signed-off-by: Lee Jamison Signed-off-by: Marcel de Rooy --- 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 945a442..5749e2f 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.1.4